 |

Submitted by , posted on 01 November 1999
|
 |
Image Description, by

Sorry for not updating my column, but that will change very soon. In
the meantime, here's a shot of what I've been spending my time on. A
terrain function for my engine.
In a nutshell, I'm reading a grayscale image to get the height data
(that's the little image in the top right -- I scaled it way up so you
can see it ... it's actual size is 16x16). I create a mesh of triangles
to represent the terrain. I then read in 3 textures (grass, rock and
ice) and blend them together based on height data, and create a custom
texture with which to texture the landscape. It works pretty well, and
... well, there you have it.
|
|