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
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
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 ?
3 matches
Mail list logo