Deformation Approach #1: Materials – Part 2

Now that the dynamic material is implemented I started working on the vertex operations. Now I am able to access all vertices of the mesh and also to get the nearest vertex to a certain position. In the video the nearest vertex to the player mesh is marked with a red debug point. I switched to wireframe mode to enhance the visibility of the point.

 

The next steps will be to define a simple deformation algorithm. After having implemented the algorithm, the texture will have to be coloured according to the calculated impact.

Part 3

Read more about the different deformation approaches here.

Leave a Reply

Your email address will not be published. Required fields are marked *