Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Example: Viewports with Scene+2D

  • Last UpdatedApr 28, 2023
  • 1 minute read

Viewports with Scene+2D

This is a code example for Viewports with Scene+2D.

Code example

This code example renders an HDR Scene including PostProcess, and applies a 2DOverlay on top.

<?xml version="1.0" encoding="utf-8" ?>

<renderSetup version="1.0">

<Viewport name="MainViewport">

<hwnd index="0"/>

<pos value="0 0"/>

<size value="1.0 1.0"/>

<outputLayer value="2DLayer"/>

<layers>

<Layer name="SceneLayer" type="sceneDofHdrB">

<dofHdrB file="dof_hdr_b.xml"/>

<postProcess id="DefaultPP" file="post_process.xml"/>

<sceneName value="_all_"/>

</Layer>

<Layer name="2DLayer" type="2dOverlay">

<layer2DName value="MainLayer"/>

<input1 value="SceneLayer"/>

</Layer>

</layers>

</Viewport>

</renderSetup>

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in