Skip to content

Commit

Permalink
Added map rotation
Browse files Browse the repository at this point in the history
* Added map rotation.

* Tests update.

* Preview map update.

* Widget update.

* Widget update.

* Preview rotation.

* README update.

* README update.
  • Loading branch information
iwatkot authored Dec 20, 2024
1 parent dc8de3b commit 153a6be
Show file tree
Hide file tree
Showing 18 changed files with 615 additions and 2,296 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
</div>

🗺️ Supports 2x2, 4x4, 8x8, 16x16 and any custom size maps<br>
🔄 Support map rotation 🆕<br>
🌾 Automatically generates fields 🆕<br>
🌽 Automatically generates farmlands 🆕<br>
🌍 Based on real-world data from OpenStreetMap<br>
🏞️ Generates height map using SRTM dataset<br>
📦 Provides a ready-to-use map template for the Giants Editor<br>
Expand All @@ -46,8 +49,6 @@
📄 Generates scripts to download high-resolution satellite images from [QGIS](https://qgis.org/download/) in one click<br>
📕 Detailed [documentation](/docs) and tutorials <br>
🧰 Modder Toolbox to help you with various tasks <br>
🌾 Automatically generates fields 🆕<br>
🌽 Automatically generates farmlands 🆕<br>

<p align="center">
<img src="https://github.com/user-attachments/assets/cf8f5752-9c69-4018-bead-290f59ba6976"><br>
Expand Down Expand Up @@ -443,10 +444,6 @@ You can also apply some advanced settings to the map generation process. Note th

- Plateau height: this value will be added to each pixel of the DEM image, making it "higher". It's useful when you want to add some negative heights on the map, that appear to be in a "low" place. By default, it's set to 0.

### Background Terrain Advanced settings

- Background Terrain Generate only full tiles: if checked (by default) the small tiles (N, NE, E, and so on) will not be generated, only the full tile will be created. It's useful when you don't want to work with separate tiles, but with one big file. Since the new method of cutting the map from the background terrain added to the documentation, and now it's possible to perfectly align the map with the background terrain, this option will remain just as a legacy one.

### Texture Advanced settings

- Fields padding - this value (in meters) will be applied to each field, making it smaller. It's useful when the fields are too close to each other and you want to make them smaller. By default, it's set to 0.
Expand Down
20 changes: 2 additions & 18 deletions docs/map_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The name of the archive (folder) but default contains the following information:

### Background
This directory contains components for creating the background terrain of the map. PNG images are just DEM files and the OBJ files were generated based on these DEM files. You can safely remove the PNG files if you don't need them.
The background directory contains of tiles, representing the cardinal directions (N, NE, E, SE, S, SW, W, NW) and the full tile. If you want to combine the background terrain from pieces, you can use them, or you can use the full tile for the whole map (in this case you probably need to cut out the center for the actual terrain).
You can use the `FULL.obj` file for the whole background terrain. You need to cut out the center for the actual terrain using this [tutorial](https://github.com/iwatkot/maps4fs/blob/main/docs/create_background_terrain.md#cutting-out-the-center-of-the-map).

### Info Layers
This directory mostly for internal use to store some data between different components. At the moment only one component - `Texture` stores here the generation data in JSON format.
Expand Down Expand Up @@ -101,24 +101,8 @@ Yes, it's a description of your mod, something like name, description, author an
```text
📦FS25_45_28571_20_23743_2024-12-10_23-43-55
┣ 📂background
┃ ┣ 📄E.obj
┃ ┣ 📄E.png
┃ ┣ 📄FULL.obj
┃ ┣ 📄FULL.png
┃ ┣ 📄N.obj
┃ ┣ 📄N.png
┃ ┣ 📄NE.obj
┃ ┣ 📄NE.png
┃ ┣ 📄NW.obj
┃ ┣ 📄NW.png
┃ ┣ 📄S.obj
┃ ┣ 📄S.png
┃ ┣ 📄SE.obj
┃ ┣ 📄SE.png
┃ ┣ 📄SW.obj
┃ ┣ 📄SW.png
┃ ┣ 📄W.obj
┃ ┗ 📄W.png
┃ ┗ 📄FULL.png
┣ 📂info_layers
┃ ┗ 📄textures.json
┣ 📂map
Expand Down
Loading

0 comments on commit 153a6be

Please sign in to comment.