cables is under heavy development.
There might be one or another bug, please let us know about it!

ScreenPosTo3d_v3 Op

Namespace: Ops.Gl.Matrix

Op author: pandur

convert screen coordinates to a 3d position

Useful when you want to do things like convert the mouse co-ordinates on screen to 3d co-ordinates.


Exec (Trigger)

Trigger in

X (Number)

Mouse co-ordinates in pixels X axis

Y (Number)

Mouse co-ordinates in pixels Y axis

Input Type index (integer /Number)


Trigger out (Trigger)
Result X (Number)

Normalized position on the X axis

Result Y (Number)

Normalized position on the Y axis

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Mouse Draw Spline Example

Using the ScreenPosTo3d op we can convert the mouse coordinates to 3D coordinates. For this you need to disable the Flip Y port of the Mouse op.
Using the ArrayPushValue3X op we add the (converted) x and z coordinates (together with z=0) to the array and draw it with the SimpleSpline op.

Patches using ScreenPosTo3d_v3

  • Examples
  • Public
  • My Patches


featureswitch for normalized input values
2022-12-14 - pandur