Hello, this is my first post. I’m a newbie at Unity and so far I’m very impressed with what I see (I use the Unity 4 Beta).
I have been able to import my animated character from Maya 2012 without problem (using the fbx exporter version 2011), but I met a strange issue: the vertex color information on my meshes is not displayed (I use the Bumped Specular shader, but I tried pretty much all the available shaders and the problem is still there).
Now I know that Unity sees the vertex color data, since in the preview window it says “uv, color, skin”. And the diffuse and normal maps are showing just fine. But again the vertex color are nowhere to be seen.
Now I know this is an ultra basic newbie thing, but could anyone please help me…?
[B__]Update:__[/B] This time I’ve tried with a simple cube, added a color set (tried with RGB and RGBA), painted a different color on each corner, exported and still no vertex color. Please don’t tell me Unity doesn’t support vertex color…
Oh my. How strange. But thank you very much guys, that works now!
However this is an extremely basic feature anyone is expecting out of the box and I’m frankly very surprised it isn’t included in the standard shaders. I can’t quite imagine why…
Every feature that is “supported” by a shader has a fixed cost, whether you use it or not. Most people use textures rather than vertex colours, so there would be a lot of wasted GPU time around the world if every shader was using undefined vertex colours to no effect.
Yes, you are totally right. But why devs cant just include both versions : with vertex colors and no vertex colors? If you look at shader that i post you ll see that it is just standart blinn shader with 2 little edits. But it might be a problem for non-techy or newtounity people.
There are all sorts of modifications you could make to the standard shaders with a couple edits. At some point UT have to assess what most people will use, and then just do their best to make sure that what everyone else wants is possible.
Thanks for you reply, Daniel. I understand what you’re saying, but as Yursiv pointed out the best thing to do would be to at least include those shaders. Again it might be obvious for a Unity veteran, but to a beginner (with a lot of experience with other engines) it’s a little bit like you’ve got a new car with four doors but the doors in the back won’t open. Because some people don’t need them to open (?!). Honestly it feels almost like a mistake that at least one shader with vertex coloring isn’t included in the standard release.
And it’s all the more puzzling because to my beginner’s eyes all of Unity seems amazingly straightforward and well thought-out. I love it!