تخطى الى المحتوى
أعمال الشغب

أعمال الشغب

  • بيت
  • أخبار
  • خطوط إرشاد
  • أدلة الفيديو
  • ملاحظات التصحيح
  • بلغ عن سوء معاملة
  • تبديل شكل البحث

العمال & Resources Soviet Republic – How to Create Maps With Satellite Imagery

نشر على 01/18/2023 بواسطة roy.bos لا تعليقات على العمال & Resources Soviet Republic – How to Create Maps With Satellite Imagery
  • عنوان: العمال & موارد: الجمهورية السوفيتية
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
Information about Workers & موارد: Soviet Republic is still incomplete. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

Learn how to create high-res textures from satellite imagery and import them into the game.

Finding a nice area

Arguably the most difficult part is finding the right area to get a texture from.

  • The area should be 20 by 20 كيلومترات, in order to get a 1:1 حجم.
  • It should be at least ~25 degrees from the pole, as the polar regions have poor data quality.
  • It should not be too mountainous, as it will be hard to get good height maps as well.
  • It should be very rural in order to avoid lots of houses/roads in the texture.
  • As the script will use Bing maps to get the texture, the area should have high quality textures on Bing maps. Look out for seams, where you can see two images were stitched together.
  • Areas with water at different heights are hard to get right in the game, although you could resolve this by editing the height map with a photo editor later on.

Creating the texture

  • The code in this GitHub repo can be used to create a high-res satellite image. It downloads tiles from Bing maps and stitches them together.
  • If you’re unfamiliar with git, you can click on “code” and download it as a zip. Unzip it in any directory you want.
  • To run the script, you need Python 3. You can download that manually from هنا, or use a package manager like pip.
  • Open the command line. On Windows, press Start and search for “cmd”.
  • Navigate to the directory where you placed the code. على سبيل المثال,
cd Downloads\Satellite-Aerial-Image-Retrieval-Master
  • Run the command
python3 aerialImageRetrieval.py lat1, lon1, lat2, lon2

where (lat1, lon1) is the latitude and longitude of the upper-left coordinate, و (lat2, lon2) is the latitude and longitude of the lower-right coordinate.

  • The final image will be in the output folder.

Creating the height map

للأسف, I could not find a way to download heightmaps using the same method. But you can download the height map from various sources, such as the Tangram heightmapper. It provides a reasonable resolution for nearly any place on Earth.

Look for the place and make sure the entire region is visible.

If using Tangram, set render multiplier to about 4 and click “render” to generate a stitched image.

Matching the height map and texture

The next bit is a bit tricky. We have a height map and a texture, but they’re not aligned yet. We’ll need to crop them correctly first.

  • Open an image editor of your choice. I use GIMP.
  • Open the texture image and crop the square area that you want to use.
  • Open the height map as a layer.
  • التالي, we need to mirror the image vertically in order to get the correct orientation in the game.
  • Hide the height map layer and export/overwrite the texture image. Save it as a .png.
  • Unhide the height map. Then select the texture layer and resize it to the approximate size of the height map.
  • الآن, align both images using the move and scale tools. You can change the opacity of the top layer to see if they are aligned. Once they are aligned, you can hide the texture.
  • If you used the Tangram height mapper, the height map will use 8-bit integer. This is not precise enough. Make sure the precision of the image/layer is set to at least 16 bit integer. Then use the blur tool at a scale of at least 1.5-2 pixels.
  • Save the height map as a png.

floatLeft

Importing it into the game

  • Open the terrain editor
  • Use the in-game tool to import the height map.
  • Save the map. Exit the game (you can leave it running in the background).
  • Open the map folder. This should be located in a folder like
ج:\ملفات البرنامج (x86)\Steam\steamapps\common\SovietRepublic\media_soviet\save_terraineditor
  • Open script.ini, set $TILESIZE1 to 1.000000 and save. This makes sure that the texture is not repeated.
  • Open material.mtl. The value behind $TEXTURE 5 is the relative path to the texture image, starting from mediasoviet. The default texture is grass, but we want to refer to our own image here. You can place your texture image temporarily in the tiles_normal folder and set $TEXTURE 5 to tiles_normal/yourtexture.png. احفظ الملف.
  • Reload the save. You should see the texture appear now.
  • Of course edit the map, or the texture if you feel the colors are off.

Uploading to the workshop

للأسف, you cannot include images when uploading a map to the workshop. لذلك, we need to upload our map texture as a building texture.

  • في اللعبة, create a new building texture.
  • Open the newest folder in the mediasoviet\workshop_wip folder, and place your texture image here. Copy the item ID of the folder.
  • في اللعبة, save the workshop item. It should now start uploading the image to the workshop. Subscribe to the item.
  • In the material.mtl file in your map save, set $TEXTURE 5 ل
../../../workshop/content/784150/[item ID]/yourtexture.png
  • Do the same for material_fall and material_winter (خياري). This makes sure your texture does not change. بالطبع, if you have too much time, you could use separate images for each season.
  • If you open the map, you should still see the texture. Upload it to the workshop. Set both items to public, and you’re done!

هذا كل ما نشاركه اليوم من أجل هذا العمال & موارد: الجمهورية السوفيتية مرشد. تم إنشاء هذا الدليل وكتابته في الأصل بواسطة roy.bos. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.

إذا كنت تعتقد أن أيًا من محتويات هذا الموقع ينتهك حقوقك, بما في ذلك حقوق الملكية الفكرية الخاصة بك, يرجى الاتصال بنا على الفور باستخدام نموذج الاتصال الخاص بنا.
خطوط إرشاد العلامات:العمال & موارد: الجمهورية السوفيتية

آخر الملاحة

المنشور السابق: Father’s Day 100% دليل الإنجاز
المشاركة التالية: Swords of Legends Online Residence Basics Guide

ترك الرد إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني. تم وضع علامة على الحقول المطلوبة *

  • عنوان: العمال & موارد: الجمهورية السوفيتية
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
Information about Workers & موارد: Soviet Republic is still incomplete. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

تنصل

ويستمد كل محتوى استشهد من مصادرها الخاصة. إذا كنت تعتقد أننا استخدمنا المحتوى الخاص بك دون إذن, تأكد من الوصول إلينا وسنأخذ الأمر على محمل الجد.
  • معلومات عنا
  • اتصل بنا
  • سياسة الخصوصية
  • شروط الخدمة

حقوق النشر © 2025 أعمال الشغب.

مشغل بواسطة PressBook News وورد موضوع