[osg-users] Problems loading OSGB files created with old version of OSG.

419 views
Skip to first unread message

Alessandro Terenzi

unread,
Aug 7, 2015, 5:44:10 AM8/7/15
to osg-...@lists.openscenegraph.org
Hi,
I am experiencing some problems when I try to load osgb files containing animations. Those files were created with a quite old version of OSG and now I'm trying to load them using version 3.4.0 rc9. If I try to load models without animations then they are opened correctly.

Basically here's the message I get:

InputStream: Failed to read from stream. At osg::Node

When enabling a more verbose notify level I get the log attached to this post.

As far as I could try the problem seems to exist both on Windows and iOS.

Any suggestion?

Thanks.
Alessandro

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




Attachments:
http://forum.openscenegraph.org//files/log_939.txt


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

Robert Osfield

unread,
Aug 7, 2015, 6:02:19 AM8/7/15
to OpenSceneGraph Users
Hi Alessandro,

Could you try converting the .osgb file to .osgt, .osg and .ive in the older version of the OSG, then try and load these with OSG-3.4.0-rc9.

Robert.

Alessandro Terenzi

unread,
Aug 7, 2015, 6:27:46 AM8/7/15
to osg-...@lists.openscenegraph.org
Hi Robert,
I tried the conversions you suggested, during the conversion process I received these messages:

InputStream::readObject(): Unsupported wrapper class osg::ComputeBoundingBoxCallback
InputStream::readObject(): Unsupported wrapper class osg::UpdateCallback
InputStream::readObject(): Unsupported wrapper class osg::ComputeBoundingBoxCallback
InputStream::readObject(): Unsupported wrapper class osg::UpdateCallback

This, by the way, was the reason I wanted to upgrade to OSG 3.4.0.

Then, tried to open the converted models using osgviewer (3.4.0) and they all work (even though the "ive" and "osgt" variants have misplaced geometries) - the original animation seems that has been removed, or at least it does not work anymore: with the "ive" variant osganimationviewer crashes, whereas with "osg" and "osgt" variants the animation is actually found (as "Take 001") but the geometries do not move at all.

I am attaching a zip with the original OSGB file and the converted variants.

Thank you.
Alessandro

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




Attachments:
http://forum.openscenegraph.org//files/models_127.zip

Robert Osfield

unread,
Aug 7, 2015, 9:33:24 AM8/7/15
to OpenSceneGraph Users

Hi Alexander

Thanks for the models. Will try them once I get to my dev machine.

What Osg version where you previously where working with?

Is it possible to recreate the original models from the source that original osgb file was created from?

Robert

Alessandro Terenzi

unread,
Aug 7, 2015, 9:59:11 AM8/7/15
to osg-...@lists.openscenegraph.org
Hi Robert,
I am not sure about the exact version I used... we are talking of 2 years ago and, as far as I remember, I used the latest version available at that time to build OSGExp plugin for 3ds Max and to export the model I've shared (maybe it was version 2.9.4).

Also, if it can help, osgviewer built against OSG version 3.1.0 can open that model without errors (but with the messages I posted in my previous message).

What I can do is to export a new animated model using a more recent version of OSGExp and check if there exists the same problem.


Cheers,
Alessandro

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

Robert Osfield

unread,
Aug 7, 2015, 10:18:38 AM8/7/15
to OpenSceneGraph Users
Hi Alessandro,

There is chance that the original .osgb file contained errors in it due to bugs in the .osgb format - I have fixed a couple of errors that were impossible to retain backwards compatibility for.  With so many changes since the 2.9.x days I can't provide guidance of whether this might affect your files or not.

Robert.

Alessandro Terenzi

unread,
Aug 7, 2015, 10:36:28 AM8/7/15
to osg-...@lists.openscenegraph.org
Understood. I will try to find the original scenes, export them again using a new version of OSGExp re-built against OSG 3.4.0 and see what happens.

Thanks.
Alessandro

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64662#64662
Reply all
Reply to author
Forward
0 new messages