home‎ > ‎

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.

ċ
3danim.tar.gz
(4k)
vamsi krishna Veligatla,
Mar 28, 2010, 2:44 AM
ċ
3danim_export.py
(2k)
vamsi krishna Veligatla,
Mar 28, 2010, 2:46 AM
ċ
lowpoly.blend
(232k)
vamsi krishna Veligatla,
Dec 25, 2009, 11:40 PM
ċ
vamsi krishna Veligatla,
Dec 24, 2009, 3:35 AM
ċ
lowpoly.txt
(34k)
vamsi krishna Veligatla,
Dec 26, 2009, 10:57 PM
ċ
lowpoly.xcf
(514k)
vamsi krishna Veligatla,
Dec 25, 2009, 11:39 PM
ċ
vamsi krishna Veligatla,
Dec 25, 2009, 11:38 PM
ċ
sfmodel.blend
(173k)
vamsi krishna Veligatla,
Dec 24, 2009, 3:35 AM
ċ
updated.zip
(4k)
vamsi krishna Veligatla,
Apr 20, 2010, 3:50 AM
Comments