05-06-2024, 08:45 AM
(05-06-2024, 07:56 AM)johnno56 Wrote: Quick question(s): Can S3D handle animated models? If so, how is that done? Just curious...
It's just a quick answer(s)
click image to zoom in
Code:
model = S3D_LoadMesh("assets/funchum/funchum.obj", 3, -3, 3, false)
' Add two frames.
S3D_LoadMeshFrame(model, "assets/funchum/funchum_walk_1.obj", 3, -3, 3)
S3D_LoadMeshFrame(model, "assets/funchum/funchum_walk_2.obj", 3, -3, 3)
' Blend to frames of the mesh.
S3D_BlendMesh(model, anim.frame0, anim.frame1, anim.blend)
For further details, Marcus has better explanation regarding frame by frame animation for sure.