Giter VIP home page Giter VIP logo

cities-skylines-heightmap-generator's Introduction

This is a fork of original heightmap builder (JBerg60/cities-heightmap)

Cities: Skylines online heightmap generator

Online heightmap generator for Cities: Skylines Check it: https://cs.heightmap.skydark.pl

Original text by original author below

Objective

The goal is to get a accurate height map for Cities: Skylines

Features

  • height resolution 0.1 meters (cities resolution = 0.015 meters at 1:1 scale)
  • easy to use interface
  • takes a 18 x 18 km square from a map
  • can produce png and raw images (use raw for highest accuracy)

Tools needed

Visual studio code or the editor of your choice.

Info panel

By clicking the i icon, a info panel is displayed. Longitude and Latitude as well as minimum and maximum height of the square are displayed. Clicking the refresh button will update these settings.

Settings

  • Sea level: the height that will be used as sea level. For land adjacent to the sea or ocean, this will usual be 0.
    For land located in mountains, this will usual be the minimum height of the square.

  • height scale: cities uses heights up to 1024 meters. When the scale is 100%, the map is transferred 1:1 to cities. When the scale is above 100%, heights are stretched, giving mountains more accent.

  • Below sea level: the is the depth that can be dug in the land before hitting absolute minimum. Handy for creating lakes at sea level, or canals that are at sea level.

  • rise only land: the sea level is kept at 0 meters, but the land gets a extra rise. This creates the possibility of creating land that is risen a small amount out of the sea. When all is raised, it creates the possibility to create a lake, when land is not adjacent to the ocean.

Settings examples:

  • A square has a minimum height of 200 meters and a maximum height of 2200 meters (like the Alps), auto settings are calculated like this:
    Sea level is set to 200 meters, Height scale to 50%, below sea level to 5 meters and all land is raised. By setting only land rise, and below sea level to 10, the land will raise 10 meters out of the sea. In the map editor from cities, the sea level can also be adjusted. Wen set to 9 meters, this gives a shoreline that is risen 1 meter out of the sea.

  • A square has a minimum height of 0 meters and a maximum of 350 meters (like San Francisco), auto settings are calculated like this:
    Sea level is set to 0 meters, Height scale to 300%, below sea level to 20 meters and only land is raised.

Frequently asked questions

Q: when downloading the map Chrome says heightmap.raw is not commonly downloaded and may be dangerous
A: just click on the arrow up and choose keep. Height maps are not dangerous at al ;)

Planned enhancements

  • Possible adjustment of the 18 x 18 km square for getting maps.

Final notes

  • displaying debug info is achieved by adding ?debug=1 to the url. A png map is added, as well as a heatmap and a rectangle of the tiles that are downloaded.
  • due to the nature of mother earth (it is a cube), it is not possible to achive 100% accuracy near the poles. However, the center square is always at the correct position.

cities-skylines-heightmap-generator's People

Contributors

johnberg60 avatar sysoppl avatar

Watchers

 avatar  avatar

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.