Hi Robert,

it seem that osgUtil::MergeGeodesVisitor only merge duplicate geode in a
same osg::Group.
But duplicate geode in a same osg::Group look like a bug rather than a
feature.

More over,
if the same Geode is 2 time in the same osg::Group, the merged geode will
have 2 time the same drawable :
example :
  Before merge :
  Group A have 2 time the geode B as child, that have 2 drawable C and D.
  After merge
  Group A will have only one time Geode B that will have 2 time drawable C
and 2 time drawable D

if the same Geode is 3 time in the same osg::Group, the merged geode will
have not 3 but 4 time the same drawable :
example :
  Before merge :
  Group A have 3 time the geode B as child, that have 2 drawable C and D.
  After merge
  Group A will have only one time Geode B that will have 4 time drawable C
and 4 time drawable D


What I expect from a MergeGeodeVisitor is to merge Geodes in a same
osg::Group in one Geode.
If a Geode are many time in the same group, I expect a BIG WARNING in the
log.

If you agree with the concept, I will fix the MergeGeodeVisitor.



PS:
this code seem to be copied from MergeGeometryVisitor that merge the
duplicate geometry only too,
with the same drawback that MergeGeodeVisitor.


David Callu
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to