Difference between revisions of "Vertex color"

From polycount
Jump to: navigation, search
(WikiName)
(categories, table colors, rewrite, links)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<!-- ## page was renamed from Vertex Color -->
 
<!-- ## page was renamed from Vertex Color -->
* [[Polycount|Main Page]] > [[Category:Texturing]] > [[Vertex Color]]
 
 
 
= Vertex Color =
 
= Vertex Color =
Vertex Color Techniques
+
Each vertex in a mesh can optionally store a RGBA color value, called vertex color. These can be used for a variety of interesting effects and shader inputs.
  
{| border="1" cellpadding="2" cellspacing="0"
+
Vertices can also store [[Vertex Alpha|vertex alpha]], which can be used for [[Multitexture|multitexturing]], [[Category:TransparencyMap|transparency]], or [[Ambient Occlusion Map|ambient occlusion]].
[[Foliage Vertex Color]]  
+
|-
+
| [[Ambient-Occlusion Vertex Color]]
+
|-
+
|  [[Removing Vertex Colors]]  
+
|}
+
  
Definition:
+
== Usage ==
Each vertex in a mesh can optionally store an RGBA color value, called vertex color. These can be used for a variety of interesting and novel effects and/or shader inputs.
+
 
+
Common Usage:
+
 
Vertex color is typically multiplied against the Diffuse Color, colorizing/darkening the color map.  
 
Vertex color is typically multiplied against the Diffuse Color, colorizing/darkening the color map.  
  
Vertex color can be used for other purposes, like controlling blends between different texture sets, providing per-vertex sound effects in response to collisions, etc. When used for non-color effects, typically each color channel is treated as a separate monochrome set of values, so RGB vertex color can control three different per-vertex effects.
+
Vertex color can also be used for controlling blends between different texture sets, providing per-vertex sound effects in response to collisions, etc.  
  
Depending on the game engine and mesh format, a vertex can be assigned multiple vertex colors. This duplicates the vertex, once for each color. This allows the color to change suddenly from one triangle to the next, creating a hard color edge.  
+
When used for non-color effects, typically each color channel is treated as a separate monochrome set of values, so RGB vertex color can control three different per-vertex effects.
  
Vertices can also store [[Vertex Alpha]], typically for [[Multitexture|multitexturing]], [[Opacity Map|transparency]], or Ambient Occlusion.
+
== Multiple Colors per Vertex ==
 +
A single vertex can be assigned multiple vertex colors, depending on the game engine and mesh format. This duplicates the vertex when it is loaded into the game, once for each color, slightly increasing the memory cost.
 +
 
 +
When vertices contain multiple colors, the color will change suddenly from one triangle to the next, creating a hard color edge.
 +
 
 +
== Tutorials ==
 +
{| border="1" cellpadding="2" cellspacing="0"
 +
|<#000000>| [[Foliage Vertex Color]]  
 +
|-
 +
|<#000000>| [[Ambient-Occlusion Vertex Color]]  
 +
|-
 +
|<#000000>| [[Removing Vertex Colors]]  
 +
|}
  
<<BR>>
+
----
* [[Polycount|Main Page]] > [[Category:Texturing]] > [[Vertex Color]]
+
[[Category:Texturing]] [[Category:ColorMap]]

Revision as of 18:19, 5 July 2010

Vertex Color

Each vertex in a mesh can optionally store a RGBA color value, called vertex color. These can be used for a variety of interesting effects and shader inputs.

Vertices can also store vertex alpha, which can be used for multitexturing,, or ambient occlusion.

Usage

Vertex color is typically multiplied against the Diffuse Color, colorizing/darkening the color map.

Vertex color can also be used for controlling blends between different texture sets, providing per-vertex sound effects in response to collisions, etc.

When used for non-color effects, typically each color channel is treated as a separate monochrome set of values, so RGB vertex color can control three different per-vertex effects.

Multiple Colors per Vertex

A single vertex can be assigned multiple vertex colors, depending on the game engine and mesh format. This duplicates the vertex when it is loaded into the game, once for each color, slightly increasing the memory cost.

When vertices contain multiple colors, the color will change suddenly from one triangle to the next, creating a hard color edge.

Tutorials

Foliage Vertex Color
Ambient-Occlusion Vertex Color
Removing Vertex Colors

Personal tools
Namespaces

Variants
Actions
Navigation
Tools