Hi Grey, I have just tested the OSG-3.2 branch and OSG svn/trunk and both load the two .stl ( CoffeeSpoonHolder.stl and CoffeeSpoonHolder2.stl) perfectly, with no odd lighting affects.
>From the svn log for stl plugin there was a patch applied a couple months after the OSG-3.2.0 release: $ svn log ReaderWriterSTL.cpp ------------------------------------------------------------------------ r13821 | robert | 2013-10-02 12:09:22 +0100 (Wed, 02 Oct 2013) | 21 lines >From Björn Hein, "it seems that for generating "per vertex normals" as stated in the comment, two of them are missing. This results in wrong display of STL-files regarding normals. Following simple fix seems to work: Index: ReaderWriterSTL.cpp =================================================================== --- ReaderWriterSTL.cpp (Revision 13797) +++ ReaderWriterSTL.cpp (Arbeitskopie) @@ -108,6 +108,8 @@ ++itr) { perVertexNormals->push_back(*itr); + perVertexNormals->push_back(*itr); + perVertexNormals->push_back(*itr); } geom->setNormalArray(perVertexNormals.get(), osg::Array::BIND_PER_VERTEX); " This means the patch will be part of OSG-3.2.1 so I'd recommend you update to this version of the OSG. Robert. On 4 November 2014 15:48, Michael Grey <chaotic.actua...@gmail.com> wrote: > Hi, Robert > > I think the one that generated the output I posted was found here: > http://www.thingiverse.com/thing:60726 > > --Grey > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61509#61509 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org