This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Программирование на C#
Рендеринг
Принципы работы
Свойства (properties)
Компонентная Система
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Вывод изображения на Varjo с плагином AppVarjo

The AppVarjo plugin is used to support the Varjo VR-2 / VR-2 Pro head-mounted displays. Varjo VR-2 Pro currently combines the use of Varjo Software for rendering and head pose tracking and SteamVR Tracking technology for controllers and input. It is supposed that you already have Varjo Base and SteamVR installed.Плагин AppVarjo используется для поддержки головных дисплеев Varjo VR-2 / VR-2 Pro. В настоящее время Varjo VR-2 Pro сочетает в себе использование программного обеспечения Varjo для рендеринга и отслеживания позы головы, а также технологию отслеживания SteamVR для контроллеров и ввода. Предполагается, что у вас уже установлены Varjo Base и SteamVR.

Примечание
This plugin cannot be used in a Qt-based application.Этот плагин нельзя использовать в приложении на основе Qt.

Both the windowed and the full screen modes are supported. By default, on the PC display the image is rendered in mono mode (image from the left eye). Use setViewportMode() to change the mode to stereo (both eyes) as follows:Поддерживаются как оконный, так и полноэкранный режимы. По умолчанию на дисплее ПК изображение рендерится в монохромном режиме (изображение для левого глаза). Используйте setViewportMode(), чтобы изменить режим на стерео (оба глаза) следующим образом:

Смотрите также

Implementing Unigine Application with Varjo SupportРеализация приложения Unigine с поддержкой Varjo#

To use the Varjo VR-2 / VR-2 Pro virtual display with Unigine, perform the following:Чтобы использовать виртуальный дисплей Varjo VR-2 / VR-2 Pro с Unigine, выполните следующие действия:

  1. Download Varjo SDK and perform all required steps.Скачайте Varjo SDK и выполните все необходимые шаги.
  2. Create a new project with AppVarjo support via UNIGINE SDK Browser: click Plugins, check the Varjo support (AppVarjo plugin) option in the form that opens and click OK.
    Примечание
    To add Varjo support to an existing project, in UNIGINE SDK Browser, click Other Actions -> Configure Project -> Plugins -> Varjo support (AppVarjo plugin) -> OK. To add Varjo support to an existing project, in UNIGINE SDK Browser, click Other Actions -> Configure Project -> Plugins -> Varjo support (AppVarjo plugin) -> OK.

    To add Varjo support to an existing project, in UNIGINE SDK Browser, click Other Actions -> Configure Project -> Plugins -> Varjo support (AppVarjo plugin) -> OK.
    Создайте новый проект с поддержкой AppVarjo через UNIGINE SDK Browser: нажмите Plugins , отметьте опцию Поддержка Varjo (плагин AppVarjo) в открывшейся форме и нажмите ОК .
    Примечание
    To add Varjo support to an existing project, in UNIGINE SDK Browser, click Other Actions -> Configure Project -> Plugins -> Varjo support (AppVarjo plugin) -> OK. Чтобы добавить поддержку Varjo в существующий проект, в браузере UNIGINE SDK нажмите Other Actions -> Configure Project -> Plugins -> Varjo support (AppVarjo plugin) -> OK.

  3. Implement the application logic by using functions of the AppVarjo plugin API.Реализуйте логику приложения с помощью функций API плагина AppVarjo.
  4. Plug in the Varjo virtual display.Подключите виртуальный дисплей Varjo.
  5. Launch the AppVarjo plugin on the application start-up. Запустите подключаемый модуль AppVarjo при запуске приложения.

Launching AppVarjoЗапуск AppVarjo#

To launch the plugin, specify the extern_plugin command line option on the application start-up:Чтобы запустить плагин, укажите параметр командной строки extern_plugin при запуске приложения:

Shell-команды
main_x64.exe -extern_plugin "AppVarjo"

If you run the application via UNIGINE SDK Browser, set the Stereo 3D option to AppVarjo in the Options tab and click Apply. Если вы запускаете приложение через UNIGINE SDK Browser, установите для параметра Stereo 3D значение AppVarjo на вкладке Options и щелкните Apply.

Console CommandsКонсольные команды#

The following console commands can be run for the AppVarjo plugin.Следующие команды console можно запустить для подключаемого модуля AppVarjo.

Имя Описание Аргументы
varjo_set_focus_supersampling_factor
  • Command. Sets the additional supersampling factor for the Varjo focus viewport.Command. Sets the additional supersampling factor for the Varjo focus viewport.
  • Variable. Print the value setting the additional supersampling factor for the Varjo focus viewport.Variable. Print the value setting the additional supersampling factor for the Varjo focus viewport.
Command. Sets the additional supersampling factor for the Varjo focus viewport.Variable. Print the value setting the additional supersampling factor for the Varjo focus viewport.
  • Command. Sets the additional supersampling factor for the Varjo focus viewport. Команда . Устанавливает дополнительный коэффициент суперсэмплинга для области просмотра фокуса Varjo.
  • Variable. Print the value setting the additional supersampling factor for the Varjo focus viewport. Переменная . Распечатайте значение, устанавливающее дополнительный коэффициент суперсэмплинга для области просмотра фокуса Varjo.

Additional supersampling factor, a float value greater than 0Дополнительный коэффициент суперсэмплинга, значение с плавающей запятой больше 0

(1.0 by default)( 1.0 по умолчанию)

varjo_get_focus_supersampling_factor
  • Command. Returns the additional supersampling factor for the Varjo focus viewport.Command. Returns the additional supersampling factor for the Varjo focus viewport.
Command. Returns the additional supersampling factor for the Varjo focus viewport.
  • Command. Returns the additional supersampling factor for the Varjo focus viewport. Команда . Возвращает дополнительный коэффициент суперсэмплинга для области просмотра фокуса Varjo.
Последнее обновление: 09.04.2021
Build: ()