| 1 |
Info on how to compile smooth is in the file INSTALL. |
| 2 |
Info on the authors is in the file AUTHORS |
| 3 |
ChangeLog contains the changes in reversed chronological order |
| 4 |
This program is licenced under the GPL |
| 5 |
|
| 6 |
|
| 7 |
smooth is a program used to help in the creation of maps for Exult |
| 8 |
games. Exult is an engine to run Ultima VII on modern hardware but |
| 9 |
can run self-made games as well. |
| 10 |
|
| 11 |
The creation of a map is a fairly complex thing to do, since the map |
| 12 |
is 24576x24576 pixels. Fortunately, the map is made of reused chunks |
| 13 |
which are squares of 128 pixels, so we need only a map of 192x192 |
| 14 |
chunk. There is a hard limit of chunks that can be used of 256. It |
| 15 |
makes sense then to use an indexed image (less than 256 colours) with |
| 16 |
reused colours, each representing a chunk and to convert this image |
| 17 |
into a map, thanks to an association chunk <-> colour. The tool to do |
| 18 |
this is called mockup and is also part of the Exult tools. |
| 19 |
|
| 20 |
It is noteworthy that even creating such a map is a difficult |
| 21 |
task. Either a lots of manual work in done on the image itself, or a |
| 22 |
simple image is created, but the real map needs to be adjusted with |
| 23 |
ExultStudio. In order to reduce this work and to automate tasks (thus |
| 24 |
reducing errors), smooth has been created. smooth takes an image as |
| 25 |
input and creates an image as output, making automatic changes thanks |
| 26 |
to a config file. The changes that can be made for instance are: |
| 27 |
* randomizing: to make a area (based on colour) appear in random colour |
| 28 |
(from a pool set in the config file). Useful for forest for instance |
| 29 |
* streamlining: transform a single colour representing a road into |
| 30 |
adjusted colours to reflect the changes in direction. Usually, a chunk |
| 31 |
for a east-west road piece is different than one for a north-south |
| 32 |
piece. |
| 33 |
* smoothlining: when 2 colours are beside each other, representing 2 |
| 34 |
chunk types, it is better if the transition from one to the other is |
| 35 |
smooth. For instance, water and land would look better with a shore |
| 36 |
between the two. |
| 37 |
|
| 38 |
smooth uses a config file to know how to convert one colour into |
| 39 |
another based on what is around or on what change to make. |
| 40 |
Each section starts with [name]. A comment starts with a ';' or a '#'. |
| 41 |
Each line in a section starts with the slave colour, that is, the |
| 42 |
colour to transform into something else. This something else is found |
| 43 |
somewhere in the rest of the line. Which one is picked depends on |
| 44 |
which section it is in, and what the surrounding factors are or just |
| 45 |
chance, as in the randomize section. |
| 46 |
|
| 47 |
Most of the time, the order in which the colours are put in the config |
| 48 |
file matter. If you happen to change the colours in the config file, |
| 49 |
make sure you adapt accordingly the file "mapping.txt" from mockup. |
| 50 |
|
| 51 |
|
| 52 |
Modes of operation |
| 53 |
================== |
| 54 |
|
| 55 |
-i Inputfile |
| 56 |
graphic file to smooth. Must be an 8bit (<256 colors) indexed bmp |
| 57 |
or png file, sized 192x192 pixel. |
| 58 |
|
| 59 |
-o Outputfile |
| 60 |
genrated graphic file, will always be in bmp format. |
| 61 |
|
| 62 |
-c Configfile |
| 63 |
By default smooth wil use the file "smooth.conf" but with this |
| 64 |
you can tell it to use any other text file. |
| 65 |
|
| 66 |
-d Debug level |
| 67 |
Level of verbosity of smooth. 0 (default) - 4. |
| 68 |
|
| 69 |
|
| 70 |
EXAMPLES |
| 71 |
======== |
| 72 |
|
| 73 |
smooth |
| 74 |
This will try to use the input file rough.bmp with the config |
| 75 |
file smooth.conf to generate the file smoothed.bmp. |
| 76 |
|
| 77 |
smooth -i foo.bmp -c config.txt -o bar.bmp -d 4 |
| 78 |
This will use the input file foo.bmp with the config file |
| 79 |
config.txt to generate the file bar.bmp with the highest verbosity. |
| 80 |
|
| 81 |
|
| 82 |
BUGS |
| 83 |
==== |
| 84 |
|
| 85 |
- The randomizer plugin broke some time ago, so if you have a [randomizer] |
| 86 |
section, smooth will silently abort generating the output file. |
| 87 |
|
| 88 |
- With the port to SDL2 something broke in smooth and thus it isn't |
| 89 |
working at the moment. |