
The implementation starts with a definition for the
ILandform
interface. Instances of this interface is added to an object that inherits from HeightMap
via the Landformations
member on this class. Right after the heightmap itself is established each of the landforms in this collection are initialised. The lanform has full access to the heightmap data. The classes LandformVolcano
and LandformCrater
embodies the volcano and crater functionality. Not really much code there; but some experimentation was needed to get things just right.I must admit, gross shortcuts were taken. There must be more geomorphologically correct ways to build these landforms (and I cannot help but feel my volcano can do with some smoke). Alas, these artifacts are good enough for my current expectation. The image above shows a crater next to a volcano. I am sure you can spot the difference between the crater pool and the Perlin pool.
No comments:
Post a Comment