The ultimate hook

xiaoxiao2021-03-06  19

After watching the effect of ink rendering, the heart is very excited. I think a little. I found the king of the truth. I have to use the map to create a series of Mesh, and then mapped in Mesh to achieve each Effects, including halo, as well as ink effects, more capable of realizing the animation of the hook.

The first thing to do is to find the edges in the model, the method is first to generate a side list, save two vertices connected to each side when loading the model, and the numbers of each side adjacent to each side. Then each frame is spread, find out the side of the two faces of the side and the product of the camera lens angle (greater than 90 degrees positive, less than 90 degrees to be negative), after finding these edges, then Copy each of the vertices of each side, displace a certain distance into the normal direction, get a vertex, then generate the vertex index of the MESH.

Direct painting Mesh, for this method, there is currently not perfect that generates map UV issues on Mesh, currently being considered. . Border effects are as follows:

转载请注明原文地址:https://www.9cbs.com/read-44521.html

New Post(0)