[osg-users] [osgPlugins] using osgconv with fbx?

857 views
Skip to first unread message

Kevin Steele

unread,
Feb 15, 2017, 3:18:28 AM2/15/17
to osg-...@lists.openscenegraph.org
Hi,

I am trying to use osgconv to convert fbx to osg (on a Mac). I had downloaded and installed osg before and I was able to convert obj to osg. Then, I wanted to use fbx.

When I tried to convert fbx to osg, I got an error message that said:
Warning: Could not find plugin to read objects from file "creature.fbx"

I read online that we needed to download and install the FBX SDK which I believe I did do. However, I don't know what to do next to get osgconv to find and use the right fbx plugin. Any advice?

Thank you!

Cheers,
Kevin

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





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

Robert Osfield

unread,
Feb 15, 2017, 4:54:21 AM2/15/17
to OpenSceneGraph Users
Hi Kevin,

You will need to recompile the OSG again making sure that it picks up
on the FBX SDK you've installed.

Robert

Kevin Steele

unread,
Feb 15, 2017, 6:30:34 PM2/15/17
to osg-...@lists.openscenegraph.org
Hi,

You say to make sure that OSG picks up on the FBX SDK. How do I do that? I tried to recompile OSG, but it didn't seem to pick up the FBX SDK.

Thank you!

Cheers,
Kevin

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

Robert Osfield

unread,
Feb 16, 2017, 3:33:45 AM2/16/17
to OpenSceneGraph Users
On 15 February 2017 at 23:32, Kevin Steele <kwst...@optonline.net> wrote:
> You say to make sure that OSG picks up on the FBX SDK. How do I do that? I tried to recompile OSG, but it didn't seem to pick up the FBX SDK.

To configure the build you use:

ccmake .

Then scroll down to the entry for FBX.

Robert

Voerman, L.

unread,
Feb 16, 2017, 4:16:58 AM2/16/17
to OpenSceneGraph Users
Hi Kevin,
seems like the fbx plugin is not used very much on apple, and is a bit outdated.
I don't have an apple, but you can try to update "OpenSceneGraph\CMakeModules\FindFBX.cmake" with the attached version,
I added a search path for fbx 2017.1 sdk and the subdir for the clang compiler.


Laurens.


On Thu, Feb 16, 2017 at 9:33 AM, Robert Osfield <robert....@gmail.com> wrote:
On 15 February 2017 at 23:32, Kevin Steele <kwst...@optonline.net> wrote:
> You say to make sure that OSG picks up on the FBX SDK. How do I do that? I tried to recompile OSG, but it didn't seem to pick up the FBX SDK.

To configure the build you use:

     ccmake .

Then scroll down to the entry for FBX.

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

FindFBX.cmake

Kevin Steele

unread,
Feb 17, 2017, 2:41:23 PM2/17/17
to osg-...@lists.openscenegraph.org
Hi,
Thanks for the suggestions, but it is still not working.
I added the paths for FBX_INCLUDE_DIR, FBX_LIBRARY, and FBX_LIBRARY_DEBUG in CmakeCache.txt. Then, I recompiled OSG.

However, when I tried to convert from fbx to osg, I got this error message:

"osgconv dragon.fbx dragon6.osg
Warning: dynamic library '/usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so' exists, but an error occurred while trying to open it:
dlopen(/usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so, 9): Library not loaded: @executable_path/libfbxsdk.dylib
Referenced from: /usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so
Reason: image not found
Warning: Could not find plugin to read objects from file "dragon.fbx".
Error no data loaded"

Any idea how to fix that error?

Also, I can't see the attachment someone on this board tried to attach- there is a note that says: The Extension 'cmake' was deactivated by an board admin, therefore this Attachment is not displayed.
Thank you!

Cheers,
Kevin

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

Voerman, L.

unread,
Feb 20, 2017, 3:19:10 AM2/20/17
to OpenSceneGraph Users
Hi Kevin,
you solved the build problem, so never mind the cmake file.
the libsfxsdk.dylib needs to be in your library path, as it's needed to load osgdb_fbx.so 
A quick search suggests you could add "/Applications/Autodesk/FBX SDK/2017.1/lib/clang/release/libfbxsdk.dylib" to DYLD_LIBRARY_PATH or get the path into 
osgdb_fbx with the linker option "-install_name" .
Laurens.






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

Kevin Steele

unread,
Feb 21, 2017, 3:12:58 PM2/21/17
to osg-...@lists.openscenegraph.org
Hi, I tried that suggestion, but I still can't get osgconv to work with fbx.

I opened up the terminal and executed the command:

export DYLD_LIBRARY_PATH=/Applications/Autodesk/FBX\ SDK/2017.1/lib/clang/release/libfbxsdk.dylib

Then, I tried to use osgconv with an fbx file and I got the following error message:

osgconv animal.fbx animal.osg
Warning: dynamic library '/usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so' exists, but an error occurred while trying to open it:
dlopen(/usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so, 9): Library not loaded: @executable_path/libfbxsdk.dylib
Referenced from: /usr/local/lib/osgPlugins-3.4.0/osgdb_fbx.so
Reason: no suitable image found. Did find:
/Applications/Autodesk/FBX SDK/2017.1/lib/clang/release/libfbxsdk.dylib/libfbxsdk.dylib: stat() failed with errno=20
Warning: Could not find plugin to read objects from file "animal.fbx".
Error no data loaded.

Any other ideas?

Thanks,
Kevin

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

Voerman, L.

unread,
Feb 22, 2017, 4:20:30 AM2/22/17
to OpenSceneGraph Users
Hi Kevin,
sorry, the command should be
export DYLD_LIBRARY_PATH=/Applications/Autodesk/FBX\ SDK/2017.1/lib/clang/release/
(without the file name)
Laurens. 






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

Reply all
Reply to author
Forward
0 new messages