March 01, 2021, 04:40:49 AM

Author Topic: example to animate a rigged skinned mesh with specific frames (without animate()  (Read 1205 times)

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1152

I repost this here because this is very useful and there are not any good example about this (that i am aware of) :

This is to animate a rigged skinned mesh by setting the specific frame of the animation (between startframe and endframe), instead of using the animate() function.

The advantages are :
->you can load the same rigged skinned mesh, several times, so that it will have its own surface(s), and you don't need to extract all animations for each loaded mesh ... (useful for lighting shading with vertices colors)
->you can set the current anim frame of each mesh with an offset so that they will all animate differently (even if they are animating with the same animation)
->you can start / stop an animation exactly when you want, and start another, according to the "actionstate" of the entity
->you don't need to update the animated surfaces which are not in view and not visible...
->this simplifies the code because there are less things to check...
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0


SimplePortal 2.3.6 © 2008-2014, SimplePortal