Hi Sukender,

I've merged your change and now I don't get the hangs and cow.3ds and lz.3ds
are generated, but alas with the same artifacts that you are seeing.  The
trees look like an issue of how to handle billboards in 3ds, and the black
textures?  Don't know, an error in the material colour or model colour?
Since the changes are another little step forward I've checked them in.
It'd be cool to have the artifacts addressed though, as end users are almost
certainly going to trip up when then try the 3ds export.

Cheers,
Robert.

On Fri, Feb 19, 2010 at 2:05 PM, Sukender <[email protected]> wrote:

> Hi Robert,
>
> Sorry I didn't answer sooner.
> I tried a tiny change in is83() function and had no crash (under Windows).
> "osgconv cow.osg cow.3ds" exports a black cow and "osgconv lz.osg lz.3ds"
> exports tree(s) at (0,0,0)... I guess there are still things to do about
> non-zero-index textures and multiple instanciation of a node, but at least
> it doesn't crash.
>
> Attached is my file at rev. 11083.
>
> Cheers,
>
> Sukender
> PVLE - Lightweight cross-platform game engine -
> http://pvle.sourceforge.net/
>
> ----- "Robert Osfield" <[email protected]> a écrit :
>
> > Hi Sukender,
> >
> > I've now reviewed and merged your changes to keep the ball rolling.
> >
> > There are still problems with writing out scene graphs though.
> >
> >   osgconv cow.osg cow.3ds
> >
> > and
> >
> >   osgconv lz.osg lz.3ds
> >
> > both hang, the both hangs at around:
> >
> >
> > #0  0x00007f0619676750 in std::string::find_first_of () from
> > /usr/lib/libstdc++.so.6
> > #1  0x00007f061772d4c4 in is83 () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #2  0x00007f061772d95a in is3DSpath () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #3  0x00007f0617733162 in WriterNodeVisitor::writeMaterials () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #4  0x00007f0617726503 in ReaderWriter3DS::createFileObject () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #5  0x00007f061772670b in ReaderWriter3DS::doWriteNode () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #6  0x00007f0617725e08 in ReaderWriter3DS::writeNode () from
> > /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so
> > #7  0x00007f061bac4c2a in osgDB::Registry::writeNodeImplementation ()
> > from /home/robert/OpenSceneGraph/lib/libosgDB.so.63
> >
> >
> > For further work on the 3ds plugin could you do an svn update and use
> > this as the base as I've merged other fixes to the plugin that I
> > don't
> > want to loose.
> >
> > Cheers,
> > Robert.
> > _______________________________________________
> > osg-submissions mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to