Re: [info-performer] setNodeTravFuncs

Date view Thread view Subject view Author view

From: Daniela Rainer (dr++at++vircinity.com)
Date: 06/17/2004 05:34:31


Hi,

I want to inform you that I found the problem. Another plugin of the
program deactivated intersection too.

Best Regards
Daniela

Am Mittwoch 16 Juni 2004 16:43 schrieb Daniela Rainer:
> Hi all,
>
> I found a strange behaviour of pfNode::setTravFuncs:
>
> I use a pre traversal callback to prevent intersection testing of a part of
> the scenegraph (the callback contains only "return PFTRAV_PRUNE"), because
> I don't want to modify the isect mask of the node.
>
> I remove the traversal callback with setTravFuncs(PFTRAV_ISECT,NULL,NULL).
> The traversal callback is set for a group node. This procedure works well
> if the group node has geode children.
>
> If the traversal callback is set when the DCS has no children, it is not
> called, but it seems that intersection testing is skipped, because if
> geodes are added later, they are not intersected. If the traversal callback
> is removed now, intersection is enabled.
>
> If the TravFunc is first set and then removed before geodes are added, it
> seems that intersection testing is still skipped although there is no
> traversal callback anymore. Can anybody explain this behaviour?
>
> As workaround I set/remove the traversal callback again when geodes are
> added but I hope there is a simpler solution.
>
> Thanks for any help.
>
> Best Regards
> Daniela

-- 
-------------------------------------------------------------------------
Daniela Rainer                       | email: dr++at++vircinity.com
Vircinity GmbH                       | http://www.vircinity.com
Nobelstrasse 15, 70550 Stuttgart     | Tel:   +49 (0) 711 6864534 22
GERMANY                              | Fax:   +49 (0) 711 6864534 99


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 17 2004 - 05:36:31 PDT