Node Copied to Clipboard!

Editor Documentation


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.

You can add a Camera to your lesson inside a Setup node by right-clicking and selecting UI -> Camera from the list. The Camera is editable via the Editor or the Properties tabs. From the Properties tab, many options are available for customization:

  • 3D Layout
    • 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. For easier positioning, refer to the “Take From Editor Camera” and “Move Editor Camera To” buttons below.
  • Camera. For Background Color, Custom Skybox Type, Background Color Bottom, and Skybox settings, please see the Skybox documentation.
    • 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.
    • Skybox. Indicates whether the Skybox is turned on or off. Please see Skybox documentation for details.
    • 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.
    • 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).
    • Viewport Name. This property indicates the Viewport that is assigned to the Camera.
  • Miscellaneous
    • Action Type. Setup node property that indicates whether the Camera is being created, changed, or destroyed.
    • Name. Allows naming of the Camera.
    • Take From Editor Camera. Turning this on will track your movement in the Editor and orient the Camera accordingly. This makes it easy to create a specific camera angle rather than changing the Camera’s position and rotation properties manually. To stop tracking, click this button again.
    • Move Editor Camera To. This button will move the Editor camera to the current location of the Camera. This is used to easily locate a Camera and make small adjustments to its orientation.