save animated .b3d from "AddAnimSeq"?

Blitz3D Forums/Blitz3D Beginners Area/save animated .b3d from "AddAnimSeq"?

Happy Sammy(Posted 2006) [#1]
Hi all,

From the help file of "AddAnimSeq", we could create animation on the fly.
How could we save the animation seq in .b3d format?

Thanks in advance.
Sammy
:)


Iamhere(Posted 2006) [#2]
You must write the filesave routine yourself
.b3d file specifications are in "Specs and utils"


Ricky Smith(Posted 2006) [#3]
Unfortunately when you do the AddAnimSeq() after using SetKey() the information about this sequence and the animation keys are not available to the programmer.
Blitz3d rotation keys are quaternions. You can try converting the euler angles to quaternions and using these as the animation keys but in my experience - it doesn't work - given that euler angles suffer from gimbal lock.
The only way to do this properly is to use quaternion values throughout and write your own animation "engine".


Iamhere(Posted 2006) [#4]
I go an other way,
I am loading the anim and make of each frame a sequence
then I played it in a loop and get the w x y r quaternions
from memory.
A quaternion<>euler function would be more elegant
but I have not found a working one.


Sir Gak(Posted 2006) [#5]
How's about Mark Sibly writes one for us, and make it part of the Blitz command set????


Iamhere(Posted 2006) [#6]
Yes this would be a good idea and not much work for him.
It must not be part of the command set, it could be a part of the "code archives"