Ru/VVIS: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
m (another accidentally remained link)
(more translation)
Line 23: Line 23:
  "Half-Life 2\bin\vvis.exe" -tmpout sdk_trainstation_01
  "Half-Life 2\bin\vvis.exe" -tmpout sdk_trainstation_01


This will generate and embed a visibility chart, writing portal data out to <code>.\tmp\sdk_trainstation_01.prt</code>.
Это сгенерирует и встроит график видимости, а также запишет данные порталов в <code>.\tmp\sdk_trainstation_01.prt</code>.


== Параметры ==
== Параметры ==
Line 32: Line 32:


; <code>-fast</code>
; <code>-fast</code>
: Only do a quick first pass. Does not actually test visibility.
: Произвести только быстрый первый проход. Не проверяет видимость на самом деле.
; <code>-radius_override <[[int]]></code>
; <code>-radius_override <[[int]]></code>
: Force a maximum vis radius, in [[unit]]s, regardless of whether an [[env_fog_controller]] specifies one.
: Force a maximum vis radius, in [[unit]]s, regardless of whether an [[env_fog_controller]] specifies one.
; <code>-nosort</code>
; <code>-nosort</code>
: Don't sort (an optimization) portals.
: Не сортировать (оптимизировать) порталы.
; <code>-tmpin</code>
; <code>-tmpin</code>
: Read portals from <code>\tmp\<mapname></code>.
: Прочитать данные порталов из <code>\tmp\<mapname></code>.
; <code>-tmpout</code>
; <code>-tmpout</code>
: Write portals to <code>\tmp\<mapname></code>.
: Записать данные порталов в <code>\tmp\<mapname></code>.


=== Основные ===
=== Основные ===
Line 48: Line 48:
: Run as an idle-priority process.
: Run as an idle-priority process.
; <code>-threads</code>
; <code>-threads</code>
: Control the number of threads used. Defaults to the # of processors (times 2 for Hypertreading/SMT CPU's) on your machine. Maximum is 16 threads. With a [[Increased_Thread_Limit_for_Compile_Tools|patched vvis_dll]] you can reach 32 threads.
: Управляет количеством используемых потоков (threads). По-умолчанию равняется количеству процессоров (x2 для процессоров с Hypertreading/SMT) на вашем компьютере. Максимальное значение — 16. С [[Increased_Thread_Limit_for_Compile_Tools|пропатченной vvis_dll]] можно использовать 32 потока.
; <code>-verbose (-v)</code>
; <code>-verbose (-v)</code>
: Turn on verbose output
: Включает подробный вывод.
; <code>-novconfig</code>
; <code>-novconfig</code>
: Don't bring up graphical UI on vproject errors.
: Не открывать графический интерфейс при ошибках vproject.
; <code>-mpi</code>
; <code>-mpi</code>
: Use [[VMPI]] to distribute computations.
: Использовать [[VMPI]] для распределённых вычислений.
; <code>-mpi_pw <[[string]]></code>
; <code>-mpi_pw <[[string]]></code>
: Use a password to choose a specific set of VMPI workers.
: Use a password to choose a specific set of VMPI workers.
Line 61: Line 61:
: Override the [[VPROJECT]] environment variable.
: Override the [[VPROJECT]] environment variable.


== Console Output ==
== Вывод консоли ==
VVIS prints various information about the compile process to the console. Note that output from older versions of the tool can be different.
VVIS выводит различную информацию о процессе компилирования в консоль. Обратите внимание, что вывод в различных версиях может отличаться.


; <code>''number'' portalclusters</code>
; <code>''number'' portalclusters</code>
Line 83: Line 83:
: The average number of leaves you can potentially hear into from each visleaf.
: The average number of leaves you can potentially hear into from each visleaf.
; <code>visdatasize: ''number''  compressed from ''number''</code>
; <code>visdatasize: ''number''  compressed from ''number''</code>
: Size of the visibility data in bytes. Max size is 16 MB in Source 2013.
: Размер данных видимости в байтах. Максимальный размер в Source 2013 — 16Мбайт.


== См. также ==
== См. также ==

Revision as of 13:52, 18 November 2017

Template:Otherlang2

Template:Finishtranslation:ru

VVIS (полн. Valve Visible Information Set) — это инструмент командной строки, который берёт скомпилированную BSP карту и встраивает в неё данные видимости. VVIS проверяет какие visleaves могут видеть друг друга, а какие — нет. Для более детального объяснения см. Оптимизация видимости.

VVIS:

  • Проверит видимость между visleaves с помощью clipping their view planes.
  • Обеспечит максимальное расстояние видимости, если нужно.

Синтаксис

vvis [options...] <bsp file>

Пример:

"Half-Life 2\bin\vvis.exe" -tmpout sdk_trainstation_01

Это сгенерирует и встроит график видимости, а также запишет данные порталов в .\tmp\sdk_trainstation_01.prt.

Параметры

Используйте их в комбинации с expert compile mode или пакетным файлом:

Функции

-fast
Произвести только быстрый первый проход. Не проверяет видимость на самом деле.
-radius_override <int>
Force a maximum vis radius, in units, regardless of whether an env_fog_controller specifies one.
-nosort
Не сортировать (оптимизировать) порталы.
-tmpin
Прочитать данные порталов из \tmp\<mapname>.
-tmpout
Записать данные порталов в \tmp\<mapname>.

Основные

32 vCore machine running VVIS with only 16 cores used (even though 32 threads were specified)
32 vCore machine running VVIS with all cores used (patched vvis used)
-low
Run as an idle-priority process.
-threads
Управляет количеством используемых потоков (threads). По-умолчанию равняется количеству процессоров (x2 для процессоров с Hypertreading/SMT) на вашем компьютере. Максимальное значение — 16. С пропатченной vvis_dll можно использовать 32 потока.
-verbose (-v)
Включает подробный вывод.
-novconfig
Не открывать графический интерфейс при ошибках vproject.
-mpi
Использовать VMPI для распределённых вычислений.
-mpi_pw <string>
Use a password to choose a specific set of VMPI workers.
-vproject <string>
-game <string>
Override the VPROJECT environment variable.

Вывод консоли

VVIS выводит различную информацию о процессе компилирования в консоль. Обратите внимание, что вывод в различных версиях может отличаться.

number portalclusters
The effective number of visleaves in the map (visleaves clustered together with func_viscluster count as one).
number numportals
The number of portals connecting the the above visleaves.
BasePortalVis: 0...1...2...3...4...5...6...7...8...9...10 (time taken in seconds)
Rough visibility calculations that are used to trivially weed out unseen areas from the final calculations.
PortalFlow: 0...1...2...3...4...5...6...7...8...9...10 (time taken in seconds)
Runs the actual visibility algorithm to determine which visleaves can see each other. Not run with -fast.
Optimized: number visible clusters (percentage)
Compression of the visibility data.
Total clusters visible: number
The total number of occurrences of visleaves being able to see each other in the calculated data.
Average clusters visible: number
The average number of leaves you can potentially see from each visleaf.
Building PAS...
Calculates the Potentially Audible Set.
Average clusters audible: number
The average number of leaves you can potentially hear into from each visleaf.
visdatasize: number compressed from number
Размер данных видимости в байтах. Максимальный размер в Source 2013 — 16Мбайт.

См. также