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 / another question

Author
Message
koolaid
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 8th Apr 2003 06:25
okay im having trouble setting up my own skysphere for my matrix im sizing it wrong or something because i cant see it.my matrix is 10000 by 10000 how do i position it and size it so i cant see it around the matrix thanks.
Engulfed by Darkness
23
Years of Service
User Offline
Joined: 31st Mar 2003
Location: Canada
Posted: 8th Apr 2003 06:39
Post what you have so far.
Danmatsuma
23
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 8th Apr 2003 07:37 Edited at: 8th Apr 2003 07:38
Your problem could be this simple, if I'm right, you need to be able to see the inside of your sphere, and by default the backfaces of objects are culled in db, so while the camera may be inside the sphere, you can't see it.
Another possibility, is that if your matrix is 10000x10000, that you have exceeded the maximum view distance of db's camera, which can only see about 5000 units i think, everything beyond that range is invisible, which is why you use fog to hide the transition.

The best way is actually to model the sphere in a 3d package, flip the face normals then open that in db, but a simple way would be to just turn off backface culling in db.

Also, you'll want to set the sphere object's properties to be insensitive to light and fog.

So simply put, try this:
set object [skysphere object number],1,1,0,1,0,0

and make sure it's smaller than 5000 units radius, maybe much smaller for the purposes of testing

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Engulfed by Darkness
23
Years of Service
User Offline
Joined: 31st Mar 2003
Location: Canada
Posted: 8th Apr 2003 08:35
Instead of turning off backface culling you could just set the radius of the sky sphere as a negative value.
koolaid
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 8th Apr 2003 10:08
well it cant be the camera right theres set camera distance my camera distance is 15000 which is more than the matrix,im going to try what you set it sounds like that is the problem because when im inside it it dissappears.ill be back!
koolaid
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 8th Apr 2003 13:47
thanks guys i did what youll told me to setting the spheres properties i worked for a while trying to find the right sizes playing with the scaling and radius of it.its positioned in the center of the matrix radius=1000 scale is 1500 and im inside of it,a thought though since im inside of it am i colliding with it i dont have object collision on right now but will i be slowed down greatly.thanks again!
Danmatsuma
23
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 8th Apr 2003 18:02
set object collision off [skysphere object]

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.

Login to post a reply

Server time is: 2026-06-11 15:09:18
Your offset time is: 2026-06-11 15:09:18