Page 1 of 1

Manipulating Meshes dynamically

Posted: Mon Jul 08, 2013 10:38 am
by Impact
Is it possible to implement a way to dynamically manipulate a 3D Mesh? Let say a that a mesh in the shape of a car hits a pole and deforms?

Re: Manipulating Meshes dynamically

Posted: Mon Jul 08, 2013 11:55 am
by hybrid
If you want to manually (or programatically) deform a mesh by specifying new coords for each vertex, you can do that with static meshes (IMesh), example 23 or so will show how to. If you have an animated one, i.e. you have animation anyway, you have two options. Either use the animation directly (provide some frames which show the deformation and switch to that animation sequence after the crash) or manipulate the bones manually afterwards. There are no examples in the SDK, but the forum shoudl provide some guidance for this scenario.

Re: Manipulating Meshes dynamically

Posted: Mon Jul 08, 2013 3:00 pm
by Impact
Thanks for the respond, this helps me immensely.