PDA

View Full Version : FBX models in Delphi



gerdich
03-08-2018, 04:29 PM
Is there any toolset that allows me to represent FBX models in Delphi with their actions?

JernejL
09-08-2018, 05:35 AM
I'm very interested in this aswell, especially the animations, then i can make use of entire mixamo library for games ( https://www.mixamo.com )

I think castle doesn't support fbx either yet.

I know this exists, and it might serve some purpose for you: https://github.com/libgdx/fbx-conv

three.js can also load fbx including animations, maybe it can serve to you as a converter too?

JernejL
09-08-2018, 05:59 AM
This exists, based on openfbx dll:
https://github.com/xtreme3d/xtreme3d/blob/b3c4d8286bd43733264c05765913adec7bcde0fc/source/glscene/X3DAddons/OpenFBX.pas

Probably uses https://github.com/xtreme3d/openfbx-dll which means it doesn't seem to support any anymations, which is a real shame.

The dll is essentially https://github.com/nem0/OpenFBX which does support animations (but the dll doesn't export)

JernejL
16-08-2018, 06:40 AM
I found some useful resources for you regarding fbx and pascal:

Autodesk converter:
https://www.autodesk.com/developer-network/platform-technologies/fbx-converter-archives - free converter, it can convert fbx to collada (dae)

assimp (collada: animations yes, fbx: animations yes (with some limitations regarding file version, if fails, try autodesk converter to change version) )
https://github.com/assimp/assimp/blob/master/port/AssimpPascal/Readme.md ( a 2012 version but has 2016 updates, no clear information how to build a dll / so library, no examples )
https://github.com/assimp/assimp/wiki/The-asset-knowledge-base
has a model viewer: http://cms.assimp.org/index.php/viewer - it can help see if your files will work with your project

BeRo
29-08-2018, 07:23 AM
I have an almost finished Pascal-native FBX loader, but I won't release it simply because I think FBX has to die. The whole FBX file format is just crappy and incompatible to itself to other older file format versions, i.e. FBX != FBX, respectively there are many different incompatible FBX versions, but my FBX Loader can load them all, but as I said, I will not release it. Sorry :) At least it cost about one whole month of my life.

de_jean_7777
29-08-2018, 03:09 PM
I have an almost finished Pascal-native FBX loader, but I won't release it simply because I think FBX has to die. The whole FBX file format is just crappy and incompatible to itself to other older file format versions, i.e. FBX != FBX, respectively there are many different incompatible FBX versions, but my FBX Loader can load them all, but as I said, I will not release it. Sorry :) At least it cost about one whole month of my life.

Wow. I always had a suspicion it was like that due to how complicated their SDK is, but now I know for sure. Still, a shame to waste that much time, but you know for the best. Think I'll just avoid fbx for the most part until I get more free time on my hands.

BeRo
29-08-2018, 06:32 PM
Wow. I always had a suspicion it was like that due to how complicated their SDK is, but now I know for sure. Still, a shame to waste that much time, but you know for the best. Think I'll just avoid fbx for the most part until I get more free time on my hands.

I have published it now after all, but with a license that prohibits commercial use and so on, so that really nobody wants to use it and at the same time so that so one can see still how shitty, overdesigned, complex and contaminated with old waste the FBX file format is: https://rootserver.rosseaux.net/stuff/pasfbxloader/PasFBXLoader.pas

de_jean_7777
29-08-2018, 08:47 PM
I have published it now after all, but with a license that prohibits commercial use and so on, so that really nobody wants to use it and at the same time so that so one can see still how shitty, overdesigned, complex and contaminated with old waste the FBX file format is: https://rootserver.rosseaux.net/stuff/pasfbxloader/PasFBXLoader.pas

Too bad the work we do at my company, and the tools our modelers/animators do usually output FBX. Don't think it'll die out soon, as a lot of major companies/engines/tools support it.

JernejL
30-08-2018, 08:05 AM
I have to agree that FBX should die asap, there are command line converters from fbx to collada and gltf that you can use, also mixamo can now export collada files aswell :)