How to use -M

How to use -M

Return to topic list

Sat Aug 28 13:20:15 2021   by   makzkaz
I've been using the map generator for a while, and it's nice. But how do you use the -M function, and for that matter, the -H one?

The Manual doesn't given an example on how to use -M, rather, how to use that earth.map file for the -M.

-M example: \planet.exe -C OlssonLight.col -pq -s 0.3915554 -M 0.03 -i -0.02 -w 4000 -h 2000 -o earth.bmp

As for the heightmap one, whenever I type -H, the powershell hangs on, processes it but exports a .bmp that no program can open.

-H example: \planet.exe -C OlssonLight.col -H -pq -s 0.3915554 -i -0.02 -w 4000 -h 2000 -o heigth.bmp
 
Mon Aug 30 11:16:54 2021   by   Torben
The manual says

The "-H" option produces a heightfield instead of a bitmap file. Each point on the map is printed as an integer in the range (approximately) -1.2×106 to 1.2×106, representing the altitude at that point. Points outside the planet are given height 0. Options controlling colours and gridlines are ignored. This option is intended to produce input to programs that, e.g., show 3D views of small areas of the planet.

So the output is not a BMP file, but a text file containing an integer for each pixel.

The -M option requires that a map sketch is given in standard input.  The easiest is to redirect from a file, for example

./planet.exe -C OlssonLight.col -pq -s 0.3915554 -M 0.03 -i -0.02 -w 4000 -h 2000 -o earth.bmp < earth.map
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list