scene node visible

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.
Post Reply
Terry
Posts: 55
Joined: Wed Jan 27, 2010 6:16 am
Location: Peking/China

scene node visible

Post by Terry »

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 »

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 »

Hi slavik262

the second case is what i need,thank you very much! :lol:
Rise and Rise Again Until Lambs Become Lions
Post Reply