Commit Graph

434 Commits (master)

Author SHA1 Message Date
Rogier a3f01d5a1e Report minimum and maximum Y coordinate mapped (hint for --min-y and --max-y) 2015-03-10 17:47:29 +01:00
Rogier 047c2f4ec8 Documentation updates & Changelog updated 2015-03-10 13:30:34 +01:00
Rogier 7d3e780724 Include documentation in packages as well 2015-03-10 12:01:55 +01:00
Rogier 0e5aef833a Update and improve building instructions 2015-03-10 12:01:55 +01:00
Rogier 51504e082b Miscellaneous changes & improvements to manual 2015-03-10 12:01:55 +01:00
Rogier a0152189b1 Add note in manual about link mangling in rst files on Github 2015-03-10 12:01:55 +01:00
Rogier 10be8ebfe6 Improve colors file searching on Windows
On Windows, minetestmapper now uses the colors files from the
directory where it is installed.

If the last directory is named 'bin', that part is stripped,
and the resulting directory, and a subdirectory named 'colors'
are searched.

All depends on the whether on invocation, argv[0] contains the full
path of the exe file. It works under Wine when compiled with MinGW.

I haven't been able to test on a real copy of windows, or when
compiled using msvc, but I assume that will work too.
2015-03-10 12:01:55 +01:00
Rogier f853915404 Fix Windows build (isnan not defined -> std::isnan) 2015-03-10 12:01:55 +01:00
Rogier 216bc32a35 Improve sqlite access speed by using rowid in query if possible
The speedup is measurable, but not stellar.
2015-03-10 12:01:55 +01:00
Rogier 7c2cf3efa9 Cleanup sqlite3 database code a bit
As tests using --sqlite-cacheworldrow showed a consistently
lower performance than without, this option was effectively
disabled. It is still recognised for compatibility, but
it may be removed some time in the future.
2015-03-10 12:01:55 +01:00
Rogier 7c8a99599f Improve memory use of BlockPos 2015-03-03 08:29:04 +01:00
Rogier-5 fd92db0ced Merge pull request #5 from est31/est31-fixtypo
Fix README typo
2015-02-27 18:37:51 +01:00
est31 d2c9d5e576 Fix README typo 2015-02-24 22:12:00 +01:00
Rogier 6e34a4ace1 Added build instructions to README again. 2015-02-20 19:15:25 +01:00
Rogier 9f449b7195 Updated Changelog 2015-02-20 13:24:55 +01:00
Rogier 4d1f9fe57b Restructured and improved the documentation.
Most of the content of README.rst was moved to a separate
user manual, and to a build manual.

The README was simplified to provide just the most important
information.

The user manual was extensively reworked, and beautified with images.
2015-02-20 13:10:09 +01:00
Rogier e557ca350c Fixed an assert in debug mode when tile borders are more than 1 pixel 2015-02-20 13:10:09 +01:00
Rogier a6eed3a1ed Add options to specify a custom major and minor interval in the scale(s). 2015-02-20 13:10:09 +01:00
Rogier 5ce7ff4bce Allow scaling a map to a smaller size while generating. (1/2, 1/4 .. 1/16)
Scaling will not average nodes across block boundaries, This implies
that the only scale factors supported are 1:2, 1:4, 1:8 and 1:16.
2015-02-20 13:10:09 +01:00
Rogier 045540e8f9 Add rainbow colors configuration file for heightmap 2015-02-20 13:10:09 +01:00
Rogier 994e9d7171 Add the option to draw a height scale for the height map 2015-02-20 13:10:09 +01:00
Rogier 4476de429d Allow reading heightmap colors from file, and use separate option for nodes file 2015-02-20 13:10:09 +01:00
Rogier 3812e31fc9 Add options to generate a height map of the world.
--heightmap: generate the height map, in colors
--heightmap-grey: use shades of grey instead of colors
--sealevel <n>: define the sea level (below sea level is drawn in blue)
--heightmap-scale <f>: scale the heights by f (for the purpose of
  color selection)

