This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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
创建内容
Content Optimization
Materials
Art Samples
Tutorials

使用AppVarjo插件输出到Varjo

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 BaseSteamVR

注意
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:窗口模式和全屏模式均受支持。默认情况下,在PC显示器上以单模式渲染图像(左眼图像)。使用setViewportMode()将模式更改为立体声(双眼),如下所示:

也可以看看

Implementing Unigine Application with Varjo Support在Varjo支持下实现Unigine应用程序#

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.
    通过UNIGINE SDK浏览器创建具有AppVarjo支持的新项目:单击插件,选中 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.通过使用AppVarjo插件API的功能来实现应用程序逻辑。
  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 命令行选项:

命令行
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浏览器运行该应用程序,请在Options选项卡中将AppVarjo in the Options tab and click Apply

Console Commands控制台命令#

The following console commands can be run for the AppVarjo plugin.可以为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焦点视口的其他超级采样因子。
最新更新: 2020-11-11
Build: ()