Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

mesh triangles generation from an array of vertices

Discussion in 'General Graphics' started by kaiyum, Mar 8, 2015.

  1. kaiyum

    kaiyum

    Joined:
    Nov 25, 2012
    Posts:
    686
    Hi,
    I am trying to make a mesh procedurally for rendering trail. The idea is, artist will vertex paint some area of a sword mesh, in red. A script will get those vertex with red color. Then I will model the trail in runtime by script, based on the set of red painted vertices. Now I must submit "mesh.triangles" data from the red painted vertices. The point is: how do I form traingles or triangle strips from a set of vertices?

    Unity gurus, shed some light on this matter.
     
  2. kaiyum

    kaiyum

    Joined:
    Nov 25, 2012
    Posts:
    686
    No one?
    Probably @Eric5h5 can say something about this. :rolleyes: