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 Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

使用AppSeparate插件分离图像输出

警告
本文介绍的功能在 Community SDK 版本中不可用。
您应该升级到 Sim SDK版本才能使用它。

The AppSeparate 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)AppSeparate插件用于为每只眼睛创建一个单独的窗口。它可以与任何支持单独图像输出的设备一起使用,例如用于3D视频眼镜或头盔(HMD)

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

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

Launching AppSeparate启动AppSeparate#

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 "AppSeparate" -extern_define STEREO_SEPARATE

Also you can create a new project with the AppSeparate 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选项,创建具有AppSeparate插件支持的新项目。

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 AppSeparate plugin cannot be used with: Multi-monitor plugins (AppWall, AppProjection)Panoramic renderingThe other stereo 3D pluginsAppSeparate插件不能用于:

Customizing AppSeparate自定义AppSeparate#

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,并可以从那里进行控制。

最新更新: 2021-04-29
Build: ()