3danim

I've got the exporter ready for blender. I even created a small demo of how to load the model and render it. Pretty simple and easy to follow code.. in plain simple c. Python would have been better i guess but wanted to stick with c, c++.. Ill' probably create a library for the helper functions that load and draw the models but for now its' just one demo.

Assuming we are dealing with triangle mesh,

So here goes.. the format is as follows

#verts #faces #anims

indx1 indx2 indx3

u1, v1

u2, v2

u3, v3

...

...

%s anim_name #keyframes

#frame

v[0] v[1] v[2]

... .

..

..

I know this looks confusing because it is not explained very well... so im' attaching the blender script and the demo which loads the format.

3danim.tar.gz is the demo for loading the files.

flight.blend is a sample model with animations.

fligth.txt is the ascii model exported using newformat.py as script in blender.

You can run the script as follows:

blender flight.blend -P newformat.py > flight.txt

Note you have to remove the first two lines in the flight.txt because it contains the output generated by blender :) sry.. i was too lazy to implement the file writing. Will update that in next version.