Skip to content

Interactions with Viewport3D

Christof Konstantinopoulos edited this page Oct 14, 2020 · 1 revision

There are many kinds of user interactions supported in HelixViewport3D (WPF) and Viewport3DX (SharpDX) by default. They can be enabled and disabled with corresponding properties of the control:

  • Rotate: IsRotationEnabled
  • Move: IsMoveEnabled
  • Pan: IsPanEnabled
  • Zoom: IsZoomEnabled
  • Change field of view: IsChangeFieldOfViewEnabled

Rotate

  • Keyboard Left and Right to rotate left and right
  • Keyboard Up and Down to rotate up and down
  • Mouse right key dragging

If CameraMode is set to Inspect, the operation rotates the camera around its target or FixedRotationPoint.

If CameraMode is set to FixedPosition, the operation rotates the camera around the position of the camera.

Move

  • Keyboard W and S to move back and forth
  • Keyboard A and D to move left and right
  • Keyboard Q and Z to move up and down

Pan

  • Shift + mouse right key dragging

The operations moves the camera horizontally and vertically (like scrolling in a web page)

Zoom

  • Mouse wheel scrolling
  • Ctrl + mouse right key dragging

If The operation moves the camera closer to or further from the model. It makes no effect if CameraMode is set to FixedPosition.

Change field of view

  • Alt + mouse right key dragging

This operation changes the field of view of the camera while moving it back and forth. The size of the model is not changed much, but the distortion level of the view changes.

Remarks

There may be more interactions not covered in this page.