export .3mx to .obj #1184
-
I've been using the following plugin to load Bentley files .3mx into openSceneGraph: The .3mx file format has a LOD structure, consisting of several surface models displayed according to the camera position and zoom. Thanks to the plugin, I display my files correctly using osgviewer. However, I am struggling to convert those models to .obj format using osgconv. Are there any options to set up as it is a LOD structure? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
.obj format doesn't have LOD support so it;'s impossible to write a scene graph containing LOD's to .obj. Rather than try and chase the impossible select an exchange format that supports LODs. |
Beta Was this translation helpful? Give feedback.
-
OpenFlight (.flt), Collada (.dae) or Autodesk FBX (.fbx) support LODs and can be written by their OSG plugins. But if I understand correctly, this format is used for storing very high-res models in a quad-tree och octree LOD structure? If so, a file with all levels might be impossibly large to handle for another tool, without the PagedLOD support in OSG. If you just want to save the highest levels you can maybe traverse down to those leaf nodes and save to separate .obj if you want. I'm not familiar with the format, but maybe the highest levels are already separate .3mx files on disk that you can convert? |
Beta Was this translation helpful? Give feedback.
-
I solved my problem by converting first to .osg for the desired LOD, then .osg to .obj : The material files produced contained links to .dds textures. I converted those textures to .jpg files, then changed the path into each .mtl files. |
Beta Was this translation helpful? Give feedback.
I solved my problem by converting first to .osg for the desired LOD, then .osg to .obj :
osgconv -O OutputTextureFiles -e 3mx intput_file.3mx output_file.osg
osgconv output_file.osg output_file.obj
The material files produced contained links to .dds textures. I converted those textures to .jpg files, then changed the path into each .mtl files.