[osg-users] Organising Geodes and Drawables

2009-11-27 Thread Martin Beckett
I have an object with separate component eg: a top, bottom and an outline. I have a choice of storing a group with each component in a separate osg::Geode but the outline points are shared by the top and bottom and I would rather not have data duplicate. There are a lot of points because the

Re: [osg-users] Organising Geodes and Drawables

2009-11-27 Thread Jean-Sébastien Guay
Hi Martin, If I store them as drawables in the same Geode, I can create a surface mesh of just the top and bottom by having the same vertex array and different Geometry drawables. Actually, you can give any drawables the same vertex array if you want, even if the drawables are not part of

Re: [osg-users] Organising Geodes and Drawables

2009-11-27 Thread Martin Beckett
So a good model would be : Single osg::Geode representing the entire part with all the vertex data and separate child geodes each with a single drawable for the points in the top, bottom and outline. Then meshes etc can be added to the children all sharing the same vertex data, in the parent ?