Vertex Colors, am I understanding the concept?
by Kenneth Eves · in Artist Corner · 11/02/2012 (4:52 am) · 2 replies
I'm trying to piece together an understanding of vertex colors in 3D models.
A simple tri might be represented as:
point 1 (x,y,z) in object space
point 2 (x,y,z) in object space
point 3 (x,y,z) in object space
with the tri as p1 to p2 to p3 to p1.
What I'm guessing is that each point would have a color assignment (r,g,b).
Given that p1's color is red, p2's color is blue, and p3's color is blue, then the tri would be rendered red at the p1 location and then gradient to where p2 and p3 are blue.
With this a mesh could be crudely painted without a bitmap texture.
Am I close?
Would this also be the same sort of system as used in vertex illumination?
A simple tri might be represented as:
point 1 (x,y,z) in object space
point 2 (x,y,z) in object space
point 3 (x,y,z) in object space
with the tri as p1 to p2 to p3 to p1.
What I'm guessing is that each point would have a color assignment (r,g,b).
Given that p1's color is red, p2's color is blue, and p3's color is blue, then the tri would be rendered red at the p1 location and then gradient to where p2 and p3 are blue.
With this a mesh could be crudely painted without a bitmap texture.
Am I close?
Would this also be the same sort of system as used in vertex illumination?
About the author
<3 TGE/A Quickly becoming a fan of T3D 1.2
Torque Owner Lukas Joergensen
WinterLeaf Entertainment
The above picture is a generated model colored with vertex coloring (I know it looks odd, it is a picture from an issue I had)
But it kindda shows you how vertex coloring works.
Vertex colors can also be used for other things, even tho you put a texture over a model the information from the coloring is still there. This is used when trees is swaying in the wind in T3D.