home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / graphics / 182 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.sys.sgi.graphics
  2. Path: sparky!uunet!seas.gwu.edu!burr
  3. From: burr@seas.gwu.edu (Timothy J. Burr)
  4. Subject: Inventor: scaling components in a hierarchy
  5. Message-ID: <1993Jan21.221541.17405@seas.gwu.edu>
  6. Sender: news@seas.gwu.edu
  7. Organization: George Washington University
  8. Distribution: usa
  9. Date: Thu, 21 Jan 1993 22:15:41 GMT
  10. Lines: 20
  11.  
  12. I've linked a bunch of SoShapeKits together via their childLists to 
  13. create a hierarchical object - a hand.  Everything works fine except,
  14. and its a big except, I don't want the scaling transformation of
  15. a parent to affect the child.  Rotations and Translations should, it
  16. seems to me, affect the stack but not scaling.  If you want to 
  17. uniformly scale the entire object then stick a SoScale node at the
  18. top off of the scene node.  How do you do component specific scalings
  19. without affecting those components further down the hierarchy? There
  20. seems to be no way to tell the SoTransform node, or any node to use
  21. the field but don't push it on the stack.  My only alternative seems
  22. to undo the scaling done by the parent at each child.  This is rather
  23. ugly.  Is there a way around this?
  24.  
  25. Tim
  26.  
  27.  
  28. /*-----------------------------------------------------------------------*/
  29. /* Tim Burr         burr@seas.gwu.edu  or  burr@enews.nrl.navy.mil     */
  30. /*"Essence is, that about a thing that makes that thing what it is"      */
  31. /*-----------------------------------------------------------------------*/
  32.