Palladium - Dymanic Heightmap
Posted: 10 Apr 2009, 11:48
So I made a map that use those Lua command to tweak the heightmap.
http://jobjol.nl/1965 <- download link
1) The .smf & .smt contain a flat map. The heightmap is lua generated during gadget:Initialize
2) Every time you build a structure larger than a wall on those cross thing, the ramps toward which it is facing is raised and the 3 other ramps are lowered.
Here's a pic to show what I mean:
http://jobjol.nl/1965 <- download link
Known bugs (that jK and Argh refuse to acknowledge
):
- UnitCreated would not be called from LuaGaia, so I had to use LuaRules
- The rendered use the original heightmap instead of current heightmap when deciding which part of the ground cannot be seen
Now that it's done, I feel the concept is much less interesting than I hoped it would be. But there has to be better uses of map changing their heightmaps than this, I'll just have to think of a better one next time.
http://jobjol.nl/1965 <- download link
http://jobjol.nl/1965 <- download link
1) The .smf & .smt contain a flat map. The heightmap is lua generated during gadget:Initialize
2) Every time you build a structure larger than a wall on those cross thing, the ramps toward which it is facing is raised and the 3 other ramps are lowered.
Here's a pic to show what I mean:

http://jobjol.nl/1965 <- download link
Known bugs (that jK and Argh refuse to acknowledge

- UnitCreated would not be called from LuaGaia, so I had to use LuaRules
- The rendered use the original heightmap instead of current heightmap when deciding which part of the ground cannot be seen
Now that it's done, I feel the concept is much less interesting than I hoped it would be. But there has to be better uses of map changing their heightmaps than this, I'll just have to think of a better one next time.
http://jobjol.nl/1965 <- download link