Coder Social home page Coder Social logo

sigma-cartographer's People

Contributors

sigma88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sigma-cartographer's Issues

Feature request: combined color and ocean maps

There's no good output map type that can be used by Kopernicus in scaledSpace. There would need to be a combination of the colourMap and the oceanMap.

I propose a new map output option that does exactly that. I'm not sure what the best name for it would be. Maybe something as simple as PQSMap.

I can't compile the code to test this, but it seems like after including the bits to check whether the user wants to map type output, all you'd need is something like

                            if (exportPQSMap)
                            {
                                CreateSatelliteMap(ref colorMap, ref oceanMap, ref satelliteMap);
                                ExportPQSMap(ref satelliteMap, subfolder + "PQSMap/", fileName);
                            }

Add ability to mirror the output horizontally

As KSP requires a differently oriented input map as apposed to the -180 to 180 LON output that you'd expect, if a user is utilizing Cartographer to output maps that are then used for the Color Map/Normal Map, for example, they have to take the Cartographer output maps, flip them horizontally then offset them by -90deg LON so that they are correctly oriented and aligned to be used as the input textures for KSP.

The offset by 90deg LON is already achievable with Cartographer as LON & LAT offset has been implemented yet the horizontal mirroring is not available unfortunately.

Is there the possibility to mirror Cartographer's map output so that when combined with a LON offset, the output can be used directly as KSP textures?

EDIT: For reference, HeightmapExtractor did something similar as can be seen here: https://github.com/StupidChris/HeightmapExtractor/blob/320677a6bb1686157ec2e0e7beb64cc3b1ced304/HeightmapExtractor/MapExtractor.cs#L119

New user questions: Can I use Cartographer to generate a height map of RSS-Earth as it exists in game?

I think this mod can help me, but I don't know how to use it. I didn't see any controls in game, am I missing something?
I'm trying to bulk-generate every runway in the world from GIS data. My data has elevations, but I'm finding that RSS/Kopernicus does not really match elevations very well, sometimes it is off by 1000s of meters.

  • Can I use Cartographer to generate a height map of RSS-Earth as it exists in game?
  • Does it work with Kopernicus planets?
  • Assuming I can have it generate a height map, what are the limits of resolution? I'm thinking I should go to 0.01 degrees/pixel.
  • Again, assuming I can export a height map, can I control the extents? That is: have the longitude axis go from -180 to +180, with the prime meridian right in the middle, or it like kopernicus where the map goes from -270 to +90 (with -90 in the middle).

Thanks for your help

Add oceanColor

this is needed to bypass the oceancolor in case we want a different one

Feature request: don't generate maps if maps already exist

Include some flag where there is a check to see if image files already exist at the output path. If so, don't generate maps.

That way the mod can live in the GameData folder all the time and won't generate maps (that already exist) every time the game starts.

Applying a Gradient Tint to the Elevation Map for Shaded Relief

If a new Map Export mode could be introduced that applied a gradient map from an external image (lerped through the diagonal) that was then applied to the elevation map tile and re-exported during the export process it would aid in the creation of Shaded Relief/Hypsometry/Bathymetry maps.

This would be helpful as the existing folder/filename structures would be retained along with the fact that further post-processing of 1000s of images would not be needed.

heightmaps are 8-bit only

for some reason, Cartographer exports 8-bit heightmaps. I know it's a problem with Squad's tools, but i want to know what tool is used to return the height values as 8-bit or some other number. Maybe i can try to copy the tool's actions and make it return 16-bit values (not 32-bit values).

Can't Map Jool

Using this as my Settings.cfg, I am unable to map Jool. Using KSP version v1.11.1

SigmaCartographer
{
	Maps
	{
	  body = Jool
          width = 4096  // the total width of the texture (default = 4096)
          tile = 4096   // the width of one tile          (default = 4096)
          exportFolder = 1        // path for the export folder
          normalMap = false    // export normals?   (default = false)
          colorMap = true      // export color?     (default = true)
          satelliteMap = true // export satellite? (default = false)
          normalStrength = 1   // strength of normals (default = 1)
    }
}

Introduce printTileStart and printTileEnd for large export batches

When you are doing exports of large widths with small tiles sizes and you only want to export, say, half the body you have to include 'printTile = x' a LARGE amount of times as there can be 10s of thousands of tiles.

If there was an option to specify a:

printTileStart = x
printTileEnd = y

... where 'x' would be the starting tile number and 'y' being the end tile number and the export loop iterated between these values it would save a lot of lines in the config and would be easier to handle.

config for map output

Looking to make extra zoom levels for my ground map of Kerbin, which currently goes up to level 5 using the old kerbalmaps.com data and I'd like to add levels 6 and 7. Poodmund directed me to this plugin after he made those levels himself, but wasn't able to upload that much data.

Documentation on how to use?

There are some tantalizing hints in issue #16, as well as the Pastebin at https://pastebin.com/0pchfKcG, but still unwritten (as far as I can tell) is:

  • Where does the config file from the Pastebin go?
  • Is the config in the Pastebin complete?
  • How is Cartographer triggered once it is configured?

I'm happy to write up a HOWTO and PR it, but first I need to know "how to". ๐Ÿ˜ƒ

`leaflet` doesn't generate maps correctly

Given this configuration, in GameData/Sigma/Cartographer/SigmaCartographer.cfg:

@SigmaCartographer
{
	// level 0
	Maps
	{
		body = Kerbin
		colorMap = true
		satelliteMap = true
		oceanFloor = false
		width = 512
		tile = 256
		exportFolder = 0
		leaflet = true
	}
}

SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/ColorMap which is empty. There's no other output as far as I can tell.

If colorMap is changed to false, SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/SatelliteMap containing a single image file which has the map for the "eastern" half of Kerbin (pole to pole latitude, 0 to +180 degrees longitude).

If leaflet is set to false, SigmaCartographer creates a directory at GameData/Sigma/Cartographer/PluginData/Kerbin/0/SatelliteMap containing two image files. Tile0000.png has the map for the "western" half of Kerbin, while Tile0001.png has the map for the "eastern" half.

For what it's worth, the tiles from kerbalmaps.com and ksp.deringineur.net were in a directory structure that looked something like

kerbin
  sat
    0
      0
        0.png
      1
        0.png

The general form is {body}/{style}/{zoom}/{x}/{y}.png. body, style, and zoom would all come from config values, I expect.

Atmosphere/Clouds on planet renders checking in

Is there a way to set up config files to add the atmosphere and clouds to a planet render? I've been exporting 360 views of Bodies at 35 latitude every 15 longitude to make rotation gifs and the planets that do have atmospheres and clouds such as Kerbin, Rhode, Kohm(BeyondHome) don't look as good without the atmosphere rendered on top of it.

Is this built in? If not, could a layer an atmosphere texture file on tope of the map texture used on the render? So it would be using 2 textures, the atmosphere texture being the outtermost.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.