[osg-users] Tiny normals: osgviewer vs osgcompositeviewer
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Mon Dec 4 01:38:49 PST 2017
Hi Per,
Just a thought:
Maybe the Optimizer simply applies normal-rescaling?
Cheers
Sebastian
> Hi all,
>
> I came across something strange recently;
> the attached model is a red triangle scaled down by a factor 1000.
> The normals are squashed and I see some rendering problems in my app,
> which uses osgcompositeviewer.
>
> Confirmed with
> osgcompositeviewer red.osgt - renders with white color (incorrect)
> BUT
> osgviewer red.osgt - renders with red color (correct)
>
> I did some digging in the OSG code, it seems the difference is that
> osgviewer always
> optimizes the scene graph, something that osgcompositeviewer never does.
> Adding an optimizer to osgcompositeviewer fixes the rendering.
>
> So first question; would it be better if the two viewers applied same
> optimizer settings?
> Since users would expect them to display things in the exact same way.
>
> Second and more interesting; how can optimizer correct a "broken" model?
>
> Thank you!
>
> /Per
>
>
>
> _______________________________________________
> 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