Hi,
So no one has any ideas about this? I guess I'll go with my hunch and
see where it goes.
J-S
The following random bytes came from Jean-Sébastien Guay's keyboard :
Hi guys,
Once again, a question about something pretty specific, so bear with me
please...
I want an osgManipulator::Dragger to be always the same size on the
screen, independently of how far away the camera is (if someone is
familiar with Maya, something like that). So I thought putting it under
an osg::AutoTransform with autoScaleToScreen = true would be ideal.
Unfortunately, since the dragger stores its transform in its own matrix,
the dragger now moves in pixel increments instead of in world unit
increments. The object I'm manipulating moves correctly when I drag the
dragger, but the dragger doesn't follow.
Is there a way to get the AutoTransform to only affect the scale, and
not other parts of the transformation matrix? Or is there some other way
to do what I want to do?
I thought perhaps the dragger could resize itself by listening to FRAME
events or something like that and then determining the proper size. Has
anyone done this before?
Thanks in advance,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org