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.

DarkBASIC Discussion / SkySphere/SkyBox/Matrix

Author
Message
DarkSith
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 6th May 2003 16:32
I have put a skybox/skysphere into my code and when I create the matrix the skybox doesn't appear? What am i doing wrong?
Dark Basic: My Favourite!
GameKit
23
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 6th May 2003 17:39
make sure the skybox / skysphere is a negative size... like -1500 instead of 1500... also make sure the camera distance is not any smaller than the skysphere... if the sky sphere is -3000 in size make sure the camera distance is 3100 or more...making something a negative size will make it so you can see it from the inside but not from the outside... oh...and make sure you position the skysphere at the camera position...hope this helps...

Anyone Can Destroy...But Few Can Create...
arras
23
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 6th May 2003 18:56
Try to turn off autocam and handle camera position and angle yourself. When new object/matrix is created autocamera swich to position of newest object. So if your sky object and matrix are not at the same position or if they difer in size too much autocam will let you see only one of them.

Of course you have to turn it off at the begining of your code...
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 6th May 2003 19:50
When you load the Skybox, it will be positioned at 0,0,0, not the centre of the matrix.

I create a small routine called Wander(). If I need to find a missing object, I call Wander() at the appropriate point, and go looking for it. Wander() simply allows me to use the arrow keys to...wander! When I press a specific key, it leaves the routine and carries on as normal.

I actually include a parameter... Wander(ObjectId). I use objectId to position the camera at the same point as the object, and start looking from there.

Thanks in advance.
All the Best,
StevieVee

Login to post a reply

Server time is: 2026-06-12 06:56:39
Your offset time is: 2026-06-12 06:56:39