[osg-users] osg exporter, blender problems

168 views
Skip to first unread message

Dmitry K.

unread,
Oct 21, 2012, 2:38:22 PM10/21/12
to osg-...@lists.openscenegraph.org
Hi,

I have finally completed simple geometry and texture tutorial and now I try to load complex geometry like character. Everything works OK with .obj file but it is loaded extremely slow. But I have another question.

I've tried both plugins by Cedric Pinson and from Blender Projects Page (http://projects.blender.org/frs/?group_id=19&release_id=335#osgexport-2-42-title-content).
In Blender 2.63 I go to the preferences window and choose addons tab, then click install addon and choose .py file. Then I look through the filter and exporters/importers section and can't find it. I tried to copy the file to scripts/addons folder of Blender but it doesn't appear. There were also such problems with OGRE exporter.
What is wrong?

Thank you!

Cheers,
Dmitry

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





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

Peter Amstutz

unread,
Oct 22, 2012, 8:50:45 AM10/22/12
to osg-...@lists.openscenegraph.org
Hi Dmitry,

You want to download:

https://github.com/cedricpinson/osgexport/blob/master/blender-2.5/build/osgexport-0.13.0.zip

And use "install addon" on the .zip file. You will also need to enable
it after you install it.

By the way, I have a fork with some additional features related to
armatures and animation, but you'll have to copy the scripts into your
blender scripts folder yourself:

https://github.com/tetron/osgexport
--
Peter Amstutz
Senior Software Engineer
Technology Solutions Experts
Natick, MA
02131

Dmitry K.

unread,
Oct 23, 2012, 4:40:50 PM10/23/12
to osg-...@lists.openscenegraph.org
Hi, Peter


> And use "install addon" on the .zip file. You will also need to enable
> it after you install it.
>


It works! I'm very happy.

Thank you!

Cheers,
Dmitry

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

Dmitry K.

unread,
Oct 24, 2012, 5:29:50 PM10/24/12
to osg-...@lists.openscenegraph.org
Hi,

I have encountered error using osg exporter by Cedric Pinson. There are two models in attachments: first is .obj model (loaded very good), second is .osgt model.

Did anybody have such problems?
Can anyone advice a file format that is supported by OpenSceneGraph 3.0.1 to play with animations and physics? .obj file is loaded slow.

Blender version is 2.63.
Exporter version is 0.13.
OpenSceneGraph version is 3.0.1 on Windows 7 Starter.


Thank you!

Cheers,
Dmitry

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



osg_woman_d_osgt.png
osg_woman_d_obj.png

Dmitry K.

unread,
Oct 27, 2012, 4:09:34 PM10/27/12
to osg-...@lists.openscenegraph.org
COLLADA importer crashed.
3ds importer worked good and fast but the .3ds model is not so good looking as .obj model.
I haven't yet tested OpenFlight importer.

I'm a bit disapointed. Why is it so hard to make good and really fast importer that works for the engine?

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

Jan Ciger

unread,
Oct 31, 2012, 10:27:24 AM10/31/12
to osg-...@lists.openscenegraph.org
Hello,


On Sat, Oct 27, 2012 at 10:09 PM, Dmitry K. <zzf...@hotbox.ru> wrote:
COLLADA importer crashed.
3ds importer worked good and fast but the .3ds model is not so good looking as .obj model.
I haven't yet tested OpenFlight importer.

I'm a bit disapointed. Why is it so hard to make good and really fast importer that works for the engine?

Importers are tricky business, because e.g. while Collada is a "standard", there are many incompatible files produced by the authoring tools. Also most importers will load only mesh and texture data, any physics, animation or other data will likely be missed (with the exception of few loaders). OSG isn't a full-blown game engine but a scenegraph only, so it doesn't really have a complete artwork production pipeline - you need to build your own.

Your best bet is to use osgconv, load the file as e.g. .obj if it works for you and have osgconv save it as .ive file. Those are binary and load fast and can include textures as well. However they are not guaranteed to be compatible between OSG versions, so you may have to re-generate them in the future if you upgrade OSG. Alternatively, you can save the scenegraph from your application directly using the osgDB::writeNodeFile() functions into an .ive - that is basically what osgconv does.

I didn't have much luck with newer .osgt, .osgx and .osgb formats - the serializers were regularly missing data or just plain crashing outright. Good old .ive and .osg formats are the most reliable.

Regards,

Jan
Reply all
Reply to author
Forward
0 new messages