Re: [osg-users] Multiple instances of same Drawable in different colors

2014-08-07 Thread Robert Osfield
HI Frederike, On 6 August 2014 22:03, Friederike Schneemann friederike.schneem...@gmail.com wrote: Thank you very much for your quick reply. I didn't know that using ShapeDrawables is not recommended at all, but as a beginner it's the first which comes across while using google to learn osg

Re: [osg-users] Multiple instances of same Drawable in different colors

2014-08-06 Thread Robert Osfield
Hi Frie, osg::ShapeDrawable was never intended with this type of usage, it's just a convenience for the occasional visualization the shape primitives. osg::Geometry is the class intended for general usage in the scene graph and is designed around OpenGL fast paths so you can achieve the better

Re: [osg-users] Multiple instances of same Drawable in different colors

2014-08-06 Thread Friederike Schneemann
Hi Robert, Thank you very much for your quick reply. I didn't know that using ShapeDrawables is not recommended at all, but as a beginner it's the first which comes across while using google to learn osg :) I will maximum place 64 geometry instances (each currently consisting of 3

[osg-users] Multiple instances of same Drawable in different colors

2014-08-05 Thread Friederike Schneemann
Hi, I use osg for the first time to create a low level visualization to show the position of tracked objects in a 3D world. To make it memory efficient I created a tree structure with multiple transformation matrices which are all pointing to the same Geode, which contains the ShapeDrawables