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 Professional Discussion / Not undersatnding Camera distance range

Author
Message
Alvind
18
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Northern Ireland
Posted: 20th Oct 2013 17:22
Hi guys I have a bit of a problem regarding a skysphere I have in a level. Im learning as I go. I probably looking in the wrong place but I cant seem to adjust the camera distance range to get rid of this big gaping black hole in my skysphere... is it a graphics card limitation of mine?

http://dai.moddb.com
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 20th Oct 2013 19:06
It does indeed look like part of the sphere lies outside your camera's clip range.
You can either use set camera range to increase it (it's the second (far) range parameter you'll want to increase) or scale down the skysphere so it's smaller.


"Why do programmers get Halloween and Christmas mixed up?"
Alvind
18
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Northern Ireland
Posted: 22nd Oct 2013 23:52
Hi, I've tried raising the range up to 100000 and it's still there I'm afraid. The sphere is only 5000...

http://dai.moddb.com
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Oct 2013 04:07
Well that's not right... Are you sure you're setting it for the correct camera? The main one uses ID 0, not 1.


"Why do programmers get Halloween and Christmas mixed up?"
thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 23rd Oct 2013 04:39
Quote: "Hi, I've tried raising the range up to 100000 and it's still there I'm afraid. The sphere is only 5000...
"


You might be using the command wrong like Rudolpho said.

Just a warning, using really large values for the camera range can cause graphical and floating point errors. Try to use a value that's only slightly larger than your biggest object.

Login to post a reply

Server time is: 2026-07-06 10:36:05
Your offset time is: 2026-07-06 10:36:05