投稿

ラベル(fbx)が付いた投稿を表示しています

Blender 2.77 Add-ons fbx-exporter with libgdx

イメージ
I tested fbx-export addon of blender 2.77. I think It was fixed animation different length in NLA-Editor. The 2.76 exported fbx data has weird animation for libgdx.

Blender 2.74 FBX-exporter of coordinate system was fixed.

イメージ
The Blender2.74 is coming soon. Its Fbx-exporter was fixed which outputs wrong coordinate system. It is great news for game developer;-) e.g. -Z Forward and Y Up setting outputs wrong rotation value which is around Y axis. It was fixed.

Blender 2.71 And New Binary FBX Exporter

イメージ
Blender 2.71 がリリースされた。 ボクが注目するのは新しいNew Binary FBX Exporter。LibGDXとテストする予定でその結果はこの記事に追記する。 実はちょうど来週、BlenderからFBXをExportする予定だったのでタイミング良くテスト出来ることになる。 ここ1ヶ月ほどBlenderを触ることができなかったのでベータ版はテストできなかった。バグがないことを願う。 一番の注目点は、困っていたstatic objectの座標系がOpenGLやLibGDXに合わせた場合にデータ自身に反映されるか、だ。(2.71のDocumentには対応とある)  以前は変換が入っていただけのため静止MeshはBlenderの座標系で表示されてしまう不都合があったのだ。 アニメーション付きはアニメーションで変換されるので問題は発生しない。が、無駄処理なのはかわらない。 改良点は以下のサイトを参考に。 http://www.blender.org/features/2-71/ New Binary FBX Exporter http://code.blender.org/index.php/2014/06/supporting-game-developers-with-blender-2-71/ libgdx forumへの私の質問の書き込みthread (現在検証中のため返信していない) http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=15060 fbx-exporterのgithub https://github.com/mont29/blender-io-fbx 開発者 mont29氏のBlog http://mont29.wordpress.com/ バグレポート先 https://developer.blender.org/ 検証経過報告1: パッと試した結果は、あまり良くない。 いままで正しくコンバートされていたMeshもnode-rotationを入れる必要がないのにg3db/g3djに含まれてしまっている。  私の場合、Meshデータ自身をBulletやAIでも、使いたいため、rotatio...

Blender 3Dとcom.badlogic.gdx.utils.GdxRuntimeException: Mesh must be indexed and triangulated

libgdx 1.0.1を利用したプログラム本体実行時:三画ポリゴンがないとエラーが出力されるバグ com.badlogic.gdx.utils.GdxRuntimeException: Mesh must be indexed and triangulated Blenderでfbxを出力した際、libgdxを動かすと三画ポリゴンがひとつもないとエラーが出力される。これは未使用のマテリアルがあると起こる fbx-conv もしくはfbx export pluginのバグでg3djで以下のようになっていると発生する(Red line) 対策として、Blender側で未使用のマテリアルを消す必要がある。削除するときはf3djファイルの下部にポリゴンとマテリアルの対応部分があるのでそれを参考にすること。 e.g. $ fbx-conv -f -o g3dj test.fbx $ cat test.g3dj ... { "id": "shape1_part9", "type": "TRIANGLES", "indices": [] }, { "id": "shape1_part10", "type": "TRIANGLES", "indices": [ 59,  60,  41,  60,  42,  41] }   ... こまったことに、fbx-conv側でWARNINGなどのエラーメッセージが一切表示されないことである。また、3Dの開発者はMayaでテストしているのでBlender3Dの対応が遅れ気味である。 Environments: libgdx 1.0.1 fbx-conv version FBX to G3Dx converter, version 0.01.0000 x64 (pre-release) Bender 3D Ver2.7a Ubuntu14.04LTS ...

Blender 2.69 imports fbx.

イメージ
Good news for game developers! いままで Blender 3D で不便だったfbxがimport可能となった(exportのみ可能だった)。fbxはそもそもAutodeskの汎用3Dデータフォーマットで、アニメーションに強いのだが、基本的にproprietary(汎用フォーマットでproprietaryとは違和感を感じる)。 Autodeskが提供する無償のsdk (c++, python対応)を利用するしかなかった。素晴らしいことに blender addonの開発者がその壁を突破 したようだ。 まだ、初期のバージョンなので不都合があるとは思うが(完璧にするのは永遠無理だろう)、import出来るようになればコミニティによって、ブラッシュアップされると思われる。ボクも協力したい。

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...

Visual Studio 2012 expressとfbx-conv

fbx-conv をコンパイルしようとしたら、slnファイルしか存在しないため、Windows7で再起動。 その後、VisualStdio2008で開こうとしたら、 2010でなければならないとのこと、しかたがないのでMSからVisual VisualStudo 2012expressをDLしインストールした。人生のなかで一番開発でつかっているのはVisual Studioなのだが、この2年間はほとんど使わず、もっぱらeclipse(Or KDevelop を試している)のため、少々使いにくく感じた。 Linuxのinstall速度の素早さに慣れていると、相変わらずのインストーラの遅さはどうにかならないものかと思う。しかも、やっとインストールが終わったと思ったら、次はUpdateしかも、それをやっている間、VSは使えない。。。 ご存知のようにUbuntu(Linux)はアップデート中でもOSをほぼ普通に使うことができる。 でinstall&Update後、プロジェクト(sln)をロードしてF7を押してコンパイルしたらLinkerで以下のエラーが発生。 Error 43 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in FbxConverter.obj C:\cygwin\home\myname\develop\fbx-conv\fbxsdk-2013.3-mdd.lib(fbxdebug.obj) fbx-conv 結局、VS2012ではフォーマットがかわり、既存のライブラリとリンクできないらしい。ということで、 VS2010express を探しだして、再びInstall&Update。。。 そしてIncremental LinkをOFFしてコンパイル。 終わり。 MSの製品と付き合うとあっという間に時間が過ぎてしまうと感じるのはボクだけだろうか;-)