Ru/VBSP: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
(translated a little more)
(Finished general parameters)
Line 12: Line 12:


* конвертирует [[brush|браши]] в полигоны
* конвертирует [[brush|браши]] в полигоны
* генерирует [[visleaf|visleaves]]
* генерирует [[visleaf|листья видимости]]
* генерирует [[detail props]]
* генерирует [[detail props]]
* swallow most [[internal entity|internal entities]] into [[the world]]
* swallow most [[internal entity|internal entities]] into [[the world]]
Line 20: Line 20:
Не смотря на то что результирующий [[BSP]] файл уже может быть использован, он не имеет контроля видимости (низкая производительность) и освещения.
Не смотря на то что результирующий [[BSP]] файл уже может быть использован, он не имеет контроля видимости (низкая производительность) и освещения.


{{bug:ru|<code>.mdl</code> файлы имеющие <code>IDST1</code> заголовок не будут загружаться для VBSP, см. [[VRAD]] баги.}}
{{bug:ru|<code>.mdl</code> файлы имеющие <code>IDST1</code> заголовок не будут загружаться для VBSP, см. баги [[VRAD]].}}


== Синтаксис ==
== Синтаксис ==
Line 34: Line 34:
== Основные параметры ==
== Основные параметры ==


{{Note:ru|<code>-onlyents</code> and <code>-keepstalezip</code> will mark the map as stale by embedding the file stale.txt into the BSP. Loading stale maps in the engine will cause a "This map is not final!!" warning message in the console.}}
{{Note:ru|<code>-onlyents</code> и <code>-keepstalezip</code> пометит карту как "устаревшую" встроив файл stale.txt в ее BSP. При загрузке "устаревших" карт в консоли движка появится предупреждение "This map is not final!!".}}


; <code>-v</code>
; <code>-v</code>
Line 50: Line 50:
: Избавляется от брашей воды.
: Избавляется от брашей воды.
; <code>-low</code>
; <code>-low</code>
: Run as an idle-priority process.
: Запускает как процесс с базовым приоритетом.
; <code>-vproject <directory></code>
; <code>-vproject <directory></code>
: Override the [[VPROJECT]] environment variable.
: Перезаписывает переменную среды [[VPROJECT]].
; <code>-game <directory></code>
; <code>-game <directory></code>
: Определяет папку с файлом <code>gameinfo.txt</code>
: Определяет папку с файлом <code>gameinfo.txt</code>
Line 134: Line 134:
{{SDKTools}}
{{SDKTools}}


[[Category:Level Design]]
[[Category:Level Design]

Revision as of 08:18, 6 June 2018

Template:Otherlang2

Template:Finishtranslation:ru

VBSP — это инструмент, который компилирует сырой VMF файл в файл формата Binary Space Partition. Обычно за ним следуют VVIS и VRAD.

Что делает VBSP:

Не смотря на то что результирующий BSP файл уже может быть использован, он не имеет контроля видимости (низкая производительность) и освещения.

Template:Bug:ru

Синтаксис

vbsp [options...] vmf_file

Пример:

"Half-Life 2\bin\vbsp.exe" -onlyents sdk_trainstation_01

Это повторно встроит entity block без влияния на остальной мир.

Основные параметры

Template:Note:ru

-v
-verbose
Включает подробный вывод (также показывает больше параметров командной строки). Используется без каких-либо других параметров.
-onlyents
Импортирует из VMF только entities. Браши и internal entities не изменяются. Сохраняет текущие данные освещения.
-onlyprops
Обновляет только static и detail props (например, internal entities). Не генерирует .prt файл (making VVIS fail).
-glview
Записывает glview данные в директорию VMF. При использовании -tmpout, файлы будут записаны в \tmp.
-nodetail
Убирает func_detail браши. Остаётся только геометрия влияющая на видимость.
-nowater
Избавляется от брашей воды.
-low
Запускает как процесс с базовым приоритетом.
-vproject <directory>
Перезаписывает переменную среды VPROJECT.
-game <directory>
Определяет папку с файлом gameinfo.txt
-embed <directory>
Встраивает содержание <directory> в packfile

Расширенные параметры

-novconfig
Не открывать графический интерфейс при ошибках vproject.
-threads
Контролирует количество используемых потоков (threads) (по-умолчанию — количество процессоров (x2 для процессоров с Hypertreading/SMT) на вашем компьютере).
-verboseentities
If -v is on, this disables verbose output for submodels.
-noweld
Don't join face vertexes together.
-nocsg
Don't chop out intersecting brush areas.
-noshare
Emit unique face edges instead of sharing them.
-notjunc
Don't fixup t-junctions.
-noopt
By default, vbsp removes the 'outer shell' of the map, which are all the faces you can't see because you can never get outside the map. -noopt disables this behavior.
-noprune
Don't prune neighboring solid nodes.
-nomerge
Don't merge together chopped faces on nodes.
-nomergewater
Don't merge together chopped faces on water.
-nosubdiv
Don't subdivide faces for lightmapping.
-micro <#>
vbsp will warn when brushes are output with a volume less than this number (default: 1.0).
-fulldetail
Mark all detail geometry as normal geometry (so all detail geometry will affect visibility).
-leaktest
Stop processing the map if a leak is detected. Whether or not this flag is set, a leak file will be written out at <vmf filename>.lin, and it can be imported into Hammer.
-bumpall
Force all surfaces to be bump mapped.
-snapaxial
Snap axial planes to integer coordinates.
-block # #
Control the grid size mins that vbsp chops the level on.
-blocks # # # #
Enter the mins and maxs for the grid size vbsp uses.
-dumpstaticprops
Dump static props to staticprop*.txt
-dumpcollide
Записывает файлы с информацией о коллизиях.
-luxelscale #
Scale all lightmaps by this amount (default: 1.0).
-lightifmissing
Force lightmaps to be generated for all surfaces even if they don't need lightmaps.
-localphysx
Template:Todo:ru
-keepstalezip
Keep the BSP's zip files intact but regenerate everything else.
-replacematerials
Substitute materials according to materialsub.txt in content\maps
-FullMinidumps
Write large minidumps on crash.

Нефункциональные параметры

-linuxdata
Force it to write physics data for linux multiplayer servers. ( It will automatically write this data if it finds certain entities like info_player_terrorist, info_player_deathmatch, info_player_teamspawn, info_player_axis, or info_player_coop. )
-nolinuxdata
Force it to not write physics data for linux multiplayer servers, even if there are multiplayer entities in the map.
-virtualdispphysics
Use virtual (not precomputed) displacement collision models
-xbox
Enable mandatory Xbox 1 optimisation.

См. также

[[Category:Level Design]