[osg-users] [osgPlugins] Importing from OpenCascade

76 views
Skip to first unread message

Ender EREL

unread,
Jan 7, 2010, 8:17:38 AM1/7/10
to osg-...@lists.openscenegraph.org
Hello everyone,

I just took over a project that uses OpenCascade from a colleague who is now doing his military service. I now want to import the models created using this tool into OSG.

By default OpenCascade supports exporting to IGES, STEP & BREP formats. I have been searching the web for a format that both OCC & OSG support or a converter to put in between these two libraries, but i haven't been able to find anything. If i can't find anything, i will have to manually write an .osg exporter which is something i am trying to avoid.

Has anyone ever used/wrote/found something like that? Any help would be appreciated.

Best regards,
Ender

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

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

David Spilling

unread,
Jan 13, 2010, 9:20:52 AM1/13/10
to osg-...@lists.openscenegraph.org
Dear Ender,

I personally haven't come across anything that imports IGES or STEP and exports .osg directly so I think you will need to go into OSG via an intermediate file format, e.g. 3DS, DirectX, Wavefront OBJ etc.  In house we use Okino Polytrans, or Solidworks (neither of which is free) but there are plenty of other tools around that will convert STEP/IGES to something like 3DS, which OSG will import and convert.

I personally like going via OBJ as it's an ascii format that is editable by hand (just) in case things go a bit awry.

Depending on the models, you may get slightly different results going different routes. My experience of going via 3DS, for example, always ends up with slightly strangely flipped normals.

Hope that helps,

David

Ender EREL

unread,
Jan 13, 2010, 12:38:16 PM1/13/10
to osg-...@lists.openscenegraph.org
Hi,

Thanks for your suggestion but we are trying to avoid any intermediate tools, at least any non-command-line-accepting ones.

We decided exporting to VRML from OCC and using VRML plugin for OSG. So far we are having trouble with textures but hopefully we will resolve this issue.

In case we can't solve this issue, any suggestion is appreciated :).

Thank you!

Best regards,
Ender

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=22566#22566

Reply all
Reply to author
Forward
0 new messages