- Home /
Vertex Color index problem
Hi,
I really don't know if it's the best place to put my problem, but I'll try. Not so far ago I'd discovered something called Mesh.colors, and I started messing up with it, everything went great up to time when unity's standard mesh plane was not enough for me(I needed mor vertices). So I opened up blender and make my high poly plane (128*128 vertices), and then I discovered that color vertices indexes aren't like before. Basiclly what I want is in image (white numbers are vertices indexes).
It's probably easy to achieve, but I don't know how.
Thanks for reading this, and sorry for my english.
Im looking forward for answers.
Answer by AlwaysSunny · Apr 27, 2015 at 03:35 AM
If all you need is a plane, you might consider creating the plane yourself via scripting by building a mesh from scratch using the Mesh class API. Then you will have explicit control over the indices, colors - everything!
There are plenty of examples out there on how to accomplish this. Here's the first one I found: http://answers.unity3d.com/questions/139808/creating-a-plane-mesh-directly-from-code.html
It may be that you can use Blender to create a mesh which has the specific vert indices you want, but I don't know how. It would probably involve building your plane by extruding a single vertex in a specific order, then creating faces to fill those grid cells. Programming a plane sounds much nicer to me, and is a great way to get familiar with the mesh class.
I thought about your idea, before I even wrote that question. It seems really nice, but I thought there is an easy way like, some kind of recalculate indices button in any software. I'll probably try your way, if there will be no more answers. Thank you very much for answer.