Page 1 of 1

Vertex Painting

PostPosted: Sun Mar 08, 2009 11:58 am
by Whilyam
Okay I seem to remember vertex painting as being pretty easy. You just paint the vertices the color you want them to be and export. Recently, however, the vertex painting hasn't been working. I paint it, it looks fine in Blender, it doesn't show up in Uru. What's wrong?

Re: Vertex Painting

PostPosted: Sun Mar 08, 2009 1:59 pm
by Christian Walther
Works for me, with current trunk (+ CW experimental, but there's no change related to vertex colors in there). There is a difference whether or not you have a second vertex color layer named "Alpha" (even if it's fully white, translating to opaque), as mentioned in this thread, have you tried both? If I understand my messy research notes from back then correctly, you wouldn't see anything of your vertex colors if you don't have an Alpha layer (the kLiteVtxNonPreshaded flag is not set) and your material ambient component is zero.

Re: Vertex Painting

PostPosted: Sun Mar 08, 2009 5:09 pm
by Whilyam
Ah, okay. That will probably work. Thanks!

Re: Vertex Painting

PostPosted: Sun Mar 08, 2009 5:23 pm
by GPNMilano
If you're using the latest version of the trunk, remember to name your vertex color "Color" (without quotations), and the Alpha layer "Alpha" (again no quotes). This is how the plugin manages alpha blending without the need of a gradient texture like Cyan used. It will only apply the necessary flags if it detects two vertex layers with those names

Re: Vertex Painting

PostPosted: Mon Mar 09, 2009 12:53 pm
by Christian Walther
Almost... the color layer needs to be named "Col" (or "col"), not "Color" - which also happens to be Blender's default name for the first layer.

Reading the source, it looks like importing objects will create a layer named "Color", which seems a bit inconsistent (though I've heard that import doesn't currently work anyway).

Re: Vertex Painting

PostPosted: Mon Mar 09, 2009 5:13 pm
by GPNMilano
Christian Walther wrote:Reading the source, it looks like importing objects will create a layer named "Color", which seems a bit inconsistent (though I've heard that import doesn't currently work anyway).


Which is why there is currently a separate source that does import.