HI Csaba, I've just looked at the files, and the .osg file has 0 0 0's for all the vertices, looking at your code segment from the crash it kinda looks like the tex coords are derived from the vertex positions, so all 0 0 0's for vertices would map to lot's of divide by zeros and nans as a result. This would suggest either the original data is broken, or that the vertex reading is broken.
Does this model load OK into lightwave? Could you post a screen shot? Robert. On Thu, Feb 5, 2009 at 1:43 AM, Csaba Halász <[email protected]> wrote: > Hi everybody. > > I have gotten a report that the LWO loader doesn't seem to work. > Investigating, I grabbed the sample LWO file posted by Marco Jez back > in november last year (attached for convenience). > Loading into osgviewer, I get an empty view. Trying osgconv, I get an > osg file full of zeroes and nans (also attached). > With SIGFPE enabled, gdb shows: > > Program received signal SIGFPE, Arithmetic exception. > [Switching to Thread 0x7f9b6be43730 (LWP 10599)] > 0x00007f9b6756e456 in lwosg::Block::setup_texture_point > (this=0xaee3c8, p...@0x7fff73fdcca0) at > OpenSceneGraph/src/osgPlugins/lwo/Block.cpp:141 > 141 Q.x() *= 1/imap_.mapping.size_.x(); > Current language: auto; currently c++ > (gdb) p imap_.mapping > $1 = {center_ = {_v = {0, 0, 0}}, size_ = {_v = {0, 0, 0}}, rotation_ > = {_v = {0, 0, 0}}, > csys_ = lwosg::Texture_mapping::OBJECT} > > That's clearly the source of the nans but maybe not the root of the problem. > I haven't tried to find the exact svn rev this got broken yet, maybe > somebody has a quick solution right away. > > -- > Thanks, > Csaba > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

