Jump to content

Export/import of height maps RUS and English in spoilers


photo

Recommended Posts

И так, чтобы внести некую ясность, в этом топике я объясню и приведу примеры того, как наилучшим образом проводить экспорт карты высот (height map) из таких генераторов ландшафтов как World Machine, World Creator2 и Quadspinner Gaea. А так же импорт данных высот в Unigine (принцип работает для любых движков, но в большинстве движков, данные с карты высот "смазываются", что чаще всего не приводит к артефактам связанным с низким разрешением карты высот).

Немного математики ) Пиксель и метр, это не равнозначные величины, но для программы необходимо понимание того, как работает преобразование картинки в ландшафт. Таким образом мы получаем, что 1 пиксель и 1 метр, это (условно) равные величины и информация из 1 пикселя карты высот будет проецировать 1 метр ландшафта. Если у нас 1024м (1,024км) и картинка 8192px, мы получим 8px на каждый метр, но у нас квадратные КМ, отсюда площадь 1024*1024=1 048 576‬ метров и картинка квадратная 8192*8192=67 108 864‬px, и Если поделить px/m, мы получим 64px в 1 метре, т.е. плотность выше в 64 раза нежели 1:1 и так далее. 

Spoiler

So, to bring some clarity, in this topic I will explain and give examples of how in the best way you can export height maps from such landscape generators as World Machine, World Creator2, and Quadspinner Gaea. Along with an import of height data into Unigine (the principle works for any engines, but in most engines, data from the height map is "greased", which most often does not lead to artifacts related to the low resolution of the height map).

A Little bit of math:) Pixel and meter, these are not equivalent values, but the program needs an understanding of how the conversion of images to landscape works. Thus, we get that 1 pixel and 1 meter, these are (conditionally) equal values and information from 1 pixel of the height map will project 1 meter of terrain. If we have 1024m (1,024km) and a picture of 8192px, we get 8px per meter, but we have square CMs, hence the area is 1024 * 1024 = 1,048,576 meters and the square picture is 8192 * 8192 = 67 108 864px, and if you divide the px / m, we get 64px in 1 meter, i.e. the density is 64 times higher than 1: 1 and so on.

И так приступим...

Spoiler

So, let us begin…

World Creator 2

World_Creator_2.4_export.thumb.jpg.28524b9f93efa5b40ac59ca7c2138ba1.jpg

1. Terrain size, название говорит само за себя. Есть несколько пресетов они служат для удобства и корректного восприятия масштабов относительно игровых масштабов. Значення указаны в метрах, что упрощает работу, т.к. в Unigine метрика тоже в метрах. Но поехали дальше. В поле с размерами Terrain вы можете выставить кастомные значения вручную вбив нужные вам размеры.

2. Precision (точность) этот параметр дает вам возможность делать пиксели более плотными относительно друг друга или менее плотными, что качественно сказывается на результате. Надо учесть, что высокие значения приведут к тому, что выходной файл будет большого размера. Так же при вводе кастомного значения в поле 1, "Точность" будет пропорциональна тому значению, которое вы ввели -> 4000m при плотности сетки 1/2 будет равна 8000px и так далее.

На скриншоте снизу представлены настройки Terrain для 1024м и разрешении карты высот 8192px.

1. Размер Terrain в метрах в это поле вы вводите значение, которое указывали в Terrain Size.

2.Current Data Density указывает на отношение между метрами и пикселями, т.е. 1024m/8192px=0,125m/px При таких значениях плотность пикселя на 1 метр будет 8.

3.Resolution, этот параметр необходим для того, чтобы программа понимала какого разрешения карту высот вы используете. Чаще хватает и автоматического распознавания, но бывает необходимость вводить данные вручную.

Spoiler

1. Terrain size, the name speaks for itself. There are several presets, they serve for comfort and the correct perception of scales relative to the game scales. Values are indicated in meters, which simplifies the work, as in Unigine, the metric is also in meters. But let’s go. In the field with Terrain size, you can set custom values manually by driving the sizes you need.

