Home Search

DriveWorks Pro 22
Camera

Send Feedback

Camera

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.

Information Panel

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.

This property cannot be used when Orthographic mode is enabled. This is because the Sky Box is a perspective image.

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

  • Viewport Width

    The width of the Viewport as a percentage of the Preview Controls width. For example: 30.

  • Viewport Height

    The height of the Viewport as a percentage of the Preview Controls height. For example: 30.

  • Viewport Top

    The top position of the Viewport as a percentage of the Preview Controls height.

  • Viewport Left

    The left position of the Viewport as a percentage of the Preview Controls width.

  • Viewport Z-Index

    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

  • Field Of View

    Controls the Cameras Field of View. Enter an angle in degrees.

    This property is not used when Orthographic mode is enabled.
  • Orthographic Enabled

    Enables Orthographic mode on the Camera. TRUE to enable Orthographic mode, FALSE to disable it.

  • Orthographic Size

    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

  • Override 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.

  • Red

    Enter a number from 0 to 255.

  • Green

    Enter a number from 0 to 255.

  • Blue

    Enter a number from 0 to 255.

  • Alpha

    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.

Parameter Panel

With the model node selected and the Click Macro entity added to that node, the following will be displayed in the Parameter Panel:

  • Viewport Width

    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.

  • Viewport Height

    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.

  • Viewport Left

    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.

  • Viewport Top

    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.

  • Viewport Z Index

    A dynamic rule can be built for the Viewport Z Index. Enter a number. Value must be a number.

  • Field of View

    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.

  • Orthographic Enabled

    A dynamic rule can be built for Orthographic Enabled. Enter either TRUE or FALSE to enable and disable this feature.

  • Orthographic Size

    A dynamic rule can be built for Orthographic Size. Enter a number. The units for this property are in meters.

  • Camera Enabled

    A dynamic rule can be built for Camera Enabled. Enter either TRUE or FALSE to enable or disable the Camera.

  • Skybox Enabled

    A dynamic rule can be built for Skybox Enabled. Enter either TRUE or FALSE to enable or disable the Sky Box.

  • Click Macro Enabled

    A dynamic rule can be built for Click Macro Enabled. Enter either TRUE or FALSE to enable or disable Click Macros on this Camera.

  • Background Color

    A dynamic rule can be built for Background Color. Enter a hex color for the color. This can include transparency. Example: "#FFFFFF"

  • Override Background Color

    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.

  • Override Default Camera Effects

    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.

More Information

Please see the topics below for more information: