Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 to SmoothElevation.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 has AlterElevation)
  • 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)

smoothElevationTool.diff (10.5 KB ) - added by Digital Seraphim 14 years ago.
Smooth Elevation Tool diff

Download all attachments as: .zip

Change History (5)

by Digital Seraphim, 14 years ago

Attachment: smoothElevationTool.diff added

Smooth Elevation Tool diff

comment:1 by Digital Seraphim, 14 years ago

Attached a diff containing my "Smooth Elevation Tool" for Atlas

comment:2 by Philip Taylor, 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 philip, 14 years ago

Resolution: fixed
Status: newclosed

(In [7854]) # Add terrain smoothing tool to Atlas, based on patch from DigitalSeraphim. Fixes #516.

comment:4 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

Note: See TracTickets for help on using tickets.