- Home /
The question is answered, right answer was accepted
Properly setting UV coordinates for a hexagon with seven vertices
Whenever I create a procedural hexagon using only six vertices, the UV's work perfectly fine. The six UV's can be added in line with the six vertices. However, I am trying to create a procedural hexagon using seven vertices. One is in the center, which means the entire hexagon is six equilateral triangles that use a seventh vertex in the center. However, I am having trouble applying a procedural texture to the hexagon. Because the center vertex repeats for each triangle, the vertex array has 15 elements. The UV array wants to match the vertex array in size, but it does not seem to work if I just repeat the center vertex multiple times into the UV array.
What am I missing about this approach? Is there possibly a different approach to solve the problem?
this page here might help you ... Unity Wiki Procedural Primitives
Thanks for reply. I figured it out last night. You beat me to closing the question :P It was not my UVs. I was doing the procedural texture incorrectly.
Follow this Question
Related Questions
Trouble with UV Mapping 1 Answer
UV values above 1.0 1 Answer
Assigning UVs to mesh 1 Answer