ScreenPosTo3d_v3 Op
convert screen coordinates to a 3d position
Summary (oneliner)
Useful when you want to do things like convert the mouse co-ordinates on screen to 3d co-ordinates.
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
Trigger in
Mouse co-ordinates in pixels X axis
Mouse co-ordinates in pixels Y axis
Outputs
Normalized position on the X axis
Normalized position on the Y axis
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
Changelog
feature | switch for normalized input values 2022-12-14 - pandur |