Article View: comp.sys.sgi.graphics
Article #113Inventor: scaling components in a hierarchy
From: Timothy J. Burr
Date: Thu, 21 Jan 1993 22:15
Date: Thu, 21 Jan 1993 22:15
20 lines
1472 bytes
1472 bytes
I've linked a bunch of SoShapeKits together via their childLists to create a hierarchical object - a hand. Everything works fine except, and its a big except, I don't want the scaling transformation of a parent to affect the child. Rotations and Translations should, it seems to me, affect the stack but not scaling. If you want to uniformly scale the entire object then stick a SoScale node at the top off of the scene node. How do you do component specific scalings without affecting those components further down the hierarchy? There seems to be no way to tell the SoTransform node, or any node to use the field but don't push it on the stack. My only alternative seems to undo the scaling done by the parent at each child. This is rather ugly. Is there a way around this? Tim /*-----------------------------------------------------------------------*/ /* Tim Burr burr@seas.gwu.edu or burr@enews.nrl.navy.mil */ /*"Essence is, that about a thing that makes that thing what it is" */ /*-----------------------------------------------------------------------*/
Technical Details
Message-ID:
<1993Jan21.221541.17405@seas.gwu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!burrShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.graphics Path: arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!burr From: burr@seas.gwu.edu (Timothy J. Burr) Subject: Inventor: scaling components in a hierarchy Message-ID: <1993Jan21.221541.17405@seas.gwu.edu> Sender: news@seas.gwu.edu Organization: George Washington University Distribution: usa Date: Thu, 21 Jan 1993 22:15:41 GMT Lines: 20