Slow Animation

BlitzMax Modules Forums/MiniB3D/Slow Animation

No, not all vertices needs to be effected, but each anim_surf is just a representation of the original vertices transformed by the bones. So it is just normal that the anim_surf contains the same amount as the orifinal surface. I haven't looked much into the animation (bone animation) yet, but as far as I understand this works like this:

Each vertex can have up to 4 bones effecting it.
Now simon goes through all vertices.
---> Checking if Bone 1 is effecting the vertex
---> if yes check applie changes and check bone 2,3 and 4
---> proceed with next vertex.

I think there are at least two ways to optimize it.
The way commonly used nowadays : update the bones via Shaders.
Other approach: Precreate the main frames (1,2,3,..) and save them like its done with md2 or md3. You later just need to interpolate between eg frame 1 and 2.
The last is not complicated but will just destroy the idea behind boned animation.


Maybe there are other ways to speed things up. Maybe you're able to send me and/or simonh the model for testing (handling the model with respect of course).