Horde3D

Next-Generation Graphics Engine
It is currently 29.04.2024, 13:16

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 14.03.2010, 20:26 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
Hi

I have a use case where I would like to cast rays several times a second near avatar and ignore the avatar node and its children. Is there a way to do this and if not would this be a candidate to the API. So you could also give node(s) to ignore in the ray cast?

Regards,
Tommi


Top
 Profile  
Reply with quote  
PostPosted: 14.03.2010, 21:17 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
You could try setting different parent nodes for the avatar and the other parts of the scene.


Top
 Profile  
Reply with quote  
PostPosted: 14.03.2010, 21:32 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Or just iterate over the results and check if the node to ignore is in the list of parents of the intersection node.


Top
 Profile  
Reply with quote  
PostPosted: 15.03.2010, 17:07 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
Hi

Thank you for the replies. I am currently doing the latter: Manually iterating the parents but that results some unnecessary processing I would like to optimize out. The different parent node might be a working solution in this specific case all though it is sub optimal as generic solution because it makes the scene graph more complex.

-tommi


Top
 Profile  
Reply with quote  
PostPosted: 16.03.2010, 03:28 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
This would be solved with the node flags that I have in mind. Each node would get a specific set of optional flags like invisible, noCastShadow and also noRayQuery.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 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:  
cron
Powered by phpBB® Forum Software © phpBB Group