[osg-submissions] FLT export: minor fixes
Paul Martz
pmartz at skew-matrix.com
Fri Mar 28 13:56:18 PDT 2008
The warning about GL_POINTS is valid -- No way to create point prim itives
in a FLT file, so they get dropped with warning messages.
The stack trace sort of implies a problem with how my code handles matrices.
Not really a good mapping between OSG and FLT becausse they're first class
citizens in OSG but mere ancillary records in FLT, so my code plays a little
shell game to get that to work, and it's possible I'm dereferencing a NULL
ptr somewhere. I'll take a look at it.
A small reproducer .osg file would be super handy if you could; email me
offline if necessary for security.
-Paul
> -----Original Message-----
> From: osg-submissions-bounces at lists.openscenegraph.org
> [mailto:osg-submissions-bounces at lists.openscenegraph.org] On
> Behalf Of Robert Osfield
> Sent: Friday, March 28, 2008 1:08 PM
> To: OpenSceneGraph Submissions
> Subject: Re: [osg-submissions] FLT export: minor fixes
>
> Thanks changes merged and submitted to SVN.
>
> I have a model here that produces some errors, unfortunately
> it's not my to redistribute.
>
>
> osgconv umemain_new.flt test.ive
> Can't find texture (3) sp_skylt.inta
> Data written to 'test.ive'.
>
> (normal warning nothing wrong yet)
>
> Then converting back to .flt :
>
> osgconv test.ive test.flt
> fltexp: GL_POINTS not supported in FLT export.
> fltexp: GL_POINTS not supported in FLT export.
> fltexp: GL_POINTS not supported in FLT export.
> fltexp: GL_POINTS not supported in FLT export.
> Data written to 'test.flt'.
>
> Then viewing it:
>
> osgviewer test.flt
>
> The model is viewable but object in are positioned wrong.
>
> Then if I convert from .flt to .flt directly I get a seg fault.
>
> osgconv umemain_new.flt test.flt
> Can't find texture (3) sp_skylt.inta
> Segmentation fault (core dumped)
>
> Stack trace:
>
> (gdb) where
> #0 0x0000000001f21510 in ?? ()
> #1 0x00002aaaaab693f7 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #2 0x00002b69d715678f in osg::MatrixTransform::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #3 0x00002b69d7140440 in osg::Group::traverse () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #4 0x00002aaaaab69bc0 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #5 0x00002b69d7141d6c in osg::Group::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #6 0x00002b69d7140440 in osg::Group::traverse () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #7 0x00002aaaaab69bc0 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #8 0x00002b69d7141d6c in osg::Group::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #9 0x00002b69d7140440 in osg::Group::traverse () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #10 0x00002aaaaab69bc0 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #11 0x00002b69d7141d6c in osg::Group::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #12 0x00002b69d7140440 in osg::Group::traverse () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #13 0x00002aaaaab69bc0 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #14 0x00002b69d7141d6c in osg::Group::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #15 0x00002b69d7140440 in osg::Group::traverse () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #16 0x00002aaaaab69bd1 in flt::FltExportVisitor::apply ()
> from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #17 0x00002b69d7141d6c in osg::Group::accept () from
> /home/robert/OpenSceneGraph/lib/libosg.so.32
> #18 0x00002aaaaab963d9 in FLTReaderWriter::writeNode () from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
> #19 0x00002aaaaab9969a in FLTReaderWriter::writeNode () from
> /home/robert/OpenSceneGraph/lib/osgPlugins-2.3.6/osgdb_openflight.so
>
> I don't have a debug build yet though so can't provide line numbers.
>
> Robert.
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o
> penscenegraph.org
More information about the osg-submissions
mailing list