[osg-users] osgQt::GLWidget Scroll Bug

2020-02-12 Thread OpenSceneGraph Users
I think I'm running into a bug in OSG. I've implemented my own versions of mouse events in a sub-classed osgQt::GLWidget so I can redraw the 3D view only when necessary: void Osg3dViewCM::mousePressEvent(QMouseEvent* event) { m_mouseDown = true; if (_cameraManipulator.valid()) {

[osg-users] osg::Billboard positions

2020-02-12 Thread OpenSceneGraph Users
Hi, I have an issue, might not be related to osg::Billboard it self. At every frame, I delete all the drawables for a osg::Billboard: tags->removeDrawables(0, size); and I add them again, possible with different values for position: tags->addDrawable(osg::Geometry, osg::Vec3(pos.x, pos.y, pos.z)

Re: [osg-users] How to scale/rotate/move an asset in OpenSceneGraph

2020-02-12 Thread OpenSceneGraph Users
That helped a lot. Thanks Regards Luca Il giorno mar 11 feb 2020 alle ore 17:38 Armin Samii ha scritto: > Check out the examples directory. > One example: > https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osganimate/osganimate.cpp#L247 > 1. Create a MatrixTransform > 2. Ad