[osg-users] Possible Bug in osg::AutoTransform

Cysneros, Nelson SPAWAR nelson.cysneros at navy.mil
Mon Jul 23 20:07:36 PDT 2007


I think their might be a bug with osg::AutoTransform object.  I'm using
the setAutoScaleToScreen() function and it works as expected (the
transform object stays the same size on the screen no matter how much
you zoom in or out), but you don't have any control over the initial
size of the object.  I would like to set the initial size of the
transform with the setScale() function, but once you use the
setAutoScaleToScreen() function, the setScale() function does not have
any affect on the object.
 
I was able to duplicate the problem with the osgautotransform.cpp
example. (File is attached)
 
            osg::AutoTransform* at = new osg::AutoTransform;
            at->setPosition(pos);
   
            at->setScale(100000);  //vec3 argument does not work either
            at->setAutoScaleToScreen(true); //Scale does not work with
this on
 
 
The above code has no affect on the scaling unless  you set
setAutoScaleToScreen to false.
 
 
 
Thank you
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070723/b639e52d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgautotransform.cpp
Type: application/octet-stream
Size: 5882 bytes
Desc: osgautotransform.cpp
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070723/b639e52d/attachment-0001.obj 


More information about the osg-users mailing list