2. Precision - this parameter allows you to make pixels denser relative to each other or less dense, which qualitatively affects the result. Please note that high values will cause the output file to be large. Also, when entering a custom value in field 1, "Accuracy" will be proportional to the value you entered -> 4000m with a grid density of 1/2 will be equal to 8000px and so on.

 The screenshot below shows the Terrain settings for 1024m and a resolution of the height map of 8192px.

 1. Terrain size (in meters) in this box you enter the value that was indicated in Terrain Size.

2. Current Data Density indicates the connection between meters and pixels, i.e. 1024m / 8192px = 0.125m / px. With these values, the pixel density per meter will be 8.

3. Resolution, this parameter is necessary for the program to understand what resolution you use the height map of. More often, automatic recognition is enough, but sometimes there is a need to enter data manually.

 

 

 

 

 

Editor_x64_HQL.thumb.png.8cf669d667fbc80db62f28da5c7910fa.png

1024m_8192px.thumb.jpg.f330337ab97c4f4d5be209fef893370b.jpg

На этом скриншоте представлен террейн 1024m*8192px (This screenshot shows the Terrain 1024m*8192px)8192m_8192px.thumb.jpg.e3d19a1c30e699338f89db6aaea6ce0f.jpg

На этом скриншоте представлен террейн 8192m*8192px (This screenshot shows the Terrain 8192m*8192px).

 

Quadspinner GAEA

Gaea_4096_4096.thumb.png.b439e37c141d67786e77ea82238c0c48.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

В GAEA немного иначе устроена система создания Terrain. Если в кратце, то визуально вы не увидите насколько большой или маленький у вас мир, лишь в настройках Build (1), перейдя в нижнюю вкладку (3), вы сможете выставлять значения размеров, как высоты, так и площади поверхности. Показатель Real scale информирует вас о том же, о чем Current Data Density. В остальном процедура та же.

Spoiler

GAEA has a slightly different Terrain creation system. In short, visually you will not see how big or small your world is, only in the Build settings (1), by going to the bottom tab (3), you can set the dimensions, both height and surface area. The Real scale indicator informs you the same thing, what Current Data Density is about. The rest of the procedure is the same.

Terrain Scale

Editor_x64_4096m_4096px.thumb.png.abb2baf5fcf0d6c79afe146289302a64.png

И ниже пример

frame_0000.thumb.jpg.3f244efee5f487f936e04f36f34b97ff.jpg

 

World machine

World_Machine64_16dxSXG07W.thumb.png.2ea82b4c34f3b1a2796192d4c2272796.png

1. В данном поле вы устанавливаете размеры рабочей области своего террейна.

2. Разрешение карты высот для террейна(можно вводить кастомные значения)

3. Плотность метров умещаемых в пиксель.

Ниже примеры с равными значениями и не равными.

Spoiler

1. In this box you set the dimensions of the working area of your terrane.

2. Resolution of the height map for terrane (you can enter custom values)

3. The density of meters fit in a pixel.

Below are the examples with equal and non equal values

Editor_x64_VeNveKlqRW.thumb.png.f188f22112c7dde43389ab3b651d7b8f.png

Editor_x64_ivBZ9L1Sc3.thumb.png.da7d03129619b76efe328316b13cd417.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1024m*4096px

1024m4096px.thumb.jpg.59a73149df562d0cd4a772f69fb00057.jpg

4096m*4096px

4096m4096px.thumb.jpg.6ef1293bb77fd64ac8b0d4b164d62d92.jpg

* От себя хочу добавить, что формат EXR выдает более приемлемый результат чем PNG, по крайней мере исходя из моих опытов. Но Gaea не дает возможности выводить результата в EXR. 

Успехов вам в создании виртуальных миров ) и смотрите наши стримы и туторы Стримы и туторы от моего товарища Александра Фомичева

*For the translation of articles into English special thanks to Aline Unguryanova.

Spoiler

* Personally, I want to add that the EXR format produces a more acceptable result than PNG, at least based on my experiences. But Gaea makes it impossible to display the result in EXR.

I wish you only the success in the virtual world’s creation:) And, please, watch our streams and guides Streams and guides from my friend Alexander Fomichev.

 

Edited by unguryanov.igor
  • Like 10
Link to comment
×
×
  • Create New...