When generating a heightmap, a special colors file is needed,
that defines just the blocks that should be considered part
of the ground. That means that normally, any plants, special
nodes and water should not be included.
2015-02-20 13:10:09 +01:00
Rogier 2d3eaff736 Enlarge left scale (was too small for 5-digit numbers) 2015-02-20 13:10:09 +01:00
Rogier d538398c31 Allow selecting which sides to draw the scale on (top and/or left) 2015-02-20 13:10:09 +01:00
Rogier 722086781d Allow specifying lighter or darker variants of built-in colors. 2015-02-20 13:10:09 +01:00
Rogier 1854ef34e6 Recognise some symbolic colors (red, green, blue, yellow, black, white, gr[ae]y, and more) 2015-02-20 13:10:09 +01:00
Rogier 59bae48fc7 Fix add method for pixel
When adding any pixel to an object in 'invalid' state,
the operation should be equivalent to an assignment. It wasn't
2015-02-20 13:10:09 +01:00
Rogier 784cf9604f Replace m_nextStoredYCoord by a PixelAttributes member. 2015-02-20 13:10:09 +01:00
Rogier 07e3fb5efd Add _CPack_Packages to .gitignore 2015-02-20 13:10:08 +01:00
Rogier 845e34d2a7 Make ice slightly transparent 2015-02-20 13:10:08 +01:00
Rogier 2e69eaeba7 Enhance progress indicator 2015-02-20 13:10:08 +01:00
Rogier c0a62b7874 Use topmost height for a stack of only transparent nodes 2015-02-20 13:10:08 +01:00
Rogier 185bf90c4b Sanitize the code that searches for a colors.txt file 2015-02-20 13:10:08 +01:00
Rogier 4ab1728246 Fix to drawalpha darkening mode (no extra computation of t needed...) 2015-02-20 13:10:08 +01:00
Rogier b799f2150c Fix typo in colors.txt (wrong 5th parameter for water source) 2015-02-20 13:10:08 +01:00
Rogier d3dcf310eb Fix shading when pixels are sparse 2015-02-20 13:10:08 +01:00
Rogier 22041a8603 Add shorthand options to draw tiles matching map-blocks and map-chunks
The option --tiles has two new possible values: 'block' and 'chunk'
'block' creates tiles corresponding to map blocks
'chunk' creates tiles corresponding to map chunks
(chunks are the unit of map generation).

An option --chunksize was added to manually override the chunk size.
2015-02-20 13:10:08 +01:00
Rogier 5aa358aafe Rename some constants for clarity 2015-02-20 13:10:08 +01:00
Rogier b71c1a3089 Print block coordinates as well in the scale
Note: on the y-axis scale, the block coordinates are rendered above
the line, instead of under the node coordinate, as that makes
them adjacent to the block they refer to.

for illustration: create a map with --drawscale --tiles=16 --tileorigin=world.
this makes the tiles correspond to the map blocks.
Consider a point with y-coordinate 64. It is part of a map-block with y=64..79.
This block is located at and above the line corresponding to y=64. On the y-axis,
it is therefore most intuitive to render the block coordinate above the line.
2015-02-20 13:10:03 +01:00
Rogier bff6d0761d Updated Changelog 2014-06-19 15:00:24 +02:00
Rogier 743d657bef Improve the colors of water (esp. for --drawalpha) & make lava transparent.
As the best color for water depends on the rendering parameters
(i.e. the --drawalpha mode: none, average or cumulative), two
additional colors files are provided for these alternatives.
2014-06-19 13:31:53 +02:00
Rogier b99111e038 Add a --drawalpha mode that keeps water (etc.) transparent to great depths
This new mode averages the colors of all transparent blocks, instead of
making the colors progressively darker and more opaque.

This 'average' mode is now the default when using --drawalpha. It can be
explicitly selected using --drawalpha=average. The old modes can be selected
using --drawalpha=cumulative[-darken].

It is recommended to change the colors of water as well. These are in a
separate patch.
2014-06-19 13:30:00 +02:00
Rogier e27d181d9f Idempotent changes to PixelAttribute class (preparing for next patch) 2014-06-19 13:29:28 +02:00
Rogier a065e68eac Make darkening of thick transparent stacks (e.g. deep water) configurable.
In order to reduce rendering surprises, this darkening is off by default
(it was on previously).
2014-06-18 21:19:14 +02:00
Rogier 9285bc586c Add package extensions to .gitignore 2014-06-18 21:18:58 +02:00
Rogier 71234c3422 Fix build for freebsd/clang - fixes #4 2014-06-18 14:01:34 +02:00
Rogier 1dcc3da212 Updated changelog with recent changes, and updated base version 2014-06-18 11:44:24 +02:00
Rogier 3ffb1dfb33 Some small changes to README.rst 2014-06-18 11:44:24 +02:00
Rogier 66122c1c2e Freeminer database coordinate format support ('a<x>,<y>,<z>') 2014-06-18 10:12:44 +02:00