[GEM-dev] vertex_array

Mathieu Bouchard matju at artengine.ca
Sat Aug 20 10:53:03 CEST 2005


On Fri, 19 Aug 2005, chris clepper wrote:

> Vertex data can be of any range for x,y,z,w, but color and texcoods
> range from 0..1.

Think of out-of-gamut colours as just like out-of-screen vertices.

> Have the results of cramming one data type into the other even been
> proven effective at all?

What is what you call effective? Cramming is a delightful activity. It's
also called databending by some people. To me, it's just everyday
business, so i don't even bother calling it names.

Personally, when I want to convert texcoords to colours i just multiply 
them by a matrix like:

1 0.5 0
0 0.5 1

Which causes y's to be mapped to orange and and x's to some bluish cyan. 
(my "texcoords" have the y before the x; i'm not doing this with GEM)

____________________________________________________________________
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
Freelance Digital Arts Engineer, Montréal QC Canada




More information about the GEM-dev mailing list