Создание мини-карты

Материал из CryWiki Russia

(Различия между версиями)
Перейти к: навигация, поиск
Строка 1: Строка 1:
{{В_процессе_перевода}}<br>  
{{В_процессе_перевода}}<br>  
-
== Как создать мини-карту ==
+
== Создание мини-карты  ==
-
=== Введение ===
+
=== Введение ===
-
В этом пошаговом руководстве описано создание миникарты с помощью Cryengine editor и Photoshop.<br>  
+
В этом пошаговом руководстве описано создание миникарты с помощью редактора Sandbox и программы Adobe Photoshop.<br>  
[[Image:Sandbox MiniMapTutorial image001.jpg]]  
[[Image:Sandbox MiniMapTutorial image001.jpg]]  
-
=== Создание мини-карты ===
+
=== Создание мини-карты ===
-
==== Начало работы ====
+
==== Начало работы ====
-
Для создания миникарты вам предётся редактировать файл '''MapScreenshotSettings.xml''' с помощью '''Notepad'''. Этот файл находится в папке '''Editor'''.  
+
Для создания мини-карты вам придётся редактировать файл '''MapScreenshotSettings.xml''' с помощью '''"Блокнота"'''. Этот файл находится в папке '''Editor'''.  
-
Многие из этих параметров могут быть изменены для достижения желаемого результата , перед редактированием убедитесь что вы сделали резервную копию файла '''MapscreenshotSettings.xml''' .  
+
Многие из этих параметров могут быть изменены для достижения желаемого результата, перед редактированием убедитесь что вы сделали резервную копию файла '''MapscreenshotSettings.xml''' .  
-
'''&lt;settings&gt;''' <br> '''&lt;e_fog value="0" /&gt;''' <br> '''&lt;<u></u>e_shadows value="0" /&gt;''' <br> '''&lt;r_PostProcessEffects value="0" /&gt;''' <br> '''&lt;r_HDRRendering value="0" /&gt;''' <br> '''&lt;e_detail_materials value="1" /&gt;''' <br> '''&lt;e_gsm_range_step value="20" /&gt;''' <br> '''&lt;e_gsm_lod_num value="3" /&gt;''' <br> '''&lt;e_gsm_range value="20" /&gt;''' <br> '''&lt;e_gsm_cache value="0" /&gt;''' <br> '''&lt;e_detail_materials_view_dist_z value="256" /&gt;''' <br> '''&lt;e_vegetation_sprites_distance_ratio value="4" /&gt;''' <br> '''&lt;e_shadows_cast_view_dist_ratio value="1" /&gt;''' <br> '''&lt;r_EyeAdaptationFactor value="0" /&gt;''' <br> '''&lt;r_EyeAdaptationBase value="1" /&gt;''' <br> '''&lt;r_HDRRendering value="1" /&gt;''' <br> '''&lt;e_lod_ratio value="4" /&gt;''' <br> '''&lt;e_clouds value="0" /&gt;''' <br> '''&lt;e_water_ocean value="1" /&gt;''' <br> '''&lt;e_particles value="0" /&gt;''' <br> '''&lt;e_view_dist_ratio value="800" /&gt;''' <br> '''&lt;e_hw_occlusion_culling_water value="0" /&gt;''' <br> '''&lt;/settings&gt;''' <br>  
+
<source lang="xml"><settings>
 +
<e_fog value="0" />
 +
<e_shadows value="0" />
 +
<r_PostProcessEffects value="0" />
 +
<r_HDRRendering value="0" />
 +
<e_detail_materials value="1" />
 +
<e_gsm_range_step value="20" />
 +
<e_gsm_lod_num value="3" />
 +
<e_gsm_range value="20" />
 +
<e_gsm_cache value="0" />
 +
<e_detail_materials_view_dist_z value="256" />
 +
<e_vegetation_sprites_distance_ratio value="4" />
 +
<e_shadows_cast_view_dist_ratio value="1" />
 +
