maps4fs 0.9.4__py3-none-any.whl → 0.9.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maps4fs/generator/background.py +9 -4
- maps4fs/generator/dem.py +1 -0
- {maps4fs-0.9.4.dist-info → maps4fs-0.9.6.dist-info}/METADATA +6 -2
- {maps4fs-0.9.4.dist-info → maps4fs-0.9.6.dist-info}/RECORD +7 -7
- {maps4fs-0.9.4.dist-info → maps4fs-0.9.6.dist-info}/LICENSE.md +0 -0
- {maps4fs-0.9.4.dist-info → maps4fs-0.9.6.dist-info}/WHEEL +0 -0
- {maps4fs-0.9.4.dist-info → maps4fs-0.9.6.dist-info}/top_level.txt +0 -0
maps4fs/generator/background.py
CHANGED
@@ -10,13 +10,18 @@ import numpy as np
|
|
10
10
|
import trimesh # type: ignore
|
11
11
|
|
12
12
|
from maps4fs.generator.component import Component
|
13
|
+
from maps4fs.generator.dem import (
|
14
|
+
DEFAULT_BLUR_RADIUS,
|
15
|
+
DEFAULT_MULTIPLIER,
|
16
|
+
DEFAULT_PLATEAU,
|
17
|
+
)
|
13
18
|
from maps4fs.generator.path_steps import DEFAULT_DISTANCE, PATH_FULL_NAME, get_steps
|
14
19
|
from maps4fs.generator.tile import Tile
|
15
20
|
from maps4fs.logger import timeit
|
16
21
|
|
17
22
|
RESIZE_FACTOR = 1 / 4
|
18
23
|
SIMPLIFY_FACTOR = 10
|
19
|
-
FULL_RESIZE_FACTOR = 1 /
|
24
|
+
FULL_RESIZE_FACTOR = 1 / 8
|
20
25
|
FULL_SIMPLIFY_FACTOR = 20
|
21
26
|
|
22
27
|
|
@@ -58,9 +63,9 @@ class Background(Component):
|
|
58
63
|
logger=self.logger,
|
59
64
|
tile_code=path_step.code,
|
60
65
|
auto_process=False,
|
61
|
-
blur_radius=self.kwargs.get("blur_radius"),
|
62
|
-
multiplier=self.kwargs.get("multiplier",
|
63
|
-
plateau=self.kwargs.get("plateau",
|
66
|
+
blur_radius=self.kwargs.get("blur_radius", DEFAULT_BLUR_RADIUS),
|
67
|
+
multiplier=self.kwargs.get("multiplier", DEFAULT_MULTIPLIER),
|
68
|
+
plateau=self.kwargs.get("plateau", DEFAULT_PLATEAU),
|
64
69
|
)
|
65
70
|
|
66
71
|
# Update the origin for the next tile.
|
maps4fs/generator/dem.py
CHANGED
@@ -15,6 +15,7 @@ from maps4fs.generator.component import Component
|
|
15
15
|
SRTM = "https://elevation-tiles-prod.s3.amazonaws.com/skadi/{latitude_band}/{tile_name}.hgt.gz"
|
16
16
|
DEFAULT_MULTIPLIER = 1
|
17
17
|
DEFAULT_BLUR_RADIUS = 35
|
18
|
+
DEFAULT_PLATEAU = 0
|
18
19
|
|
19
20
|
|
20
21
|
# pylint: disable=R0903, R0902
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: maps4fs
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.6
|
4
4
|
Summary: Generate map templates for Farming Simulator from real places.
|
5
5
|
Author-email: iwatkot <iwatkot@gmail.com>
|
6
6
|
License: MIT License
|
@@ -30,7 +30,8 @@ Requires-Dist: tifffile
|
|
30
30
|
<p align="center">
|
31
31
|
<a href="#Quick-Start">Quick Start</a> •
|
32
32
|
<a href="#Overview">Overview</a> •
|
33
|
-
<a href="#How-To-Run">How-To-Run</a
|
33
|
+
<a href="#How-To-Run">How-To-Run</a> •
|
34
|
+
<a href="tutorials/FAQ.md">FAQ</a><br>
|
34
35
|
<a href="#Supported-objects">Supported objects</a> •
|
35
36
|
<a href="#Generation-info">Generation info</a> •
|
36
37
|
<a href="#Texture-schema">Texture schema</a> •
|
@@ -429,6 +430,9 @@ To create a basic map, you only need the Giants Editor. But if you want to creat
|
|
429
430
|
2. [Blender](https://www.blender.org/download/) - the open-source 3D modeling software that you can use to create models for the Farming Simulator.
|
430
431
|
3. [Blender Exporter Plugins](https://gdn.giants-software.com/downloads.php) - the official plugins for exporting models from Blender to i3d format (the format used in the Farming Simulator).
|
431
432
|
4. [QGIS](https://qgis.org/download/) - the open-source GIS software that you can use to obtain high-resolution satellite images for your map.
|
433
|
+
5. [CompressPngCom](https://www.compresspng.com/) - the online tool to compress the PNG images. May be useful to reduce the size of the satellite images.
|
434
|
+
6. [AnyConv](https://anyconv.com/png-to-dds-converter/) - the online tool to convert the PNG images to the DDS format. You'll need this format for the textures, icons, overview and preview images.
|
432
435
|
|
433
436
|
## Bugs and feature requests
|
437
|
+
➡️ Please, before creating an issue or asking some questions, check the [FAQ](tutorials/FAQ.md) section.<br>
|
434
438
|
If you find a bug or have an idea for a new feature, please create an issue [here](https://github.com/iwatkot/maps4fs/issues) or contact me directly on [Telegram](https://t.me/iwatkot) or on Discord: `iwatkot`.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
maps4fs/__init__.py,sha256=da4jmND2Ths9AffnkAKgzLHNkvKFOc_l21gJisPXqWY,155
|
2
2
|
maps4fs/logger.py,sha256=8oZzAKJllilYrVp452LX0zx-dNFwpS6UngbTrI6KfwA,2148
|
3
3
|
maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
|
4
|
-
maps4fs/generator/background.py,sha256=
|
4
|
+
maps4fs/generator/background.py,sha256=lWCGOmY8kEgrA0r2pyJhQVIkwowhUiDl4vIAakK8DbU,13162
|
5
5
|
maps4fs/generator/component.py,sha256=ZEDjChPnvqAsgnBu2f2YBOlwGOlfax4VaAYBcJerLIQ,10684
|
6
6
|
maps4fs/generator/config.py,sha256=ZO5BWDU-S3p0-ndKDSFa8Oin3YcYy0iH8B4lqEA_07Q,4275
|
7
|
-
maps4fs/generator/dem.py,sha256=
|
7
|
+
maps4fs/generator/dem.py,sha256=A1BWTcAhCacUq6YfQzeUw3I7kvZEey4FTwEFUZTS518,15240
|
8
8
|
maps4fs/generator/game.py,sha256=94HjPNOyy6XSSOnBp-uxrkBglKyC-X3ULIrrucfdlKw,6825
|
9
9
|
maps4fs/generator/i3d.py,sha256=UuQiQRusPQ2f6PvGKxJ_UZeXsx3uG15efmy8Ysnm3F8,3597
|
10
10
|
maps4fs/generator/map.py,sha256=v8OOLmhAkgqq64tQgEDbV6DmbgOVm3NXJBDDy0nJf60,4226
|
@@ -12,8 +12,8 @@ maps4fs/generator/path_steps.py,sha256=yeN6hmOD8O2LMozUf4HcQMIy8WJ5sHF5pGQT_s2Ff
|
|
12
12
|
maps4fs/generator/qgis.py,sha256=vhV-EwZKK-p1qEV-2H_yckuktx8ezlCMnmJJfUt1HGI,6091
|
13
13
|
maps4fs/generator/texture.py,sha256=CwaXZfAG4e3D3YR7yVR2MC677EHpbUWTboCS3G6jkhk,17723
|
14
14
|
maps4fs/generator/tile.py,sha256=3vmfjQiPiiUZKPuIo5tg2rOKkgcP1NRVkMGK-Vo10-A,2138
|
15
|
-
maps4fs-0.9.
|
16
|
-
maps4fs-0.9.
|
17
|
-
maps4fs-0.9.
|
18
|
-
maps4fs-0.9.
|
19
|
-
maps4fs-0.9.
|
15
|
+
maps4fs-0.9.6.dist-info/LICENSE.md,sha256=-JY0v7p3dwXze61EbYiK7YEJ2aKrjaFZ8y2xYEOrmRY,1068
|
16
|
+
maps4fs-0.9.6.dist-info/METADATA,sha256=bN9zgHNLj9Wn5lRlRH13yWSmxuix875FsebFhzqeS-E,24635
|
17
|
+
maps4fs-0.9.6.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
18
|
+
maps4fs-0.9.6.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
|
19
|
+
maps4fs-0.9.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|