OrbitControls Op

OrbitControls

rotate your object by clicking and dragging the mouse


Adds mouse-interactivity to your patch. After you added the OrbitControls-op you can rotate the viewport my dragging with the mouse and zoom in / out using the mouse wheel.


Edit Documentation

Full Name
  • Ops.Gl.Matrix.OrbitControls
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch Orbit controls

Use orbit controls to easily navigate and interact with the 3d scene.

  • move the mouse while pressing the left button to rotate
  • move the mouse while pressing the right button to move
  • scroll / use the mouse wheel to zoom in and out
Open In Editor

Youtube Video Tutorial

INPUT PORTS


render (Trigger)

Executes the op

Boundaries

min distance (Number)

Minimum distance to scroll in, once you hit that distance scrolling in has no effect

max distance (Number)
min rot y (Number)
max rot y (Number)

Initial Values

initial radius (Number)
initial axis y (Number)

The starting point from where to look at the scene in the y-axis

initial axis x (Number)

The starting point from where to look at the scene in the x-axis

Interaction

mul (Number)
Smoothness (Number)
Speed X (Number)
Speed Y (Number)
Active (Number:boolean )
Allow Panning (Number:boolean )
Allow Zooming (Number:boolean )
Allow Rotation (Number:boolean )
restricted (Number:boolean )
Reset (Trigger)

OUTPUT PORTS


trigger (Trigger)

Triggers the next op

radius (Number)
Rot X (Number)
Rot Y (Number)

Patches using OrbitControls

  • Examples
  • Public
  • My Patches

Changelog


code cleanup - portsuser avatarandro - 2019-05-28 12:50
reset now also resets position from panninguser avatarpandur - 2019-07-10 16:04
removed pointerlock functionalityuser avatarpandur - 2022-01-31 09:03