[osg-users] PositionAttitudeTransform question
Vincent Bourdier
vincent.bourdier at gmail.com
Fri Mar 14 01:29:34 PDT 2008
Hi,
I'm not sure to understand you problem...
First of all, if you make a setScale(1,1,1) it is normal that nothing
changes...
After, your problem is not clear... you use a PAT for moving and scaling...
and you scale the object separately ?
Please be more precise... what does your scenegraph looks like ?
Vincent.
2008/3/14, mgreene at hiwaay.net <mgreene at hiwaay.net>:
>
> I have a geode that I have added as a child to a
> osg::PositionAttitudeTransform.
>
> If I call setPosition (x,y,z), it seems to work OK. If I then call
> setScale with
> (1.,1.,1.) as arguments, it doesn't change as expected. But, if I change
> the
> scale values to something other than one, in addition to scaling the
> object, it
> also moves it. How do I separate the two so that setScale only scales
> after a
> translation, not move it to?
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080314/4759a639/attachment.htm
More information about the osg-users
mailing list