Has anyone else out there ever used FBX files? I'm finding them a REAL pain in the arse. Whatever I try and do FBX just seems to get in the way. For example I am trying to simply process a file. Alas it seems you need to use the bloody FBX library to do things such as loading but, alas, loading is currently heavily abstracted away from the engine (So that I can change the loading scheme to work from whatever system i chose, a ZIP file for example). Is the only way round this problem to add my own reader into it that wraps my reader system?
So far im THOROUGHLY unimpressed with FBX ... IT seems an overly convulouted method of doing EVERYTHING include 99% of the stuff i couldn't give an arse about :(
Any thoughts? Any good examples of how to actually use FBX in a handy way from C++ and DirectX?
I'm beginning to feel i'd be better off writing my own exporter because, so far, collada AND FBX appear to be waaaay more trouble than they are worth :(
Using FBX files
Started by Goz, Aug 30 2008 03:18 PM
6 replies to this topic
#1
Posted 30 August 2008 - 03:18 PM
#2
Posted 05 September 2008 - 08:06 PM
the FBX SDK comes with code examples showing how to load FBX files and display the results using OpenGL. I used these examples to build my own parser which works fine.
I suggest you start with the ImportScene example. It has everything you'll need.
I suggest you start with the ImportScene example. It has everything you'll need.
C++, 3D OpenGL and Game Programming video tutorials:
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
#3
Posted 07 September 2008 - 06:47 AM
I recommend the middle ground between loading FBX in your engine and writing your own exporter: writing a post-processor that reads the exported FBX and writes an engine-ready file with only the stuff you want, in a format that is tight and fast to read.
#4
Posted 07 September 2008 - 10:42 AM
mmakrzem said:
the FBX SDK comes with code examples showing how to load FBX files and display the results using OpenGL. I used these examples to build my own parser which works fine.
I suggest you start with the ImportScene example. It has everything you'll need.
I suggest you start with the ImportScene example. It has everything you'll need.
Yeah great .. but it handles all the loading internally. Not much use if you want full control over what its doing.
#5
Posted 07 September 2008 - 10:42 AM
Jare said:
I recommend the middle ground between loading FBX in your engine and writing your own exporter: writing a post-processor that reads the exported FBX and writes an engine-ready file with only the stuff you want, in a format that is tight and fast to read.
TBH it took me 2 days to write an exporter for Maya ...
#6
Posted 07 September 2008 - 01:42 PM
Goz said:
Yeah great .. but it handles all the loading internally. Not much use if you want full control over what its doing.
As Jare suggested, what I did was used the SDK to load everything into memory. Then I extracted the bits and pieces that I wanted to use, and exported them into my own custom file format which is what my game engine uses. Now when I load any resources I don't have to use the SDK because everything is saved in my own format.
The only downfall is if I want to change something in the original format, I need to run it through my custom parser to make a new version of the file in my own format.
C++, 3D OpenGL and Game Programming video tutorials:
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
#7
Posted 08 September 2008 - 06:23 AM
mmakrzem said:
The only downfall is if I want to change something in the original format, I need to run it through my custom parser to make a new version of the file in my own format.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












