[osg-users] Question about osgManipulator::GridConstraint

Robert Osfield robert.osfield at gmail.com
Tue Nov 24 03:42:27 PST 2009


Hi Matthias,

I'm afraid I don't understand, nor have personally tested this part of
osgManipulator.  What you are seeing could well be a bug.
Unfortunately the original author of osgManipulator is no longer
active on osg-users so probably isn't around to ask.

Could you recreate the problem with osgmanipulator example?

Robert.

On Tue, Nov 24, 2009 at 11:10 AM, Matthias Asselborn
<matthias.asselborn at gmx.de> wrote:
> Hi,
>
> now i tested it with the old command manager
> but it didnt work
> is there a bug in GridConstraint?
>
> I need a snapping to given points
> Can anybody help me?
>
>
> Code:
> osgManipulator::GridConstraint *con = new osgManipulator::GridConstraint( *root , osg::Vec3(0,0,0), osg::Vec3(1.1,1.1,1.1 ) ) ;
>
>    float scale = scene->getBound().radius() * 1.6;
>    dragger->setMatrix(osg::Matrix::scale(scale, scale, scale) *
>                       osg::Matrix::translate(scene->getBound().center()));
>        cmdMgr->connect(*dragger, *selection);
>        cmdMgr->connect(*dragger, *con);
>
>
>
>
> Thank you!
>
> Cheers,
> Matthias
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=20209#20209
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


More information about the osg-users mailing list