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 / Object hides when outside camera - correct?

Author
Message
Cyborg ART
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 10th Jun 2011 00:08
Does anyone know if 3d objects are automaticly hidden when not seen by the camera?
If so, is it possible to turn it off?

This bugs me since when my character is almost out of screen its disapears when the arm still should be visible.

Maybe its my code?

revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 10th Jun 2011 00:36 Edited at: 10th Jun 2011 00:36
Try using calculate object bounds. If that doesn't work:
1) Scale your model to 150% (of its current size)
2) Try calculate object bounds again
3) Scale the model back down to the desired size
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 10th Jun 2011 01:30
you shouldn't have this problem, check the camera rotation speed, movement speed, sync rate, they all play important part in rendering.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 10th Jun 2011 01:43
Quote: "Does anyone know if 3d objects are automaticly hidden when not seen by the camera?
If so, is it possible to turn it off?"

yes, set object radius obj_num,0

James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 10th Jun 2011 03:30
The object radius to 0 should work but you will have performance hit if used on many objects
If what revenant suggested dont work you can always take a look at the object in an object editor and recenter any limb offsets that may be there, but this may not be suitable for the objects appearance - depends on the object really. Not ideal but its an option and has worked for me many times in the past
Cyborg ART
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 10th Jun 2011 10:42
set object radius worked. Now I know for sure whats causing the problem.
Will see if revenant chaos idea will work.

Thanks for all the help!

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 10th Jun 2011 14:43
The real problem is the camera range. If we set camera range 1,30000 we asure that the camera will see all objects from distance 1 to 30000 .

Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-10 22:54:18
Your offset time is: 2026-07-10 22:54:18