Re: [osg-users] osg::Billboard positions

2020-02-13 Thread OpenSceneGraph Users
Hi Robert, I fixed my issue by recreating the osg::Billboard, instead of re-adding all the drawables to the billboard. 1) tags = new osg::Billboard; // add all the billboards 2) tags->addDrawable(osg::Geometry, osg::Vec3(pos.x, pos.y, pos.z)); 3) draw scene I understand very well what you are

Re: [osg-users] osg::Billboard positions

2020-02-13 Thread OpenSceneGraph Users
HI Catalin, I would recommend against deleting and recreating scene graphs on every frame, this will lead to poor performance. If you have a really dynamic dataset then it may be appropriate to write a custom node for this, or use a shader. In the case of shaders you can often replace billboards

[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)