#516 closed task (fixed)
Terrain smoothing tool
Reported by: | Philip Taylor | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | |
Component: | Atlas editor | Keywords: | simple |
Cc: | Patch: |
Description
See this suggestion for a blur/smooth tool.
I expect it can be implemented like:
- Copy
source/tools/atlas/AtlasUI/ScenarioEditor/Tools/AlterElevation.cpp
toSmoothElevation.cpp
, and make the necessary name changes. - See
binaries/data/tools/atlas/scripts/section/terrain.js
and add the new tool to the list in there. - See
source/tools/atlas/GameInterface/Messages.h
and add the new one (like where it hasAlterElevation
) - See
source/tools/atlas/GameInterface/Handlers/ElevationHandlers.cpp
and add the new one.
As for actually implementing the smooth functionality, it'll probably need some thinking and experimenting to discover what's a good smoothing algorithm that behaves usefully and intuitively.
Ideally the same tool would roughen too (when right-clicking), as basically the exact opposite of smoothing.
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | smoothElevationTool.diff added |
---|
comment:2 by , 14 years ago
Thanks! This seems to do the job - just made a few minor changes (used std::vector
instead of calloc
, used ssize_t
consistently instead of int
, etc) and added a new icon (using my artistic powers to copy-and-paste a bit of one existing icon onto another existing icon - it should probably be redesigned eventually).
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [7854]) # Add terrain smoothing tool to Atlas, based on patch from DigitalSeraphim. Fixes #516.
Smooth Elevation Tool diff