This might be related to an issue that I'm currently having. It seems that 
during the transition from 3.0 to 3.2, binding per primitive was deprecated, 
but the STL format binds its normal vectors per primitive. To deal with this, 
there was an ad hoc addition to the STL plugin where the normals of each 
primitive is being copied and applied to each vertex of the primitive. In 
theory, this should be fine, but I've noticed that STL files are being rendered 
incorrectly, and I believe it has to do with the normal vector array being ... 
wrong somehow.

When I print out the data in the normal vector arrays, many of the vectors have 
invalid magnitudes and look like their memory is uninitialized. It might be the 
case that something is very wrong about the way the normal array is being 
stored or initialized. It might be triggering a run time check for you where 
the program just quits, whereas for me it's just allowing it to be rendered 
even though the values are corrupted or invalid.

But this is all speculation...

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61500#61500





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to