add animation to custom mesh

Advanced game related topics
maslobojik
User
User
Posts: 36
Joined: Thu Jul 11, 2013 11:17 pm

add animation to custom mesh

Post by maslobojik »

How add animation to custom mesh (CreateMesh()) ?
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: add animation to custom mesh

Post by Samuel »

Purebasic can't add skeletons to custom meshes, yet.
In order to add a skeleton you need to create a mesh file and then import it into a modeling software. Then you can add the skeleton and export it back to the OGRE format.

Instead of skeletal animation you can also use vertex animations which can be done in Purebasic.
For a vertex animation example take a look at the MeshManualFlag.pb in the 3D demos folder.

Depending on what your animating vertex animations may be too slow. For example it's not the best method for animating
20 complex meshes at the same time, but for smaller tasks it will work fine.
jhon20
New User
New User
Posts: 1
Joined: Sat Sep 06, 2014 8:24 am

Re: add animation to custom mesh

Post by jhon20 »

Instead of skeletal animation you can also use vertex animations which can be done in Purebasic.
For a vertex animation example take a look at the MeshManualFlag.pb in the 3D demos folder.
Post Reply