[osg-users] About translation
Ulrich Hertlein
u.hertlein at sandbox.de
Tue Jul 24 04:28:25 PDT 2007
Franclin Foping wrote:
> When I applied setPosition to the PAT to specify the position of the
> object nothing happened! What is wrong?
The Sceneviewer will always attempt to keep your scene centered in the
display. So if you only have a single object and move it around it will
stay centered in the window and appear not to have moved at all. Maybe
it's as simple as that.
Try to add the object directly underneath the root node so that you have
a reference for the PAT'ed object.
(This is only true if you setup your transform once at startup. If you
move the object per-frame it will move as expected.)
/Ulrich
More information about the osg-users
mailing list