Vertex Painting

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Vertex Painting

Postby Whilyam » Sun Mar 08, 2009 11:58 am

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?
User avatar
Whilyam
 
Posts: 1023
Joined: Sat Sep 29, 2007 5:55 pm

Re: Vertex Painting

Postby Christian Walther » Sun Mar 08, 2009 1:59 pm

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.
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Vertex Painting

Postby Whilyam » Sun Mar 08, 2009 5:09 pm

Ah, okay. That will probably work. Thanks!
User avatar
Whilyam
 
Posts: 1023
Joined: Sat Sep 29, 2007 5:55 pm

Re: Vertex Painting

Postby GPNMilano » Sun Mar 08, 2009 5:23 pm

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
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: Vertex Painting

Postby Christian Walther » Mon Mar 09, 2009 12:53 pm

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).
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Vertex Painting

Postby GPNMilano » Mon Mar 09, 2009 5:13 pm

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.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am


Return to Building

Who is online

Users browsing this forum: No registered users and 10 guests

cron