Next: , Previous: OSC, Up: Functions



12.13 ScratchPadCamera

Camera functions availible in the fluxus scratchpad.

Example
     

12.13.1 (reset-camera)

Returns

void

Description

Resets the camera transform, useful if it becomes trashed, or you get lost somewhere in space. Also turns off camera locking to objects with (lock-camera)

Example
      ; ruin the camera transform
      (set-camera-transform (vector 123 41832 28 0.2 128 0.001 123 41832 28 0.2 128 0.001 0.2 100 13 1931))
      ; set it back to the starting position/orientation
      (reset-camera)
     

12.13.2 (set-camera-transform transform-matrix)

Returns

void

Description

Overrides and locks the camera transform with your own. To unlock again call reset-camera

Example
      ; ruin the camera transform
      (set-camera-transform (mtranslate 0 0 -10))
     

12.13.3 (get-camera-transform)

Returns

transform-matrix

Description

Returns the current camera transform. To unlock again call reset-camera

Example
      ; ruin the camera transform
      (define tx (get-camera-transform))