terickso
10-11-2002, 06:35 AM
Could someone please help me bridge a gap in my opengl knowledge (which at this point is not much). I have an 8 by 3 color gradient, 8 levels with rgb settings. I bind this texture to a name. I am using quads and I want to do 1d texturing. First of all if the quad should show the 4th, 5th and 6th colors in my texture, how does this get translated to my quad.
A quad is four points how do you translate the portion of the texture to the four points.
I am iterating thru points on an height map and need to do this for every quad. Right now this works great with glcolor3f but I get to have a color gradient. If anyone has an example to do a height map using 1d texturing with quads that would be wonderful, or just explain to me how to do it.
A quad is four points how do you translate the portion of the texture to the four points.
I am iterating thru points on an height map and need to do this for every quad. Right now this works great with glcolor3f but I get to have a color gradient. If anyone has an example to do a height map using 1d texturing with quads that would be wonderful, or just explain to me how to do it.