If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Terry
Posts: 55 Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China
Post
by Terry » Fri Nov 05, 2010 3:03 am
Hi,
someone can tell me how can i know if a scene node is visible before draw the scene?it's very important for me!
thx
Rise and Rise Again Until Lambs Become Lions
slavik262
Posts: 753 Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA
Post
by slavik262 » Fri Nov 05, 2010 3:12 am
If you want to check if the node is set to visible or invisible, you can use node->isVisible(). If you want to check to see if it's been culled out of the scene based on the camera position, you can use sceneManager->isCulled(node).
Terry
Posts: 55 Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China
Post
by Terry » Fri Nov 05, 2010 6:18 am
Hi slavik262
the second case is what i need,thank you very much!
Rise and Rise Again Until Lambs Become Lions