Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3852 closed enhancement (wontfix)

Require explicit painting of water tiles to create water

Reported by: _kali Owned by:
Priority: Should Have Milestone:
Component: Maps Keywords:
Cc: Patch:

Description

I have a few ideas for some maps where there is water at different elevations, like mountain lakes. As well, as some below sea-level terrain (like Denmark). However, in generating random maps, currently there is a universal waterline (0 elevation) and water is applied to all terrain below that waterline, even if it is explicitly painted a different terrain (like "mainTerrain").

In the map attached, I created a normal lake in the middle of the map, depth of -5 elevation.

To the bottom left, I created a mountain at 10 elevation, and then placed what should be a lake on top of the mountain (painted with the "water" terrain at 7 elevation). However, only the shoreline terrain is applied, as the depth of the mountain lake does not fall below 0.

In the top right, I created a valley at -5 elevation and painted it with the "mainTerrain" and "dirt" terrains, however it is automatically filled with water since it falls below 0 elevation.

Is there a way to get this map to render properly where there is a mountain lake in the bottom left and a valley with no water in the top right?

Attachments (2)

Screen Shot 2016-03-24 at 10.25.43 AM.png (1.1 MB ) - added by _kali 8 years ago.
screenshot of map showing the auto-filled waterline
water_elevation_test.zip (987 bytes ) - added by _kali 8 years ago.
map files for generating the water elevation demo

Download all attachments as: .zip

Change History (5)

by _kali, 8 years ago

screenshot of map showing the auto-filled waterline

by _kali, 8 years ago

Attachment: water_elevation_test.zip added

map files for generating the water elevation demo

comment:1 by FeXoR, 8 years ago

The map is rendered propperly ;)

There are several different things you talk about here:

Those things might seem to be strongly related at first glance but they not all are e.g. painting a playground blue will not cause the water to raise untill that place is under water.

Additional confusion might be added by the fact "terrains" in the random map generation (RMGen) library references most of the times means a combination of a terrain texture and - possibly - an actor (like a flower) or an entity (like a harvestable tree).

Additionally entities and actors are not really distinguished in RMGen, refering to them most of the times simply as "entities".

To be able to raise the water level to fill the mountain lake but not flood most of the rest of the map requires a water height map - similar to the terrain reliefmap (present in g_Map.height). That would require the engine to support it (that may be the case allready though absolutely untested AFAIK) and all related functionality (like Atlas/generate maps, save/load maps, generate random maps, export random maps, passability checks, placement checks and likely more).

So, no, it's not a planned feature AFAIK.

I hope that helped. I think this ticket can be closed.

Last edited 8 years ago by FeXoR (previous) (diff)

comment:2 by wraitii, 8 years ago

Resolution: wontfix
Status: newclosed

Closing this as a wontfix because this is really dependent on multiple water plane, which is a semi-planned feature we don't have right now, and that perhaps should be in http://trac.wildfiregames.com/ticket/48.

To answer the ticket question: there is no current way to render properly where there is a mountain lake in the bottom left and a valley with no water in the top right.

comment:3 by Palaxin, 8 years ago

Milestone: Backlog
Note: See TracTickets for help on using tickets.