Manipulating Meshes dynamically

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
Impact
Posts: 2
Joined: Mon Jul 08, 2013 10:30 am

Manipulating Meshes dynamically

Post 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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Manipulating Meshes dynamically

Post 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.
Impact
Posts: 2
Joined: Mon Jul 08, 2013 10:30 am

Re: Manipulating Meshes dynamically

Post by Impact »

Thanks for the respond, this helps me immensely.
Post Reply