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

AVEVA™ XR Studio

Camera element

  • Last UpdatedDec 06, 2023
  • 1 minute read

Any cameras in a .max file are exported into the .mwx with no need for user buffer definitions.

Code example

In this example, both the camera and target are defined. Every element value is populated via max camera attributes.

The code for a camera looks like this.

<Camera name="fileName|cameraName" version="1">

<transform scale="1.0 1.0 1.0" rotation="0.003195 -0.996767 -0.060965 -0.052238" translation="-1095.977539 -54.252518 4161.485352"/>

<target value="fileName|targetName"/>

<targetDistance value="4456.885254"/>

<near value="0.0"/>

<far value="0.0"/>

<hFov value="45.0"/>

<focalDepth value="0.0"/>

<dofEnabled value="false"/> </Camera> <Node type="Target" name="fileName|targetName" version="1">

<transform scale="1.0 1.0 1.0" rotation="0.039197 -0.661712 -0.747929 -0.034679" translation="-633.578613 488.904419 -237.945801"/>

</Node>

For details about focalDepth and dofEnabled (Depth of Field) see Depth of Field + HDR Rendering.

TitleResults for “How to create a CRG?”Also Available in