Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

ofxFBX

FBX version 7.4

FBX version 7.4

FBX version 7.4

Updated to maintain the hierarchy of the fbx file. Added getter / search functions. Not compatible with older versions of the addon. Currently supporting OSX, iOS, Windows Visual Studio and Linux. Tested with OF >= v0.10. Please check older releases for compatibility with older versions of OF. Linux support thanks to @themancalledjakob

Features include:

  • Multiple Animations with individual control
  • External Bone Control with Animations
  • Linear Bone Animation Blending between two animations
  • Define animations
  • Textures
  • Materials
  • Cached meshes and scenes for faster rendering
  • Individual mesh manipulation
  • Enable and disable rendering of certain assets in the scene
  • Caching of mesh animations
  • Getter / search functions
  • Maintains fbx hierarchy
  • Scene caching for faster loading of the same scene multiple times
  • Conversion to different units

If you have a fbx with a single animation that needs to be broken up into separate animations, you can try the following: mScene.load( "Alligator.FBX", tsettings );

mScene.clearAnimations();

mScene.addAnimation("SwimBite", 81, 100 );

mScene.addAnimation("Swim", 61, 80 );

Windows Visual Studio 2017 Notes

To compile in Debug mode, unzip the lib in ofxFBX/libs/fbxsdk_2016.1/lib/vs/x64/Debug

iOS Notes

The example projects include a ofApp.cpp and main.cpp. The project generator will be looking for ofApp.mm and main.mm. Please add the .cpp versions. You will need to tell the compiler to treat them as Objective-C++. Click on ofApp.cpp and then select Objective-C++ from the drop down menu. Do the same for main.cpp. (see below image.)

ObjectiveC++

Linux Notes

To compile in Debug mode run linux install script with debug: ofxFBX/scripts/ci/linux/install.sh debug you'll be asked to accept EULA during install.

To switch back to release, run same script without debug

Blender workflow.

Using Blender 2.63, the FBX exporter is not fully featured and there are known bugs that may be fixed in the future. Apply any transformations before exporting using ctrl + A. http://wiki.blender.org/index.php/User:Fade/Doc:2.6/Manual/3D_interaction/Transform_Control/Reset_Object_Transformations

When exporting, be sure to set the Forward to Y Forward and the Up to Z Up.

FBX version 7.4

FBX version 6.1