Hi all,
I switched to OSG 3.2.0 from 3.0.1 version.
I am experiencing a visualization problem (no problems with 3.0.1 with the same
sources).
Please see attached images. Red triangles should be the interior of the model
and they should be not visible and the grid should be on the back of the model.
May be I missed something.
I also have a problem on STL ASCII import (for binary import I use my own
routine). I got a "vector subscript out of range" assertion on "readNode"
(during a "stripify").
Is it correct to use a "stripify" with the new fast path of OSG 3.2.0?
This is the call stack:
> msvcp100d.dll!std::_Debug_message(const wchar_t * message, const
> wchar_t * file, unsigned int line) Riga 15 C++
osgdb_stld.dll!std::vector<osg::Vec3f,std::allocator<osg::Vec3f>
>::operator[](unsigned int _Pos) Riga 916 + 0x17 byte C++
osgdb_stld.dll!osg::MixinVector<osg::Vec3f>::operator[](unsigned int
index) Riga 107 + 0x1d byte C++
osgdb_stld.dll!osg::TemplateArray<osg::Vec3f,28,3,5126>::compare(unsigned int
lhs, unsigned int rhs) Riga 272 + 0xf byte C++
osg100-osgUtild.dll!VertexAttribComparitor::operator()(unsigned int
lhs, unsigned int rhs) Riga 102 + 0x24 byte C++
osg100-osgUtild.dll!std::_Debug_lt_pred<VertexAttribComparitor,unsigned
int,unsigned int>(VertexAttribComparitor _Pred, unsigned int & _Left, unsigned
int & _Right, const wchar_t * _File, unsigned int _Line) Riga 674 + 0x14 byte
C++
osg100-osgUtild.dll!std::_Unguarded_partition<unsigned int
*,VertexAttribComparitor>(unsigned int * _First, unsigned int * _Last,
VertexAttribComparitor _Pred) Riga 3733 + 0x2b byte C++
osg100-osgUtild.dll!std::_Sort<unsigned int
*,int,VertexAttribComparitor>(unsigned int * _First, unsigned int * _Last, int
_Ideal, VertexAttribComparitor _Pred) Riga 3776 + 0x25 byte C++
osg100-osgUtild.dll!std::sort<std::_Vector_iterator<std::_Vector_val<unsigned
int,std::allocator<unsigned int> >
>,VertexAttribComparitor>(std::_Vector_iterator<std::_Vector_val<unsigned
int,std::allocator<unsigned int> > > _First,
std::_Vector_iterator<std::_Vector_val<unsigned int,std::allocator<unsigned
int> > > _Last, VertexAttribComparitor _Pred) Riga 3806 + 0x7a byte C++
osg100-osgUtild.dll!osgUtil::TriStripVisitor::stripify(osg::Geometry &
geom) Riga 271 + 0x77 byte C++
osgdb_stld.dll!ReaderWriterSTL::ReaderObject::asGeometry() Riga 134 +
0x17 byte C++
osgdb_stld.dll!ReaderWriterSTL::readNode(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & file,
const osgDB::Options * options) Riga 437 + 0x19 byte C++
osg100-osgDBd.dll!osgDB::Registry::ReadNodeFunctor::doRead(osgDB::ReaderWriter
& rw) Riga 937 + 0x40 byte C++
osg100-osgDBd.dll!osgDB::Registry::read(const
osgDB::Registry::ReadFunctor & readFunctor) Riga 1175 + 0x22 byte C++
osg100-osgDBd.dll!osgDB::Registry::readImplementation(const
osgDB::Registry::ReadFunctor & readFunctor, osgDB::Options::CacheHintOptions
cacheHint) Riga 1266 + 0x13 byte C++
osg100-osgDBd.dll!osgDB::Registry::readNodeImplementation(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
fileName, const osgDB::Options * options) Riga 1468 + 0x32 byte C++
osg100-osgDBd.dll!osgDB::Registry::readNode(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
fileName, const osgDB::Options * options, bool buildKdTreeIfRequired) Riga 238
+ 0x17 byte C++
osg100-osgDBd.dll!osgDB::readNodeFile(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
filename, const osgDB::Options * options) Riga 69 + 0x1f byte C++
Thanks
Ale
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55994#55994
Attachments:
http://forum.openscenegraph.org//files/osg_320_problem_3_353.png
http://forum.openscenegraph.org//files/osg_320_problem_2_126.png
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org