[osg-users] Geometries disappearing at optimization
Robert Osfield
robert.osfield at gmail.com
Mon Apr 2 02:29:32 PDT 2018
HI Andreas,
Thanks for test model with this I'm able to reproduce the bug. I'm
now investigating this issue and have a workaround that prevent the
4th geometry from going missing but I'm really not happy with is it
doesn't actually fix the root cause of the problem.
Ideally we want geometries sets that when combined exceed the target
number of vertices to be regrouped into batches, each batch under the
limit. We don't want to remove this limit as from my own testing
geometries with too many vertices tend to perform worse than sets of
geometries with a moderate number of vertices.
Robert.
On 2 April 2018 at 01:03, Andreas Ekstrand
<andreas.ekstrand at remograph.com> wrote:
> 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
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list