PDA

View Full Version : vertex color



phase
June 21st, 2007, 08:46 PM
Does halo 2 vista support vertex colors if so how would I go about setting it up¿

Chewy Gumball
June 21st, 2007, 09:39 PM
Support vertex colours? As in painting them in max and then getting them to show up ingame? I doubt it is supported. Why would you want to anyway?

jahrain
June 22nd, 2007, 09:26 AM
Vertex coloring is used on lightmapped geometry instances when they are set to have the per-vertex lighting flag.

phase
June 22nd, 2007, 11:42 AM
Support vertex colours? As in painting them in max and then getting them to show up ingame? I doubt it is supported. Why would you want to anyway?
I want to use Vertex colors (http://udn.epicgames.com/Two/VertexBlendingTutorial.html) to blend textures, iv only heard of it being used in the unreal engine, so am wondering if it works in halo 2 vista.

Chewy Gumball
June 22nd, 2007, 11:53 AM
I don't think that is supported, but you can just render to texture/bake a final texture. There might be a blend shader too, I haven't looked at whats available.

phase
June 22nd, 2007, 12:08 PM
I guess i'll have to blend textures the manual way.:maddowns:

Lightning
June 22nd, 2007, 12:16 PM
You can have a base bitmap with an alpha.

That alpha will determine where the primary and secondary detail maps are applied (See: Bloodgulch's ground). You simply have white on the alpha where you want one detail map applied, and the black will be the secondary. Anywhere in between will blend the two together.

http://xcustomedition.com/shaders/bloodground.shader

Here is my Bloodgulch ground shader, it uses stock Halo 1 bitmaps, so if you need them, you can extract them. Hope this helps.

phase
June 22nd, 2007, 12:22 PM
I already know about using alphas, I just like painting the vertex color in 3d.