In Mojo3D we draw everything using scene.Render. It seems there are 2 ways to do frame animation. First way is using meshes and swaping it with a single model, like this:
Monkey
1
2
frame+=1
model.Mesh=walkMeshes[frame]
Second way is to use model making it visible or invisible. Something like this:
Monkey
1
2
3
4
walkModels[frame].Visible=False
frame+=1
walkModels[frame].Visible=True
So which is “correct” way to do this and if you know why, that will be even better?
The “AnimSprite” class does just that. You can load a sprite sheet and set the frame rate, specify which frames play in which order, etc. Sorry the example file is not helpful, I never updated it to demonstrate animated sprite frames… will try tomorrow night, if that interests you.
Ah, ok. In 3D, the most common is to create your animation within the 3D application you’re using and simply export it to a format that supports animation. Swapping the models is not a usual technique.