The Camera entity lets you add custom cameras to a DriveWorks 3D scene. These Cameras can then be viewed inside the DriveWorks 3D Document within a 3D Preview Control.
The Camera entity adds a camera to the Node it has been added to. This Camera points in the direction of the Z Axis or Blue Arrow.
The direction of the Camera can be modified by moving the Nodes position within the DriveWorks 3D Document.
When setting up a Camera in a DriveWorks 3D Document, you can control how that camera appears and the size of the Viewport within the 3D Preview Control.
The Viewport is a region or area of the screen used to display the image taken from the Camera.
In the image above, the Camera is displaying a top down view of the layout. The resultant image is displayed in the top left hand corner of the Preview Control. The Camera Viewport is positioned as a percentage of the Preview Control's size.
In this case the Viewport has a 30% width and a 30% height. Percentages allow the control to change size and the Viewport maintain an aspect ratio.
With a node selected and the Camera Entity added to the node, the following will be displayed in the Information Panel:
Camera Enabled
Enable and disable the Camera using this property. TRUE enables the camera, FALSE disables it.
Display Sky Box
Enable and disable the Sky Box in this Camera. The Sky Box is the sky environment that appears around models. TRUE enables the Sky Box and FALSE disables it.
Hover Enabled
Determines if hover from the camera is enabled.
Click Macro Enabled
Enable and disable click macros in this Camera. Prevents models being selected and running Specification Macros. TRUE enables Click Macros, FALSE disables them.
Camera Composition
The width of the Viewport as a percentage of the Preview Controls width. For example: 30.
The height of the Viewport as a percentage of the Preview Controls height. For example: 30.
The top position of the Viewport as a percentage of the Preview Controls height.
The left position of the Viewport as a percentage of the Preview Controls width.
Order multiple Camera Viewports using Z-Index. The higher the number the further back it is in the order. This is used for layering Cameras. For example, 2.
Camera Scaling
Controls the Cameras Field of View. Enter an angle in degrees.
Enables Orthographic mode on the Camera. TRUE to enable Orthographic mode, FALSE to disable it.
Controls the Orthographic Size of the Camera when Orthographic mode is enabled. This is measured in meters.
For example, if you have a model 1 meter across and apply an Orthographic Size of 1, the model will fill the Viewport.
Background Color
Allows a Background Color to be set on the Camera. This background is independent from other Cameras and the Default Camera on the Preview Control.
Enter a number from 0 to 255.
Enter a number from 0 to 255.
Enter a number from 0 to 255.
Enter a number from 0 to 255. Controls the transparency of the Cameras Background Color.
Override Default Camera Effects
By default, all Camera Entities will use the main Default Camera's effects. This option will override that and allow you to turn on or off individual camera effects on each Camera Entity.
With the model node selected and the Click Macro entity added to that node, the following will be displayed in the Parameter Panel:
A dynamic rule can be built for the Viewport Width. Enter a number between 0 and 100. These are a percentage of the Preview Control's width.
A dynamic rule can be built for the Viewport Height. Enter a number between 0 and 100. These are a percentage of the Preview Control's height.
A dynamic rule can be built for the Viewport Left. Enter a number between 0 and 100. These are a percentage of the Preview Control's width.
A dynamic rule can be built for the Viewport Top. Enter a number between 0 and 100. These are a percentage of the Preview Control's width.
A dynamic rule can be built for the Viewport Z Index. Enter a number. Value must be a number.
A dynamic rule can be built for the Field of View. Enter a number between 0 and 180. The units for this property are in degrees.
A dynamic rule can be built for Orthographic Enabled. Enter either TRUE or FALSE to enable and disable this feature.
A dynamic rule can be built for Orthographic Size. Enter a number. The units for this property are in meters.
A dynamic rule can be built for Camera Enabled. Enter either TRUE or FALSE to enable or disable the Camera.
A dynamic rule can be built for Skybox Enabled. Enter either TRUE or FALSE to enable or disable the Sky Box.
A dynamic rule can be built for Click Macro Enabled. Enter either TRUE or FALSE to enable or disable Click Macros on this Camera.
A dynamic rule can be built for Background Color. Enter a hex color for the color. This can include transparency. Example: "#FFFFFF"
A dynamic rule can be built for Override Background Color. Enter either TRUE or FALSE to enable or disable the Background Color of the Camera.
A dynamic rule can be built for Override Default Camera Effects. Enter either TRUE or FALSE to override or ignore the camera effects set on the Camera.
Please see the topics below for more information: