save animated .b3d from "AddAnimSeq"?
Blitz3D Forums/Blitz3D Beginners Area/save animated .b3d from "AddAnimSeq"?
| ||
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 :) |
| ||
You must write the filesave routine yourself .b3d file specifications are in "Specs and utils" |
| ||
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". |
| ||
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. |
| ||
How's about Mark Sibly writes one for us, and make it part of the Blitz command set???? |
| ||
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" |