Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Skybox Woes #458289
03/03/16 01:30
03/03/16 01:30
Joined: Jan 2005
Posts: 330
USA
M
MatAllum Offline OP
Senior Member
MatAllum  Offline OP
Senior Member
M

Joined: Jan 2005
Posts: 330
USA
I feel like there's something simple that I'm missing here. Working on a split screen game that could most definitely benefit from a skybox, but quite clearly I am doing something wrong.

Although +6 skycube textures seem to work all right (not sure about the Z buffer but that's for another time), sky models... suck.

Unlike in my old C-script projects, the sky model does not follow any of the camera viewports (haven't tested on "camera" but that doesn't matter anyway for this project). Level objects clip right through it like a wall, and moving around in a space level gives me a giant flat planet that I can literally go up and poke.

Definition:
Code:
ENTITY* skySpace =
	{
		type = "space2.mdl";
		layer = 1;
		scale_x = 14;
		scale_y = 14;
		scale_z = 14;
		flags2 = SCENE|SHOW|SKY;
		material = mtl_bright_unlit;
	}



Is there something I'm missing here? Any reason why the model marked SCENE and SKY still insists on sitting inside my physical level?

Re: Skybox Woes [Re: MatAllum] #458292
03/03/16 07:21
03/03/16 07:21
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I'm not sure, but you'll probably need to create skybox MODEL for each view, and make them follow it, but while each sky box will be invisible in the other view. F.e. camera1 - view has sky1 and camera2 - view has sky2. camera2 can't see sky1 and camera1 can't see sky2 (something like this), but at the same time each of the sky will follow it's view (simply vec_set(sky1.x, camera.x)). Anyway, this are just my thoughts.


Best regards


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Skybox Woes [Re: 3run] #458298
03/03/16 12:46
03/03/16 12:46
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
@MatAllum, try this link where you can find a shader of Steempipe to create an improved skybox http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=54991&Number=457949#Post457949

Re: Skybox Woes [Re: Reconnoiter] #458317
03/04/16 03:19
03/04/16 03:19
Joined: Jan 2005
Posts: 330
USA
M
MatAllum Offline OP
Senior Member
MatAllum  Offline OP
Senior Member
M

Joined: Jan 2005
Posts: 330
USA
Thanks for the resources - I'll see what I can do with that.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1