Skip to content
ballisticfox edited this page Jan 19, 2025 · 6 revisions

screenshot174

This workflow is only for areas in the US, and creates 1x1 degree lat - long tiles at 10m/px

If you have not completed Developer Set‐up, do that first

At this point you should have all packages installed, and a directory created with the script inside that you want to work in.


Downloading Heightmap Data:

image

To gather heightmap data we're going to use https://apps.nationalmap.gov/downloader/.

You may have to create an account to download the tiles.

Select the area of interest, select Elevation Products (3DEP) and search products, find the tile you want to download and hit Download Link (TIF)

Place this tif file inside of the same folder as the script.

image

Inside of the _workflow.py, replace the bottom command with workflows.NASA_SRTM(HEIGHTMAP_NAME, TEXTURE_PATH, MOD_TAG, BODY_NAME)

where HEIGHTMAP_NAME is the heightmap name, and TEXTURE_PATH is the path to your textures folder, MOD_TAG is whichever planet mod you are using (RealSolarSystem or SolSystem) and BODY_NAME is whichever body you want this config to apply to.

For my example this is: workflows.NGP_3DEP("USGS_13_n27w100_20240925.tif", "Sol-Addons/PluginData/03_Earth/Tiles", "RealSolarSystem", "Earth")

Downloading Colormap Data:

image

To gather colormap data we're going to be using SASPlanet.

To start, I highly advise pressing image on the top bar and pressing z15. A grid should appear, this will disappear as we start to download our imagery.

I also suggest you press View > Lat/Long Grid > 1°

On the top bar press the image down arrow and select by coordinate, then press the button

image

For this example I'm using USGS_13_n27w100_20240925. The coordinates listed in the 3DEP images are the upper left corner, meaning the first Lat should just be the same, and the first Long should be the same.

The second lat will be the lat -1, so N26 in this case, and the second long will be the long -1, or 99 in this case. Press apply.

image

Zooming in should yield something similar to this.

In the selection manager, go to the download section, on the left press 15. I personally check Close download window once finish but this is personal preference. Press start.

After the window disappears, hit the green selection button again, and press apply.

Go to the stitch section, select GeoTIFF as the output format, input the path to your work directory into the save to box, the colormap name must be the coords followed by _color.tif

For USGS_13_n27w100_20240925 -> n27w100_color.tif

Select which mapping service you'd like to use, I traditionally use Google - Satellite, select Zoom: 15, Press Start.

image

Your working directory should now look like this image

Open a terminal and use python _workflow.py and the script should start.

You should be left with:

image


Moving to KSP

The .cfg file the generator outputs can be used directly in KSP itself now, just double check your textures go in the same path as what's in the config and place it anywhere in GameData!

After placing our .DDS textures at the specified locations in the config, the game should load our tiles properly.