I’d like to create an effect similar to 2 death animations that exist in Crash Bandicoot 3.

In one of them, Crash is disintegrated: all the triangle faces get separated and fly apart. A similar triangle separation is seen when he dies from fire, the triangles fall separately.

The second is a simple separation of the legs and torso. One enemy that exists in the 1st stage can cut Crash in half, which will cause the torso to stay in place while the legs walk away.

  • I Cast FistOP
    link
    fedilink
    14 months ago

    Gamma linked that shader as well, but that doesn’t look like the proper tool/shader for exploding/disintegrating the faces

    From the looks of it, I’ll probably need to copy most of the mesh data into an ArrayMesh and do magic from there

    • @[email protected]
      link
      fedilink
      3
      edit-2
      4 months ago

      Usually modern shader displacement attempt to create a continuous mesh, to not have to deal with backfaces or unnatural vertex breaks, but this technique can also be used (funny enough much simpler) to break meshes apart.

      Linking a screenshot here I made for another comment in this post, this test project I used the shader code in the vertex shader

      VERTEX += NORMAL * (sin(TIME)+1.0) *0.1;
      

      (Should be noted the mesh breaks apart into squares not triangles because the normal of the two triangles in a square is equal)