Viewports

OVITO's main window contains four viewports, which are laid out in a 2 by 2 grid. Each viewport shows the same three-dimensional scene from a different angle. The caption in the upper left corner and an axis tripod in the lower left corner of every viewport indicate the current viewing direction, i.e. the orientation of the virtual camera.

Navigation

Figure 2. The colored cross marks the center of rotation of the camera. Double-click on a particle to reposition the marker.

The colored cross marks the center of rotation of the camera. Double-click on a particle to reposition the marker.


Use the mouse to navigate within a viewport and to move the virtual camera around:

  • Left-click and drag to rotate the camera around the current orbit center, which, by default, is the center of the simulation box.

  • Right-click and drag to move the camera parallel to the current projection plane. You can also use the middle mouse button for this.

  • Use the mouse wheel to zoom in and out.

  • Double-click on a particle or other object to set a new orbit center. From now on the camera will rotate around that position, which is marked by a colored cross.

  • Double-click in an empty region to reset the orbit center to the center of the active object (typically the simulation box).

By default, the z-axis is considered the "up" (=vertical) direction, and OVITO ensures that it always points upward when you rotate or move the camera. Depending on your simulation setup this might not be the best choice. In such a case you can define the x or y axis to be the vertical axis in the application settings dialog.

Viewport toolbar

Figure 3. The viewport toolbar.

The viewport toolbar.


The viewport toolbar is located below the viewports and contains buttons to explicitly activate various navigation input modes. The Maximize Active Viewport button enlarges the current viewport such that it fills the entire main window. Pressing the button a second time restores the original 2x2 viewport layout. The active viewport is marked by a yellow border.

The Zoom Scene Extents button adjusts the zoom level and repositions the viewport camera such that the complete scene becomes fully visible.

Viewport menu

Each of OVITO's viewports has a caption in its upper left corner, e.g. Perspective, Top, etc. Clicking on the caption opens the viewport context menu as shown in the screenshot. The menu allows you to switch between the standard view types.

Figure 4. The viewport menu.

The viewport menu.


Adjust View opens a dialog box that lets you enter the view position and orientation of the virtual camera numerically.

The Create Camera function creates a camera object in the three-dimensional scene. The camera is linked to the viewport, and moving the camera object will automatically update the viewport's view accordingly. It is even possible to animate the camera object to create movies with a moving camera. Creating a camera object is also useful to fix the current viewport view and protect it against inadvertent or automatic changes, e.g. the automatic adjustment that is performed by OVITO when loading a new simulation dataset.

The Preview Mode option activates a frame, which indicates the area that will be visible in the final output picture. The aspect ratio of the render frame can be adjusted in the Render settings panel by changing the width and height of the output image or movie. When the Preview Mode is active for a viewport, everything (including the background and overlays) will be rendered as in the final output image.