Skip to content
  1. Image
  2. Voro

Pointer

Pointer brings a mouse or a touch into a graph. Rig panels and Warp FX tools that respond to clicks read its pointer output, the way a renderer reads a Camera.

Place Pointer under Voro in the Image view and wire pointer to the node that should respond. In TouchDesigner, Pointer’s panel feeds hand.

With nothing on hand, Pointer sends one touch from its own parameters. Set Touch ID to 1, place it with U and V, and pulse Press to click.

When the hand only reports a spot on a picture, wire that picture, a renderer’s image, into view. Pointer then works out the 3D ray from the camera that rendered it.

  • hand takes touches from the host, one row each.
  • view takes the rendered image the hand is on. Pointer reads its camera from the previous frame, so a render can loop back here.
  • pointer sends one row per touch: U and V, buttons, pressure, the 3D ray and a running count of presses.
  • Touch ID 0 means no touch. 1 and up place one at U and V, with V rising from the bottom.
  • Press adds one primary press. Presses is the count it adds to.
  • The Ray page sets the ray by hand. Hit Distance stays at -1 when nothing was hit.

A Warp FX tool reads the row with voro.pointer; Warp FX shows how. Act when the press count changes rather than while a button is down, so a click is never missed or repeated.

Inputs

  • hand row
    pointer_state_v1
  • view image
    RGBA

Outputs

  • pointer row required
    pointer_state_v1

Pointer

Touch ID (Touchid) Int op('pointer').par.Touchid
Default:
0
Range:
0 to 16777215
U (U) Float op('pointer').par.U
Default:
0.5
Range:
0 to 1
V (V) Float op('pointer').par.V
Default:
0.5
Range:
0 to 1
Buttons (Buttons) Int op('pointer').par.Buttons
Default:
0
Range:
0 to 7
Pressure (Pressure) Float op('pointer').par.Pressure
Default:
0
Range:
0 to 1
Presses (Presses) Int op('pointer').par.Presses
Default:
0
Range:
0 to 16777215
Press (Press) Pulse op('pointer').par.Press
Default:
None

Ray

Ray Origin X (Originx) Float op('pointer').par.Originx
Default:
0
Range:
-100000 to 100000
Ray Origin Y (Originy) Float op('pointer').par.Originy
Default:
0
Range:
-100000 to 100000
Ray Origin Z (Originz) Float op('pointer').par.Originz
Default:
0
Range:
-100000 to 100000
Ray Direction X (Directionx) Float op('pointer').par.Directionx
Default:
0
Range:
-1 to 1
Ray Direction Y (Directiony) Float op('pointer').par.Directiony
Default:
0
Range:
-1 to 1
Ray Direction Z (Directionz) Float op('pointer').par.Directionz
Default:
0
Range:
-1 to 1
Hit Distance (Hitdistance) Float op('pointer').par.Hitdistance
Default:
-1
Range:
-1 to 100000