Node Copied to Clipboard!

Cameras


Modest3D contains a Main Camera by default, which is used by the Main Viewport to display what the Main camera “sees.” It’s possible to create more than one camera and viewport in Modest3D to allow the user to view more than one scene at a time in their lesson.

Adding a Camera

You can add a camera to your lesson inside a Setup node by right-clicking and selecting Add-> camera from the list or by pressing the Add camera button in the setup tab after simulating the lesson. The camera is editable via the Editor or the Properties tabs. From the Properties tab, many options are available for customization:

Main:

  • Action Type: Setup node property that indicates whether the camera is being created, changed, or destroyed.
  • Is Enabled: enables and disables the camera.
  • Is Visible: Toggles the visibility of the camera.
  • Instance Name: Allows naming of the camera.

Transform:

  • Rotation: (X,Y,Z). Indicates the orientation of the camera on each axis. Set to (0,0,0) by default.
  • Position: (X,Y,Z). Indicates the position of the camera on each axis. Set to (0,0,0) by default.
  • Note: in addition to being editable via the Properties tab, both the Position and Rotation are editable in the Editor tab and copied over using “Take From Editor Camera”.

Camera:

  • Viewport Name: This property indicates the Viewport that is assigned to the camera.
  • Aspect: The ratio of camera width:height in decimal form.
  • Field of View: This indicates the angle of the camera in degrees, and how wide it can see. A higher number indicates a wider angle, and a smaller number indicates a much narrower, flat, or focused view. By default Cameras are set to 60 degrees.
  • Is Orthographic: Indicates whether the camera will display an orthogonal or “parallel” projection.
  • Orthographic Height: This dictates the distance from which an Orthographic camera will view the scene from. A lower number is closer, higher number is further. By default, it is set to 10.
  • Far Clip Distance: The maximum distance from the camera that objects will be visible.
  • Near Clip Distance: The minimum distance from the camera that objects will be visible.
  • Receive Audio: The Ability for the camera to pick up audio in the lesson.
  • Collision Enabled: This checkbox indicates whether collision is enabled. Depending on your camera mode, the camera may be able to move depending on user input. If this is enabled, the camera will collide with objects in the lesson (e.g. walls of a garage, the camera won’t be able to move through them).

Local Transform:

  • Parent: The object the camera will follow. When animating the parent object the camera will animate in the same manner to follow.

Background:

  • Background Type: You can choose between gradient, solid color, or a skybox.
  • Gradient: You can pick two colors to draw the gradient from, type of skybox, strength of skybox corners and its resolution.