[osg-users] Geometries disappearing at optimization

Andreas Ekstrand andreas.ekstrand at remograph.com
Sun Apr 1 17:03:24 PDT 2018


I'm sending this message again with an attached .osgb file instead of 
debug-friendly .osg, because of the attachment size:

Hi Robert,

Happy Easter! :-)

Sorry for the late feedback on the performance changes in the 
MergeGeometryVisitor that I was involved in a while ago. But I 
discovered a rather serious issue - in the attached example mesh the 
last geometry (lower-left quadrant) disappears in 
MergeGeometryVisitor::mergeGroup and I think it's due to it reaching the 
10000 vertices maximum. It works in old 3.4 and it's easily reproducible 
in the 3.6 branch by just running osgviewer with default optimizations, 
while turning off optimizations will keep the geometry intact.

I haven't dug deep enough to find the detailed cause but the last 
"left-over" geometry obviously isn't added back. Hopefully you will find 
the cause quickly since it wasn't too long ago you rewrote parts of this 
code. If not, please let me know if I can help with further debugging!

Also, I wonder if there shouldn't be a way to control the 10000 maximum 
from outside Optimizer somehow?

Regards,
Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180402/6cabdda5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optimize2.osgb
Type: application/octet-stream
Size: 153942 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180402/6cabdda5/attachment-0001.obj>


More information about the osg-users mailing list