#5027 closed enhancement (fixed)
Random map SmoothingPainter
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 23 |
Component: | Maps | Keywords: | |
Cc: | Patch: |
Description
Sometimes it is important to smooth only a subset of the map. For example if when we want a passable paths without touching the surrounding terrain.
We already have the global smoothing function in the heightmap library, so this problem can be solved easily by converting this to painter.
Since there are different algorithms to smoothing an area, this ticket can help with gathering related code.
As of alpha 22 / r21172:
- The global smoothing heightmap library function accepts an array of vertex locations. It seems unlikely to be reused (especially reused without bugs). Perhaps it would be more relevant to consume an array of points (i.e. Vector2D passed by an area).
- Pyrennean Sierra does some smoothing by interpolating the height of all vertices of a square with the length of 5 tiles.
- As recommended by the heightmap library, some maps (island stronghold, schwarzwald) repeat the smoothing process. This might be sufficient to replace both approaches above. But perhaps there is some rare occasion where we need this different smoothing algorithm?
Change History (3)
comment:1 by , 6 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 21175: