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 / Render objects looking down?

Author
Message
tokyomage
15
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 16th Aug 2012 03:34
When I look down in a forest i made all of my trees disappear, I believe this is a default setting in dbpro. Ive done my best to research this but cant find anything. So some images are attached as a download on this post for further detail on this problem.


Did you know that water is wet? - "The more you know"
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 16th Aug 2012 06:33
That is unusual.

are the trees separate or all one model? the only thing I can think of is that your camera is clipping the model which will make it disappear.

Sometimes I like to use words out of contents
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 16th Aug 2012 06:37
Did you instance the objects? If so, not looking at the source object will make all the instances disappear.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Aug 2012 10:43 Edited at: 16th Aug 2012 10:43
Maybe the trees are plains, and plains are flat?

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 16th Aug 2012 12:46
I've experienced similar issues when objects get culled before they're properly out of the camera scope if that might be it. I'm pretty sure I posted a thread about it and got some suggestions one or two years ago, but now I can't seem to find it.
As I recall one of the solutions included calling set object bounds on the offending objects.


"Why do programmers get Halloween and Christmas mixed up?"
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 16th Aug 2012 19:57
Quote: "Maybe the trees are plains, and plains are flat?"


The angle in his screen shot is too shallow for it to be a plane issue. (that was my first thought too)

at the moment I am liking mr bigglesworths theory.

until further information...

Sometimes I like to use words out of contents
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Aug 2012 20:14
If the trees are all one object, you could try this:

set object radius <treeObj> , -1

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
tokyomage
15
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 19th Aug 2012 05:27
Thank you everyone for your help, I fixed the bug with what "TheComet" told me (set object radius <treeObj> , -1).

-Tokyomage


Did you know that water is wet? - "The more you know"
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Aug 2012 15:37
Just so you know exactly why that fixes it, your tree models have this thing called a "root coordinate" which is usually at the position 0,0,0 when you first load the model. If this point leaves the screen, DBP sometimes assumes that the model is completely off the screen and will therefore not render the object anymore.

By setting the object's radius to a negative value you tell DBP "yo dawg, render it no matter WHAT angle the camera is at".

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day

Login to post a reply

Server time is: 2026-07-21 20:34:55
Your offset time is: 2026-07-21 20:34:55