Horde3D http://horde3d.org/forums/ |
|
How to Ignore Node and Children in Cast Ray http://horde3d.org/forums/viewtopic.php?f=2&t=1124 |
Page 1 of 1 |
Author: | tlaukkan [ 14.03.2010, 20:26 ] |
Post subject: | How to Ignore Node and Children in Cast Ray |
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 |
Author: | Codepoet [ 14.03.2010, 21:17 ] |
Post subject: | Re: How to Ignore Node and Children in Cast Ray |
You could try setting different parent nodes for the avatar and the other parts of the scene. |
Author: | Volker [ 14.03.2010, 21:32 ] |
Post subject: | Re: How to Ignore Node and Children in Cast Ray |
Or just iterate over the results and check if the node to ignore is in the list of parents of the intersection node. |
Author: | tlaukkan [ 15.03.2010, 17:07 ] |
Post subject: | Re: How to Ignore Node and Children in Cast Ray |
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 |
Author: | marciano [ 16.03.2010, 03:28 ] |
Post subject: | Re: How to Ignore Node and Children in Cast Ray |
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. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |