Maps:Map Designer: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
recat to deprecated
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Engine_Development|Development]] < [[Map_development|Map Development]] < {{FULLPAGENAME}}
{{Deprecated}}[[Engine_Development|Development]] < [[Map_development|Map Development]] < {{FULLPAGENAME}}


== MapDesigner, by Hugh Perkins ==
== MapDesigner, by Hugh Perkins ==


[http://manageddreams.com/csai/MapDesigner.zip Download]
[http://hughperkins.com/csai/MapDesigner.zip Download]


*Supports multipass texture splatting.  SM3 loader.
*Supports multipass texture splatting.  SM3 loader.
Line 23: Line 23:
== User interface ==
== User interface ==


[image:http://manageddreams.com/csai/mapdesigner3small.JPG]
[image:http://hughperkins.com/csai/mapdesigner3small.JPG]


== Concepts ==
== Concepts ==
Line 70: Line 70:
If you click the map and nothing happens, your changes may be being masked by later layers.  You can edit the later layers to uncover your changes, or click "move down" to move your edited layer later in the queue.
If you click the map and nothing happens, your changes may be being masked by later layers.  You can edit the later layers to uncover your changes, or click "move down" to move your edited layer later in the queue.


[Media:http://manageddreams.com/csai/mapdesignblendediting.JPG]
[Media:http://hughperkins.com/csai/mapdesignblendediting.JPG]


== Water ==
== Water ==
Line 76: Line 76:
Areas below zero height will be underwater:
Areas below zero height will be underwater:


[Media:http://manageddreams.com/csai/mapdesignwater.JPG]
[Media:http://hughperkins.com/csai/mapdesignwater.JPG]


== Exported Slopemap ==
== Exported Slopemap ==
Line 84: Line 84:
Black means zero slope, green is vehicles, blue is infantry, red is extreme:
Black means zero slope, green is vehicles, blue is infantry, red is extreme:


[Media:http://manageddreams.com/csai/slopemap2.JPG]
[Media:http://hughperkins.com/csai/slopemap2.JPG]


== Configuration ==
== Configuration ==
Line 91: Line 91:
*You can change height and width in the display section to change the window size on next startup
*You can change height and width in the display section to change the window size on next startup
*You can configure key mappings, and mouse move configuration
*You can configure key mappings, and mouse move configuration
[[Category:Map_making]]

Latest revision as of 20:28, 27 October 2013

Warning! This page is outdated! The information displayed may no longer be valid, or has not been updated in a long time. Please refer to a different page for current information.

Development < Map Development < Maps:Map Designer

MapDesigner, by Hugh Perkins

Download

  • Supports multipass texture splatting. SM3 loader.
  • Heightmap editor. Left click to raise land, right click to lower
  • Paint splatted texture. Left click to paint texture, right click to erase
  • Export heightmap, slopemap and blend maps
  • Exported slopemap color-coded by movement area, eg infantry, vehicle and extreme (configurable)

Source-code repository, in git:

git://github.com/hughperkins/SpringMapDesigner.git

Source-code browser:

http://github.com/hughperkins/SpringMapDesigner/tree/master

Written in C#, using either mono or .net, both work, over gtk.net.

User interface

[image:mapdesigner3small.JPG]

Concepts

MapDesigner is optimized for creating SM3 maps, which use texture splatting to provide high detail maps.

For each texture, we need:

  • the texture, which will be tiled according to the tilesize
  • a blend map, which controls where the texture will be visible

The blend map is essentially an alpha map. The areas which are white will be splatted with our texture, and the other areas will be transparent.

The textures are rendered in layers, one by one. The later layers cover the earlier layers, according to each one's blend map texture. Here's some pictures that illustrate how this works. We are rendering each layer with a vertical offset so you can see each layer on its own.

[Media:multitextureview1.JPG]

[Media:multitextureview2.JPG]

[Media:multitextureview3.JPG]

In reality, these layers are all rendered together, with no vertical offset, so they look like they are all part of the same single terrain.

You can use any DevIL-compatible texture as your splat texture. Select a texture stage and click "Load texture..." to load the texture into that texture stage. You can change the tilesize to control how it is splatted in the visible areas.

The blend texture works like an alpha texture, but the data is actually stored in the RGB channels, as a grey-level. MapDesigner lets you paint or remove to and from the blend texture, which has the effect of painting splat texture on the map, or removing it.

Texture stages

Multiple texture stages can be configured. We use one texture stage for each splatted texture and set its operation to "Blend".

The first texture stage - texstage1 - should be set to "Replace", and has no blend texture. That's because it's the base texture for the map, on top of which the other textures are painted.

Advanced:

  • It's possible to set other operations on the texture stages.

Paint splatted texture

  • select "Paint texture"
  • select a texture stage
  • set texture stage operation to "Blend" and load a texture if necessary
  • Left click map to paint texture, right click to erase
  • You can click "Save blend texture" to export the blend texture map

Note that texture stages are applied in order, first 1 then 2 then 3 etc. The later layers cover the earlier ones.

If you click the map and nothing happens, your changes may be being masked by later layers. You can edit the later layers to uncover your changes, or click "move down" to move your edited layer later in the queue.

[Media:mapdesignblendediting.JPG]

Water

Areas below zero height will be underwater:

[Media:mapdesignwater.JPG]

Exported Slopemap

You can use File | Export slopemap... to export a slopemap for your map.

Black means zero slope, green is vehicles, blue is infantry, red is extreme:

[Media:slopemap2.JPG]

Configuration

Configuration is stored in config.xml ,which can be opened in notepad

  • You can change height and width in the display section to change the window size on next startup
  • You can configure key mappings, and mouse move configuration