This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

使用Separate插件分离图像输出

The Separate plugin is used to create a separate window for each eye. It can be used with any devices that support separate images output, e.g. for 3D video glasses or helmets (HMD)Separate插件用于为每只眼睛创建一个单独的窗口。它可以与任何支持单独图像输出的设备一起使用,例如用于3D视频眼镜或头盔(HMD)

注意
  • The Separate plugin is available only on DirectX 11 graphics API. So it can be used under Windows only. Separate 插件仅在 DirectX 11 图形API上可用。因此只能在Windows下使用。
  • This plugin cannot be used in a Qt-based application.此插件不能在基于Qt的应用程序中使用。

Separate can be rendered in both the windowed and the full-screen mode.Separate可以在窗口模式和全屏模式下呈现。

Launching Separate
启动Separate#

To use the plugin, specify the extern_plugin command line option and STEREO_SEPARATE define on the start-up:要使用该插件,请在启动时指定extern_plugin命令行选项,并定义 STEREO_SEPARATE

命令行
main_x64d -extern_plugin "UnigineSeparate" -extern_define STEREO_SEPARATE

Also you can create a new project with the Separate plugin support by checking the Dual output stereo 3D option on the New Project tab of the UNIGINE SDK Browser.您也可以通过选中UNIGINE SDK浏览器的New Project选项卡上的Dual output stereo 3D选项,创建具有Separate插件支持的新项目。

The engine automatically loads the appropriate version of the library depending on the specified main application. So you can use 64-bit debug or release version of the library.引擎将根据指定的主应用程序自动加载适当版本的库。因此,您可以使用该库的64位调试或发行版本。

注意
The Separate plugin cannot be used with: Multi-monitor plugins (SpiderVision)Panoramic renderingThe other stereo 3D pluginsSeparate插件不能用于:

Customizing Separate
自定义Separate#

Unigine-based application can be used with any custom device that supports an output of separate image pairs. You simply need to do the following:基于Unigine的应用程序可与支持单独图像对输出的任何自定义设备一起使用。您只需要执行以下操作:

  1. Define the application behaviour when the STEREO_SEPARATE define is set on the start-up or in the configuration file:
    源代码 (C++)
    #ifdef STEREO_SEPARATE
    	// implement your code here
    #endif
    在启动时或在配置文件中设置STEREO_SEPARATE定义时,定义应用程序行为:
    源代码 (C++)
    #ifdef STEREO_SEPARATE
    	// implement your code here
    #endif
  2. Implement the input device interface using an extensible C++ API.使用可扩展的 C ++ API 实现输入设备接口。

Stereo settings that control eye separation and distance to the zero parallax plane are added to GUI by data/core/scripts/system/stereo.h script and can be controlled from there.通过data/core/scripts/system/stereo.h脚本将控制眼睛分离和到零视差平面的距离的立体声设置添加到GUI,并可以从那里进行控制。

最新更新: 2024-08-16
Build: ()