Ru/VBSP
< Ru
Jump to navigation
Jump to search
VBSP — это инструмент, который компилирует сырой VMF файл в файл формата Binary Space Partition. Обычно за ним следуют VVIS и VRAD.
Что делает VBSP:
- конвертирует браши в полигоны
- генерирует листья видимости
- генерирует detail props
- swallow most internal entities into the world
- replace specular materials with patched versions that link to the nearest cubemap
- встраивает entity block
Не смотря на то что результирующий BSP файл уже может быть использован, он не имеет контроля видимости (низкая производительность) и освещения.
Синтаксис
vbsp [options...] vmf_file
Пример:
"Half-Life 2\bin\vbsp.exe" -onlyents sdk_trainstation_01
Это повторно встроит entity block без влияния на остальной мир.
Основные параметры
-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
- Если использован параметр -v, то подробный вывод для подмодулей отключается.
-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
- Остановит процесс, если будет замечена утечка. Файл утечки будет создан и записан в <название vmf>.lin, вне зависимости от использования этого флага.
-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
- Записывать полный дамп при краше.
Нефункциональные параметры
-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.
См. также
|