<r_EyeAdaptationFactor value="0" />
 +
<r_EyeAdaptationBase value="1" />
 +
<r_HDRRendering value="1" />
 +
<e_lod_ratio value="4" />
 +
<e_clouds value="0" />
 +
<e_water_ocean value="1" />
 +
<e_particles value="0" />
 +
<e_view_dist_ratio value="800" />
 +
<e_hw_occlusion_culling_water value="0" />
 +
</settings></source>  
-
==== Шаг #1 ====
+
==== Шаг #1 ====
-
Первое откройте свой уровень в редакторе для которого хотите создать мини-карту.  
+
Первое, откройте свой уровень для которого хотите создать мини-карту, в редакторе.  
-
==== Шаг #2 ====
+
==== Шаг #2 ====
-
Затем мы откроем функции мини-карты; Они расположены в '''[[Sandbox RollUpBar|RollUpBar]]''' , в панели '''Terrain'''.  
+
Затем мы откроем функции мини-карты; они расположены в '''[[Sandbox RollUpBar|RollUpBar]]''', в панели '''Terrain'''.  
[[Image:Sandbox MiniMapTutorial image002.jpg]]  
[[Image:Sandbox MiniMapTutorial image002.jpg]]  
-
Теперь нажмём кнопку minimap появится большой зелёный прямоугольник и маленький синий квадрат “выбора” иногда он появляется в координатах карты 0,0,0.<br> [[Image:Sandbox MiniMapTutorial image003.jpg]]  
+
Теперь нажмём кнопку '''Mini Map''', появится большой зелёный прямоугольник и маленький синии квадрат “выбора”, иногда он появляется в координатах карты 0,0,0.<br> [[Image:Sandbox MiniMapTutorial image003.jpg]]  
-
To move the minimap bounding box, click and hold the right mouse button and move the blue selection box to the spot where you want to create your minimap.
+
Чтобы переместить ограничивающую рамку мини-карты, щелкните и удерживайте правую кнопку мыши, и переместите синий квадрат выбора к точке, где вы хотите создать вашу мини-карту.  
-
==== Шаг #3 ====
+
==== Шаг #3 ====
-
After you have moved the box, press the '''Use New Mini Map Area''' button to update the minimap bounding box to its new location.  
+
После перемещения квадрата, нажмите кнопку '''Use New Mini Map Area'''чтобы обновить ограничивающую рамку мини-карту, и переместить её в новое место.  
-
The green bounding box shows the area that will be made into a minimap image, adjusting the camera height will therefore change the size of it.  
+
Зелёная ограничивающая рамка показывает область, которая будет превращена в мини-карту, отрегулируйте высоту камеры, изменив её размер.  
-
You will have to disable 'ocean' in the render settings of the rollup bar to see the green bounding box if those parts of the map are underwater. Re-enable this before generating minimap.  
+
Вы можете отключить океан в настройках рендера ('''RollupBar→Render Settings''') чтобы увидеть зелёную ограничивающую рамку, если та часть карты находится под водой. Включите его после создания мини-карты.  
-
It is good to set the 'Camera Height' 20-50 metres above the terrain height so the green bounding box is easily located around the blue square. Be aware of your terrain height if the green box does not show.  
+
Отличным вариантом настройки высоты камеры ('''''Camera Height''''') является 20-50 метров над высотой ландшафта, так зелёная ограничивающая рамка, с легкостью расположиться вокруг синего квадрата. Вспомните о высоте вашего ландшафта, если зеленая рамка не отображается.  
-
To change the '''Camera Height''' , put the preferred height into the input box and press '''Use New Mini Map Area'''.  
+
Чтобы изменить высоту камеры ('''''Camera Height'''''), укажите предпочтительную высоту в поле ввода и нажмите '''Use New Mini Map Area'''.  
-
Adjusting the '''Resolution''' in the minimap properties will increase the size of the minimap image that the Editor generates, for example choosing a resolution of 2048 will give you a minimap image of 2048x2048 pixels.  
+
Регулировка '''Resolution (''разрешение'')''' в свойствах мини-карты увеличит размер конечного изображения, которое будет создано редактором, например, выбор разрешения 2048 даст изображения размером 2048x2048 пикселей.  
[[Image:Sandbox MiniMapTutorial image004.gif]]  
[[Image:Sandbox MiniMapTutorial image004.gif]]  
-
==== Шаг #4 ====
+
==== Шаг #4 ====
-
Before going to '''step.5''' , make sure that the minimap bounding box is actually bigger than the actual play area of your map, so that when a player stands on the border of your map he doesn't get cut off on the HUD radar.  
+
Прежде, чем перейти к '''5 шагу''', убедитесь, что ограничивающая рамка миникарты, по размеру превосходит область игрового процесса вашей карты, чтобы игрок, стоя на границе вашей карты, не увидел срез на радаре.
-
This is an important step and rule to keep in mind when creating minimaps, to prevent having to redo your minimap.  
+
Это важный шаг и правило, которое следует помнить при создании мини-карты, для предотвращения необходимости повторного создания вашей мини-карты.
-
==== Шаг #5 ====
+
==== Шаг #5 ====
-
Now, when you';re all set and have selected your '''Camera Height''' , '''Resolution''' and area, be sure to select hexadecimal or even numbers for the '''Camera Height''' , if you know that you will add more detail to the minimap later on, i.e 256, 512, 1024, 2048 etc.  
+
Теперь, когда вы настроили '''высоту камеры,''' '''разрешение''' и область, убедитесь, что выбрана шестнадцатеричная или числовая '''высота камеры'''.<br>
-
You can now go ahead and press the '''Generate [[Sandbox TerrainMinimap|MiniMap]]''' button.  
+
Теперь можете нажимать кнопку '''Generate [[Sandbox TerrainMinimap|MiniMap]]'''.  
-
A quick succession of images will flash in the upper left corner, showing that the editor is creating your minimap; this can take a few minutes depending on the '''Camera Height''' , '''Resolution''' and '''MapScreenshotSettings.xml''' .  
+
Быстрая последовательность изображений начнет мигать в левом верхнем углу, показывая, что редактор создаёт вашу мини-карту, это может занять несколько минут в зависимости от настроек '''Camera Height''', '''Resolution''' <span style="font-weight: bold;">и</span><span style="font-weight: bold;"> </span>'''MapScreenshotSettings.xml''' .  
-
_(Note though that you should only choose to use very large resolutions i.e. 8192 or 16384, if you are running the editor on a very high spec system with a minimum of 8 GB of ram)_
+
{{В_процессе_перевода|Обратите внимание, что вы должны выбирать очень большие разрешения, например, 8192 или 16384, если вы работаете в редакторе на очень мощной машине с не менее 8 Гб оперативной памяти.}}
-
After the editor has finished, your minimap should be placed in '''Game\ScreenShots\Map''' along with the .XML file
+
После того, как редактор завершит создание, ваша мини-карта будет помещена в папку '''Game\ScreenShots\Map''' с XML-файлом.
-
The xml provides the engine with the map coordinates so that the player position is correctly displayed on the minimap.  
+
XML предоставляет движку координаты карты, так, что позиция игрока будет корректно отображается на мини-карте.
-
=== Preparing your minimap ===
+
=== Подготовка вашей мини-карты  ===
==== Шаг #1  ====
==== Шаг #1  ====
-
In Photoshop open up the minimap image file that was just created.  
+
Откройте только что созданную мини-карту в '''Adobe Photoshop'''.  
-
To make sure that your minimap will display correctly in the game you will need to desaturate your image and tweak its levels.  
+
Чтобы убедиться, что ваша мини-карта будет корректно отображаться в игре вам необходимо обесцветить изображение и настроить её уровни.
-
==== Шаг #2 ====
+
==== Шаг #2 ====
-
To desaturate your minimap image go to Image&gt;Adjustments&gt;Desaturate, this will essentially make your minimap black &amp; white.  
+
Чтобы обесцветить ваша мини-карту, перейдите в '''Image→Adjustments→Desaturate''' ('''''Изображение→Коррекция→Обесцветить'''''), это действие сделает вашу мини-карту черно-белой.
-
==== Шаг #3 ====
+
==== Шаг #3 ====
-
Now we'll need to adjust the levels, as a color overlay will be applied on top of the final image, you will need to have some outstanding black and white’s and clear grey tones, the better the levels are adjusted the more details players will be able to recognize.  
+
Теперь нам нужно настроить уровни, так как на вершине конечного изображения будет применяться наложение цвета, поэтому потребуется наличие несколько выдающихся черно-белых и ясных серых тонов, регулируйте уровни чтобы игроки смогли распознать больше деталей.
-
Try to avoid creating completely black areas.  
+
Старайтесь избегать создание полностью черных областей.  
-
To start off, go to Image&gt;Adjustments&gt;Levels, this will open up the “levels” output box.<br> [[Image:Sandbox MiniMapTutorial image005.jpg]] <br> By adjusting the input levels you can create a well contrasted image.  
+
Чтобы начать, перейдите в '''Image→Adjustments→Levels '''('''''Изображение→Коррекция→Уровни'''''), появится диалоговое окно «Уровни».<br> [[Image:Sandbox MiniMapTutorial image005.jpg]] <br> Регулируя входные уровни ('''''Input Levels''''') вы можете создать контрастное изображение.
-
==== Шаг #4 ====
+
==== Шаг #4 ====
-
Now Go to File&gt;Save As, this will open up the save as window, under formats choose the crytifplugin <br> [[Image:Sandbox MiniMapTutorial image006.jpg]] <br> Go ahead and press '''save''' now as this will start the '''crytifplugin''' , which has a wide range of settings and options, but we only need to use a few.  
+
Перейдите в '''File→Save As '''('''''Файл→Сохранить как...''''', появится окно сохранения, в свитке '''Format&nbsp;'''('''''Тип файлов''''') выберите '''CryTIFPlugin'''.<br> [[Image:Sandbox MiniMapTutorial image006.jpg]] <br> Нажмите '''Save&nbsp;'''('''''Сохранить'''''), теперь появится окно '''CryTIFPlugin''', которое имеет широкий спектр настроек и параметров, но нам необходимо использовать только некоторые из них.
-
==== Шаг #5 ====
+
==== Шаг #5 ====
-
First, change the Preset option from its default (diffuse_highQ) to '''Minimap''' . <br> [[Image:Sandbox MiniMapTutorial image007.jpg]] <br>  
+
Первое, измените параметр '''Preset''' ('''''Предустановка''''') с стандартного значения ('''''Diffuse_highQ''''') <span style="font-weight: bold;">на</span><span style="font-weight: bold;"> </span>'''Minimap''' . <br> [[Image:Sandbox MiniMapTutorial image007.jpg]] <br>  
-
==== Шаг #6 ====
+
==== Шаг #6 ====
-
Next go to the '''Advanced''' pane and check to make sure that '''Auto Optimize file''' is unchecked.  
+
Перейдите на вкладку '''Advanced&nbsp;'''('''''Расширенные''''') и убедитесь что галочка с '''Auto Optimize file&nbsp;'''('''''Авто-оптимизация файла''''') снята.  
[[Image:Sandbox MiniMapTutorial image008.jpg]] <br> You can now go ahead and press '''OK''' , '''crytifplugin''' will now go ahead and create a .TIF file. Don't worry about the end file size. The Resource Compiler will automatically create a .dds file for the target platform, specified in its settings.  
[[Image:Sandbox MiniMapTutorial image008.jpg]] <br> You can now go ahead and press '''OK''' , '''crytifplugin''' will now go ahead and create a .TIF file. Don't worry about the end file size. The Resource Compiler will automatically create a .dds file for the target platform, specified in its settings.  
Строка 105: Строка 127:
'''IMPORTANT''' '''you do not need the Cry Tif plugin for Photoshop to create a minimap.''' <br> '''Just use the .dds plugin from Nvidia to export the minimaps as DXT1 from Photoshop.'''  
'''IMPORTANT''' '''you do not need the Cry Tif plugin for Photoshop to create a minimap.''' <br> '''Just use the .dds plugin from Nvidia to export the minimaps as DXT1 from Photoshop.'''  
-
==== Шаг #7 ====
+
==== Шаг #7 ====
The minimap is now ready to be used, select the .TIF file and the xml file that was created when you made your minimap and copy both files to your map folder.  
The minimap is now ready to be used, select the .TIF file and the xml file that was created when you made your minimap and copy both files to your map folder.  
-
If you already have an xml file located in your map folder, you can merely open it with '''notepad''' .  
+
If you already have an xml file located in your map folder, you can merely open it with '''notepad'''.  
Inside the xml file you will need to edit the numbers in the first line that shows the '''startX''' , '''startY''' , '''endX''' and '''endY''' , exchange the numbers here with the numbers located in your minimap xml file.<br> [[Image:Sandbox MiniMapTutorial image009.jpg]] <br>  
Inside the xml file you will need to edit the numbers in the first line that shows the '''startX''' , '''startY''' , '''endX''' and '''endY''' , exchange the numbers here with the numbers located in your minimap xml file.<br> [[Image:Sandbox MiniMapTutorial image009.jpg]] <br>  
Строка 121: Строка 143:
The minimap is now visible in your map.  
The minimap is now visible in your map.  
-
=== Adding detail to your minimap ===
+
=== Adding detail to your minimap ===
This process will require you to create several smaller pieces of your minimap and then later putting them together using Photoshop.  
This process will require you to create several smaller pieces of your minimap and then later putting them together using Photoshop.  
Строка 129: Строка 151:
Before starting, make sure that you've got the '''NVIDIA Texture Tools''' installed in Photoshop. ([http://developer.nvidia.com/object/dds_utilities_legacy.html http://developer.nvidia.com/object/dds_utilities_legacy.html])  
Before starting, make sure that you've got the '''NVIDIA Texture Tools''' installed in Photoshop. ([http://developer.nvidia.com/object/dds_utilities_legacy.html http://developer.nvidia.com/object/dds_utilities_legacy.html])  
-
==== Шаг #1 ====
+
==== Шаг #1 ====
Now using Photoshop, open up your minimap .DDS file, the NVIDIA tools will recognize it and open up this property window, here you can just press '''OK''' .  
Now using Photoshop, open up your minimap .DDS file, the NVIDIA tools will recognize it and open up this property window, here you can just press '''OK''' .  
Строка 139: Строка 161:
[[Image:Sandbox MiniMapTutorial image012.jpg]]  
[[Image:Sandbox MiniMapTutorial image012.jpg]]  
-
==== Шаг #2 ====
+
==== Шаг #2 ====
Go back to the Editor, and select the minimap function.  
Go back to the Editor, and select the minimap function.  
Строка 146: Строка 168:
You will also need to change the lines listed here below, in the '''MapScreenshotSettings.xml''' , these settings will raise the quality and amount of objects visible.  
You will also need to change the lines listed here below, in the '''MapScreenshotSettings.xml''' , these settings will raise the quality and amount of objects visible.  
 +
<source lang="xml"><e_detail_materials value="100000" />
 +
<e_detail_materials_view_dist_z value="1000000" />
 +
<e_lod_ratio value="0" />
 +
<e_view_dist_ratio value="100000" /></source>
-
&lt;e_detail_materials value="100000" /&gt; &lt;e_detail_materials_view_dist_z value="1000000" /&gt; &lt;e_lod_ratio value="0" /&gt; &lt;e_view_dist_ratio value="100000" /&gt;
 
After you've edited the '''MapScreenshotSettings.xml''' you can go ahead and press '''Generate [[Sandbox TerrainMinimap|MiniMap]]''' , this will again create a minimap image file and an xml file, the xml file you can safely delete as there's no need for it.  
After you've edited the '''MapScreenshotSettings.xml''' you can go ahead and press '''Generate [[Sandbox TerrainMinimap|MiniMap]]''' , this will again create a minimap image file and an xml file, the xml file you can safely delete as there's no need for it.  
-
==== Шаг #3 ====
+
==== Шаг #3 ====
Now go back to Photoshop and open up the minimap file the editor just created.  
Now go back to Photoshop and open up the minimap file the editor just created.  
Строка 159: Строка 184:
Go to your minimap that you want to add detail to, under Edit&gt;Paste and place in the copied image.  
Go to your minimap that you want to add detail to, under Edit&gt;Paste and place in the copied image.  
-
==== Шаг #4 ====
+
==== Шаг #4 ====
After you've done all that its time to resize the image you just pasted onto the minimap.  
After you've done all that its time to resize the image you just pasted onto the minimap.  
Строка 169: Строка 194:
<br> [[Image:Sandbox MiniMapTutorial image013.jpg]]  
<br> [[Image:Sandbox MiniMapTutorial image013.jpg]]  
-
==== Шаг #5 ====
+
==== Шаг #5 ====
When you've successfully scaled your minimap piece to its correct size, you'll need to move it to its correct position on the original minimap, remember to double check if it really fits correctly.  
When you've successfully scaled your minimap piece to its correct size, you'll need to move it to its correct position on the original minimap, remember to double check if it really fits correctly.  

Версия 19:35, 3 июня 2011

Эта страница страница помечена как находящиеся в процессе перевода.


Содержание

Создание мини-карты

Введение

В этом пошаговом руководстве описано создание миникарты с помощью редактора Sandbox и программы Adobe Photoshop.

Sandbox MiniMapTutorial image001.jpg

Создание мини-карты

Начало работы

Для создания мини-карты вам придётся редактировать файл MapScreenshotSettings.xml с помощью "Блокнота". Этот файл находится в папке Editor.

Многие из этих параметров могут быть изменены для достижения желаемого результата, перед редактированием убедитесь что вы сделали резервную копию файла MapscreenshotSettings.xml .

<settings>
<e_fog value="0" />
<e_shadows value="0" />
<r_PostProcessEffects value="0" />
<r_HDRRendering value="0" />
<e_detail_materials value="1" />
<e_gsm_range_step value="20" />
<e_gsm_lod_num value="3" />
<e_gsm_range value="20" />
<e_gsm_cache value="0" />
<e_detail_materials_view_dist_z value="256" />
<e_vegetation_sprites_distance_ratio value="4" />
<e_shadows_cast_view_dist_ratio value="1" />
<r_EyeAdaptationFactor value="0" />
<r_EyeAdaptationBase value="1" />
<r_HDRRendering value="1" />
<e_lod_ratio value="4" />
<e_clouds value="0" />
<e_water_ocean value="1" />
<e_particles value="0" />
<e_view_dist_ratio value="800" />
<e_hw_occlusion_culling_water value="0" />
</settings>

Шаг #1

Первое, откройте свой уровень для которого хотите создать мини-карту, в редакторе.

Шаг #2

Затем мы откроем функции мини-карты; они расположены в RollUpBar, в панели Terrain.

Sandbox MiniMapTutorial image002.jpg

Теперь нажмём кнопку Mini Map, появится большой зелёный прямоугольник и маленький синии квадрат “выбора”, иногда он появляется в координатах карты 0,0,0.
Sandbox MiniMapTutorial image003.jpg

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

Шаг #3

После перемещения квадрата, нажмите кнопку Use New Mini Map Areaчтобы обновить ограничивающую рамку мини-карту, и переместить её в новое место.

Зелёная ограничивающая рамка показывает область, которая будет превращена в мини-карту, отрегулируйте высоту камеры, изменив её размер.

Вы можете отключить океан в настройках рендера (RollupBar→Render Settings) чтобы увидеть зелёную ограничивающую рамку, если та часть карты находится под водой. Включите его после создания мини-карты.

Отличным вариантом настройки высоты камеры (Camera Height) является 20-50 метров над высотой ландшафта, так зелёная ограничивающая рамка, с легкостью расположиться вокруг синего квадрата. Вспомните о высоте вашего ландшафта, если зеленая рамка не отображается.

Чтобы изменить высоту камеры (Camera Height), укажите предпочтительную высоту в поле ввода и нажмите Use New Mini Map Area.

Регулировка Resolution (разрешение) в свойствах мини-карты увеличит размер конечного изображения, которое будет создано редактором, например, выбор разрешения 2048 даст изображения размером 2048x2048 пикселей.

Sandbox MiniMapTutorial image004.gif

Шаг #4

Прежде, чем перейти к 5 шагу, убедитесь, что ограничивающая рамка миникарты, по размеру превосходит область игрового процесса вашей карты, чтобы игрок, стоя на границе вашей карты, не увидел срез на радаре.

Это важный шаг и правило, которое следует помнить при создании мини-карты, для предотвращения необходимости повторного создания вашей мини-карты.

Шаг #5

Теперь, когда вы настроили высоту камеры, разрешение и область, убедитесь, что выбрана шестнадцатеричная или числовая высота камеры.

Теперь можете нажимать кнопку Generate MiniMap.

Быстрая последовательность изображений начнет мигать в левом верхнем углу, показывая, что редактор создаёт вашу мини-карту, это может занять несколько минут в зависимости от настроек Camera Height, Resolution и MapScreenshotSettings.xml .

Эта страница страница помечена как находящиеся в процессе перевода.


После того, как редактор завершит создание, ваша мини-карта будет помещена в папку Game\ScreenShots\Map с XML-файлом.

XML предоставляет движку координаты карты, так, что позиция игрока будет корректно отображается на мини-карте.

Подготовка вашей мини-карты

Шаг #1

Откройте только что созданную мини-карту в Adobe Photoshop.

Чтобы убедиться, что ваша мини-карта будет корректно отображаться в игре вам необходимо обесцветить изображение и настроить её уровни.

Шаг #2

Чтобы обесцветить ваша мини-карту, перейдите в Image→Adjustments→Desaturate (Изображение→Коррекция→Обесцветить), это действие сделает вашу мини-карту черно-белой.

Шаг #3

Теперь нам нужно настроить уровни, так как на вершине конечного изображения будет применяться наложение цвета, поэтому потребуется наличие несколько выдающихся черно-белых и ясных серых тонов, регулируйте уровни чтобы игроки смогли распознать больше деталей.

Старайтесь избегать создание полностью черных областей.

Чтобы начать, перейдите в Image→Adjustments→Levels (Изображение→Коррекция→Уровни), появится диалоговое окно «Уровни».
Sandbox MiniMapTutorial image005.jpg
Регулируя входные уровни (Input Levels) вы можете создать контрастное изображение.

Шаг #4

Перейдите в File→Save As (Файл→Сохранить как..., появится окно сохранения, в свитке Format (Тип файлов) выберите CryTIFPlugin.
Sandbox MiniMapTutorial image006.jpg
Нажмите Save (Сохранить), теперь появится окно CryTIFPlugin, которое имеет широкий спектр настроек и параметров, но нам необходимо использовать только некоторые из них.

Шаг #5

Первое, измените параметр Preset (Предустановка) с стандартного значения (Diffuse_highQ) на Minimap .
Sandbox MiniMapTutorial image007.jpg

Шаг #6

Перейдите на вкладку Advanced (Расширенные) и убедитесь что галочка с Auto Optimize file (Авто-оптимизация файла) снята.

Sandbox MiniMapTutorial image008.jpg
You can now go ahead and press OK , crytifplugin will now go ahead and create a .TIF file. Don't worry about the end file size. The Resource Compiler will automatically create a .dds file for the target platform, specified in its settings.

IMPORTANT you do not need the Cry Tif plugin for Photoshop to create a minimap.
Just use the .dds plugin from Nvidia to export the minimaps as DXT1 from Photoshop.

Шаг #7

The minimap is now ready to be used, select the .TIF file and the xml file that was created when you made your minimap and copy both files to your map folder.

If you already have an xml file located in your map folder, you can merely open it with notepad.

Inside the xml file you will need to edit the numbers in the first line that shows the startX , startY , endX and endY , exchange the numbers here with the numbers located in your minimap xml file.
Sandbox MiniMapTutorial image009.jpg

Make sure that the MiniMap Filename points to the filename of your new minimap .dds image file.
Sandbox MiniMapTutorial image010.jpg

Instead of putting in .TIF as the file definition you will need to put in .dds instead (the one the Resource Compiler will create from the TIF, or you manually created via the NVIDIA plugin).

(Note if there is no numbers located in the xml file, just copy the whole line from your minimap xml file.)

The minimap is now visible in your map.

Adding detail to your minimap

This process will require you to create several smaller pieces of your minimap and then later putting them together using Photoshop.

This is mostly a process you will have to do if your pc is not able to handle the creation of high resolution minimaps.

Before starting, make sure that you've got the NVIDIA Texture Tools installed in Photoshop. (http://developer.nvidia.com/object/dds_utilities_legacy.html)

Шаг #1

Now using Photoshop, open up your minimap .DDS file, the NVIDIA tools will recognize it and open up this property window, here you can just press OK .

Sandbox MiniMapTutorial image011.jpg

With the minimap opened you can see here on this example below that the quality at 100% is not the best. We'll change that.

Sandbox MiniMapTutorial image012.jpg

Шаг #2

Go back to the Editor, and select the minimap function.

For higher quality it's enough to change Camera Height and keep the resolution to the original minimap, this is important otherwise you will run into issues with image sizes not matching.

You will also need to change the lines listed here below, in the MapScreenshotSettings.xml , these settings will raise the quality and amount of objects visible.

<e_detail_materials value="100000" />
<e_detail_materials_view_dist_z value="1000000" />
<e_lod_ratio value="0" />
<e_view_dist_ratio value="100000" />


After you've edited the MapScreenshotSettings.xml you can go ahead and press Generate MiniMap , this will again create a minimap image file and an xml file, the xml file you can safely delete as there's no need for it.

Шаг #3

Now go back to Photoshop and open up the minimap file the editor just created.

Select the whole image by going to Select>All and select copy under Edit>Copy.

Go to your minimap that you want to add detail to, under Edit>Paste and place in the copied image.

Шаг #4

After you've done all that its time to resize the image you just pasted onto the minimap.

This is where the calculator will come in handy for you, i.e. if your minimap was created with a Camera Height of 512 for example; you preferably generate the smaller minimaps in increments such as 256 or 128 etc.

If you for example generate smaller minimaps with 128, that'll need to be divided by 512 to calculate the scaling percentage (128/512 = 0.25, which equals to 25% scaling.)


Sandbox MiniMapTutorial image013.jpg

Шаг #5

When you've successfully scaled your minimap piece to its correct size, you'll need to move it to its correct position on the original minimap, remember to double check if it really fits correctly.

Repeat steps 2 to 5 as many times as you want to ensure that your minimap has a high level of quality.

And that's it; with a little bit of extra work you will have a very high quality minimap.

См. также