07-22-2002, 12:43 PM
Is there an easy was to blend one texture into another on just one quad?
I could do it with 2 quads, by just adding transparency to one side and putting that quad on top of the full textured quad, but that just doens't seem to be the most effective way, considering I have to find a way to cut that Z-Fighting out.
I asked this question in another forum, and was pointed to an article about a terrain engine. There, the texture for the heightmap is pre-calculated. The program takes 4 textures and blends them according to the height of the specified point. That way, I end up with one big texture for the whole height map.
However, in games like Populous3, the texture changes dynamically, as the height of the map changes.
Is there a simple way to do it in OpenGL?
I could do it with 2 quads, by just adding transparency to one side and putting that quad on top of the full textured quad, but that just doens't seem to be the most effective way, considering I have to find a way to cut that Z-Fighting out.
I asked this question in another forum, and was pointed to an article about a terrain engine. There, the texture for the heightmap is pre-calculated. The program takes 4 textures and blends them according to the height of the specified point. That way, I end up with one big texture for the whole height map.
However, in games like Populous3, the texture changes dynamically, as the height of the map changes.
Is there a simple way to do it in OpenGL?