Horde3D

Next-Generation Graphics Engine
It is currently 02.05.2025, 13:56

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 09.07.2008, 21:12 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
How can I hide a node but not it's children? For example, I have a moving node with several particle systems as children. Now the node explodes and must be hidden (and removed later on) but the particle systems remain active. I could loop over all children and set a new parent before exploding, but is there simpler way?


Top
 Profile  
Reply with quote  
PostPosted: 09.07.2008, 23:04 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
There are two possibilities. The first is to add a parameter recursive to the setNodeActivation method, the second is to create a group node where the model is attached in parallel to the emitters. This way you can disable the node and not the emitters while changing the transformation of the model and the emitters by using the group node.


Top
 Profile  
Reply with quote  
PostPosted: 10.07.2008, 01:24 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Volker wrote:
There are two possibilities. The first is to add a parameter recursive to the setNodeActivation method
Wait, isn't that bad? It doesn't make sense to be able to hide a node but still have parts of it (i.e. the child nodes) visible.

Quote:
the second is to create a group node where the model is attached in parallel to the emitters. This way you can disable the node and not the emitters while changing the transformation of the model and the emitters by using the group node
That's what I would suggest.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 48 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group