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 / Models disappearing

Author
Message
retardnewb17
13
Years of Service
User Offline
Joined: 6th Oct 2011
Location:
Posted: 7th Nov 2011 19:40
I have camera following an object, and sometimes when I rotate(turn) the camera all objects disappear, and when I turn the camera again objects become visible.
Why is this happening and how can I fix it?
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 7th Nov 2011 21:54
Post up the code to be checked.

Quel
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 7th Nov 2011 22:32
I guess - without seeing any code - the camera is just rotating on its Y axis, and the environment stays still. This of course will cause your models to "disappear", since the camera is facing a direction where there is nothing...

If you want the camera to truely follow an object, position the camera in any way you want, and then put a POINT CAMERA command after that, with the followed object's coordinates.

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th Nov 2011 12:42 Edited at: 8th Nov 2011 12:44
As our friends say, we need some code to test. Try to set camera range 0.01,20000. Sometimes it happens when we have very small objects.

Cheers.

I'm not a grumpy grandpa
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Nov 2011 14:27
All usual fixes are mentioned above. In the unlikely event of doing some weird stuff with vertexdata, and your object disappears, use set object radius obj,-1.

Please post all of your code so we can see what you're doing.

TheComet

Login to post a reply

Server time is: 2024-11-24 00:59:41
Your offset time is: 2024-11-24 00:59:41