VegaRise.NET
Back to DOM

CameraClass

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Represents a 3D camera configuration used by scene-based 3D effects.

Remarks

The camera determines how a 3D scene is projected onto the 2D page: the perspective preset controls the field of view, and the controls the orientation of the viewport relative to the object. CameraRotation Cameras are used together with inside a to give shapes and text an extruded, perspective appearance. See for the material and bevel properties. LightRig Shape3DType Scene3D

Examples

csharp
1// 1. Default orthographic-ish camera
2var camera = new Camera
3{
4 preset = PresetCameraValues.orthographicFront,
5 Rotation = new CameraRotation()
6};
7
csharp
1// 2. Isometric top-up camera
2var camera = new Camera
3{
4 preset = PresetCameraValues.isometricTopUp,
5 Rotation = new CameraRotation { Revolution = new Rotation { Value = 0 } }
6};
7
csharp
1// 3. Perspective camera with a 45° revolution
2var camera = new Camera
3{
4 preset = PresetCameraValues.perspectiveFront,
5 Rotation = new CameraRotation { Revolution = 45 }
6};
7
csharp
1// 4. Attach to a Scene3D
2var scene = new Scene3D
3{
4 Camera = new Camera
5 {
6 preset = PresetCameraValues.legacyPerspectiveFront,
7 Rotation = new CameraRotation { Revolution = 0 }
8 },
9 LightRig = new LightRig
10 {
11 Rig = LightRigValues.balanced,
12 Direction = LightRigDirectionValues.tl
13 }
14};
15

Properties

Gets or sets the preset camera projection.

Gets or sets the camera rotation applied to the scene.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in