Temporarily hide all scene nodes

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
sunside
Posts: 9
Joined: Tue May 25, 2010 4:13 pm

Temporarily hide all scene nodes

Post by sunside »

Hi.

Is there a "native" way to temporarily hide all scene nodes? I need to isolate a single element to render it to a texture. I thought of creating some sort of supernode which I'd hide, but have no idea how to make a child of it visible again, overriding the parent's visibility.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I recommend using another scene manager, you are actually rendering two scenes to different targets.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
sunside
Posts: 9
Joined: Tue May 25, 2010 4:13 pm

Post by sunside »

Thanks!

Can I easily add an existing object from my main scene manager to the 'helper' scene manager? Or: Do I have to expect a performance hit? (Since I only need a small set of nodes there, is there maybe some kind of optimization?)
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

It's a little hackish, but you could also manually invoke the render calls of your active camera and the scene node(s) in question.
Post Reply