Obtaining "squished" transformation for a node

New Message Reply Date view Thread view Subject view Author view

Ryutarou OHBUCHI (ohbuchi++at++trl.ibm.co.jp)
Wed, 14 Sep 1994 11:03:36 +0900


I have been looking for an efficient way to "squish" (concatenate)
transformations, both DCS and SCS, from a root to a specified node of
a scene graph. I wish to know the squished transform for the node
at a certain moment so that I can use it for various purposes.

Following the path from the node to the root fails since a node may
have multiple parents. (Is this right?)

Another solution I thought of is to traverse the scene graph from
the root (e.g., by pfuTraverse) until the node in question is found,
while keeping track of the transform in a stack of transformation
matrices. This would work fine for a small graph without too severe
a performance problem if the number of queries is small.

Before implementiong the traverse method, I wanted to check if there
is a better method. Performer tend to have many features that I
miss in my cursoly scan of the programmer's manual.

-----
Ryutarou Ohbuchi
IBM Japan, Ltd., SA-S76
1623-14, Shimo-tsuruma, Yamato-shi,
Kanagawa-ken 242, Japan
Phone: 0462-73-4882 Fax: 0462-73-7413
ip: ohbuchi++at++trl.ibm.co.jp


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.