beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ScreenPosTo3d
Ops.Gl.Matrix.ScreenPosTo3d_v2
Namespace: Ops.Gl.Matrix

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Gl.Matrix.ScreenPosTo3d_v3

convert screen coordinates to 3d coordinates

summary (oneliner)

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

doc

issues

youtube id

collections

related ops

Inputs

Exec (Trigger)

Trigger in


X (Number)

Screen position X axis


Y (Number)

Screen position Y axis


Outputs

Trigger out (Trigger)

Result X (Number)

X axis position in 3d space


Result Y (Number)

Y axis position in 3d space


Result Z (Number)

Z axis position in 3d space


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
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.



Credits


Changelog


created op
2019-02-12 - pandur

Examples using ScreenPosTo3d_v2

Public Patches using ScreenPosTo3d_v2