Re: [osg-users] [osgPlugins] bug stl pugin?

2014-11-04 Thread Michael Grey
Just to follow up on this, I've confirmed that the behavior we're each seeing 
is caused by the same bug. The STL plugin for 3.2.0 does not initialize its 
normal vector array correctly (it reserves all the memory it needs, but only 
fills in 1/3 of it), which results in undefined behavior. For you it aborts 
whereas for me it renders badly.

It seems that they patched this in version 3.2.1, so if you update to that, the 
problem should be resolved.

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] bug stl pugin?

2014-11-03 Thread Michael Grey
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] bug stl pugin?

2014-03-05 Thread Ulrich Hertlein

Hi Anneke,

Quoting Anneke Sicherer-Roetman letter...@hotmail.com:
I just installed version 3.2.0. Now, when reading an .stl file with  
the pretaining plugin, I get vector subscript out of range in the  
readNode function. I temporarily reverted to 3.0.1 to bve able to  
continue my work, but what can I do about this??


Could you post a file that exhibits this behaviour?

Cheers,
/ulrich


pgp4F0ES6O3cU.pgp
Description: PGP Digital Signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [osgPlugins] bug stl pugin?

2014-03-04 Thread Anneke Sicherer-Roetman
Hi,

I just installed version 3.2.0. Now, when reading an .stl file with the 
pretaining plugin, I get vector subscript out of range in the readNode 
function. I temporarily reverted to 3.0.1 to bve able to continue my work, but 
what can I do about this??

Thank you for any hints!

Cheers,
Anneke

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org