Libgdx/new3dapi and blender bone animation.



Update 22 May 22
new 3d api were merged to master.
Please see http://www.badlogicgames.com/wordpress/?p=3034

New New3dapi was pushed:-)  I was successful to run it. Thank to libgdx developer.

There is a fbx file outputted from blender(It has a material with no texture, a amature animation and no shape keys).
Blender 3d ver2.67:
Export fbx option (experiment):
Update: Forward -Z, Up Y


It was converted to g3dj by fbx-conv. I tried to play g3dj file by using the NewModelTest(Update:Changed to ModelTest.java) of new3dapi branch (f346efadccfde30327f352a2dee06e1519849906 ).
libgdx/new3dapi branch NewModelTest:

*Note*
It was not able to execute smoothly by un-intuitive fbx-conv operation and some bugs(?).

fbx-conv(WIN32 Ver0.1 There were some compile errors with include-path and namespace though.):
> fbx-conv -o G3DJ -f filename.fbx
You do not specify the -o option, then fbx file will be overwritten. Update:Fixed
Option -f means to flip the V texture coordinates. If you are using Blender, you must specify this option.
The Linux version was not able to be compiled ;-) (I use Ubuntu 13.4)  Update:Fixed

Probably, current open fbx-conv version is older than a developer's fbx-conv. It has not been merged to master.  'keyframe' was changed to 'keyframes' for exmaple. (Update: It was merged. 16 May '13 JST)

P.S.1
Unfortunately, Mult-part textures will crash...(Fixed. It works.  15 May '13 JST)
If you want to see the texture, you have to change to DEFFISE from the STANDARD Texture type manually. (Update: Fixed. It was merged. 16 May '13 JST)
P.S.2
If you wish to make a multi-animation, please see this link.

コメント

このブログの人気の投稿

日本でコンピュータサイエンスを学ぶ難しさ

How to preview nif file on the ubuntu.