[osg-users] About translation

Alberto Luaces aluaces at udc.es
Tue Jul 24 03:31:43 PDT 2007


El Martes 24 Julio 2007, Franclin Foping escribió:
> Hi,
>  I am a new OSG programmer and because of the lack of documentation I found
> it very hard to get everything working. I would like to know the difference
> between: PositionAttitudeTransform and MatrixTransform Secondly, I have
> tried to move an object in a scene.
>  Basically, I created a node for the object and another for the root so the
> scene consisted of only 2 nodes. I added a PositionAttitudeTransform as a
> child node to the root and the object as a child node to
> PositionAttitudeTransform. When I applied setPosition to the PAT to specify
> the position of the object  nothing happened!  What is wrong? Waiting for
> your reply,
>  Franclin
>

Hi,

MatrixTransform lets you define all kind of transformations that you can 
create with a matrix notation: translation, rotation, shear, scale...

PositionAttitudeTransform lets you specify the position and orientation of  
its children nodes.

Can you post your code in order to find the bug?

Alberto


More information about the osg-users mailing list