I have a question about the procedural Mesh Creation.
I can easily import a Cube from Blender and transform it to a procedural mesh.
The Problem that I have is about the UVs. According to this Post, the Vertices array must match the vertex data, meaning one UV value for each vertex.
I don’t understand two things here:
-
How can more complicated UVs be created if that statements correct?
Lets say with vertices and coordinates like this:v -22.510305 -21.476305 23.214086
v 22.510305 -21.476305 23.214086
v -22.510305 23.544305 23.214086
v 22.510305 23.544305 23.214086
v -22.510305 23.544305 -21.806524
v 22.510305 23.544305 -21.806524
v -22.510305 -21.476305 -21.806524
v 22.510305 -21.476305 -21.806524vt 0.001891 0.668525
vt 0.331370 0.668525
vt 0.001891 0.998004
vt 0.331370 0.998004
vt 0.338706 0.668529
vt 0.668185 0.668529
vt 0.338706 0.998008
vt 0.668185 0.998008
vt 0.338706 0.001992
vt 0.668185 0.001992
vt 0.338706 0.331471
vt 0.668185 0.331471
vt 0.282362 0.335259
vt 0.611841 0.335259
vt 0.282362 0.664738
vt 0.611841 0.664738
vt 0.001891 0.001992
vt 0.331370 0.001992
vt 0.001891 0.331471
vt 0.331370 0.331471
vt 0.617664 0.335261
vt 0.947143 0.335261
vt 0.617664 0.664740
vt 0.947143 0.664740 -
How can I keep the material clean for different shapes of the procedural mesh. Lets say if I move one vertex?
How can I avoid distortion?
Thank you.