Save B3D

Blitz3D Forums/Blitz3D Programming/Save B3D

Mathieu A(Posted 2004) [#1]
Hi!

I 'd like a function which save B3D mesh and animated mesh with multiple texture blend. I know that there are a such function in code archive but it isn't complete.


.rIKmAN.(Posted 2004) [#2]
Download it and complete it?


Ricky Smith(Posted 2004) [#3]
Have a look at Peter Sheutz' B3d2Xml code in the archives. This lets you see the a .b3d file in Xml. You can then see how the animation data is structured so exporting is not a problem. The difficult part is writing the animation key values. You don't have access to these values at run time so you would need to devise a system whereby you loop through your animation using SetAnimTime(mesh,frame)and convert the pitch,yaw and roll values of each joint at each frame to a quaternion value.Blitz animation keys are quaternions.
A warning - be prepared to lose much hair when dealing with quats !


Mathieu A(Posted 2004) [#4]
Thanks! I'd like to complete it but I've not enough to do it