Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Placing Skyboxes

Author
Message
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 23rd Jul 2011 01:51
Hey guys, I was just trying to place a skybox, but every time I scale it to be really big, 1 of 2 things will happen, the sky is black or the sky is black and I'm stuck inside the box. If I scale it to be smaller it is visible and I'm not stuck, but the box is WAY to small. Any ideas on how to fix this?

Here is one of the pieces of code that I tried.




Cheers.

God help me, Please.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 24th Jul 2011 09:08
I'm not an expert on this subject buy you may need to increase the camera range when you scale it by 100,000. Try using the 'SET CAMERA RANGE' command and play with the back end value, it has a default of 3000. Make sure the front end value is >= 1 otherwise you may get some weird results.

2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 24th Jul 2011 20:28
Well, It seems to work in 3rd person camera view but in first person, it just disappears and re-appears when I'm still.


Cheers.

God help me, Please.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 25th Jul 2011 03:15
As Hodgey said it is probably too large and thus (at least partially) falls outside of the main camera's range.
If your complete scene is large enough to require the skybox to be of a certain size but you don't really want to have the camera range set too high, you can have the skybox be smaller and just reposition it along with the player. This approach might cut off other objects in the scene with the sides of the skybox, so you are better off hiding those using the fog commands. In which case you may or may not like to deactivate the fog response on the skybox object itself.


"Why do programmers get Halloween and Christmas mixed up?"
2Beastmode4u
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 25th Jul 2011 04:58
Well, I got it to work kind of, but when the player runs it turns blue. If the player walks it's ok.


Cheers.

God help me, Please.
revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 25th Jul 2011 16:00
Quote: "Well, I got it to work kind of, but when the player runs it turns blue. If the player walks it's ok."
Does that mean that you are re-positioning the skybox to the camera's position? If so, you may be positioning the skybox before moving the camera (which should be done the other way around).

Login to post a reply

Server time is: 2024-11-27 21:41:54
Your offset time is: 2024-11-27 21:41:54