From: Marc Mendez (mmendez++at++silicon-worlds.fr)
Date: 09/16/2002 07:10:02
> Hi to all,
> i need an example ( C++ on Linux Red Hat 7.3 ) or method to move ( rotate
> or
> transalte or both ) a single part of an OBJ file. In histance, taking
> cow.obj file, i need to rotate only the horns on the cow's head ( not
> separatelly).
> I have already select the single groups, and i get the group's name. Could
> you give me any suggestion ?
> Thanks . :)
Rough way to do it explained below:
- If you already have a pointer on the pfGroup you d like to trans/rot/scale,
you may insert just below a pfDCS node you keep a global pointer to.
- The pfDCS will default to 0 rot, 0 translation and 1 scale.
- Then in your postdraw call back, adjust the pfDCS rot/trans/scale.
The node lookup routine must be called just after the scene loading. I don t
know the obj file format, you must have a name for each node and you ve used a
pfuTraverser ???
Marc.
This archive was generated by hypermail 2b29 : Mon Sep 16 2002 - 07:10:21 PDT