View frustrum question.
View frustrum question.
I would like to ask about one thing regarding view frustrum and scene nodes. How could I detect if the scene node is FULLY visible by the camera? I mean no vertices go out the screen? I am asking this because I am making rtt system for various sizes of scene nodes and I always want them to be fully visible no matter what size they are. Any advices? I have tried checking the bounding boxes of the node and frustrum but it gives nto what I want.
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: View frustrum question.
After a quick search i found this. It's not exactly what you want, but i think you can tweak it easily.
"Whoops..."
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
You should take a look at this thread. If what I describe is correct, the planes of the view frustum were backward at one time, and that would make my old code misbehave with current versions of Irrlicht (assuming the bug has been fixed). I provide an example testing the node visibility in that thread. I'm pretty sure it worked back in 2007, but there is always a chance that it doesn't work.
If that is the case, you could also lift the implementation of CSceneManager::isCulled() from here and run with that.
Travis
If that is the case, you could also lift the implementation of CSceneManager::isCulled() from here and run with that.
Travis