[osg-users] Black stains in my rendering?

Antoine Rennuit antoinerennuit at hotmail.com
Tue Jan 23 07:43:54 PST 2018


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: StainedSurface_withNormals.jpg
Type: image/jpeg
Size: 352871 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180123/50b767b9/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StainedSurface.jpg
Type: image/jpeg
Size: 119458 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180123/50b767b9/attachment-0003.jpg>


More information about the osg-users mailing list