[osg-users] Black stains in my rendering?

Robert Osfield robert.osfield at gmail.com
Tue Jan 23 09:20:10 PST 2018


Hi Antoine.

My best guess is that some of your normal, color or textcoord data is
corrupted in some way resulting in the black areas around some
vertices.

Robert.

On 23 January 2018 at 15:43, Antoine Rennuit <antoinerennuit at hotmail.com> wrote:
> Dear forum,
>
> EDIT: It appears the images of my last message did not go through, so here is the same post including the images.
>
> I have a OSG app which I have been using for a while to display complex meshes, grids, widgets... Now I am displaying a NURBS surface (well it is also seen as a mesh to OSG) which is the result of a points cloud fitting and I observe dirty black stains on the normally smooth grey surface that is drawn. You can observe them on the 1st image below.
>
> Now I have checked with the OSG default shading and with my own custom Phong shading and both methods return the same black stains.
>
> I initially thought that it was due to my surface being slightly rippled itself (it should not be rippled but that could have been a bug explaining the behavior observed in my rendering), but it is actually not rippled at all, as seen on the normals rendering below and where all the normals are cleanly aligned (except in the bottom right where the geometry is no longer planar - which is expected according to the fitted points cloud). The 2nd image below shows the normals are very clean.
>
> Any idea of where these dirty black stains could come from?
>
> Thanks a lot,
>
> Antoine.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72841#72841
>
>
>
>
> _______________________________________________
> 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