From: Brian Corrie (bcorrie++at++origin1.imti.nrc.ca)
Date: 01/08/2001 07:01:38
Mark Evans wrote:
>
> I would like to know if there is a way to find the
> general transformation of a node in the Performer
> hierarchy, if I know the node and his parent, the
> parent of his parent, etc - i.e., I know the exact
> location of the node in the hierarchy.
> The cmplicated way is to get the transform of the
> parent, and parent of the parent, etc, till we get to
> the highest node in the hierarchy, and multiply the
> matrices. Is there a simpler way?
As well as doing the computation yourself, it is also possible (and perhaps
simpler) to attach an application callback to the node of interest. The
pfTraverser that is passed to the application callback contains the
transforamtion matrix for the node (see man pfTraverser for details).
Cheers,
Brian
This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 07:07:31 PST