PixelProjection_v3 Op
Remaps world co-ordinates to a pixel co-ordinate system
Summary (oneliner)
when enabling using viewport size drawing a rectangle with a width/height of 100, the screen space of that rectangle is exactly 100 pixels
Full Name
- Ops.Gl.PixelProjection_v3
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch 2d pixel coordinates
This patch shows how to get the pixel coordinates of the mouse in the view port.
INPUT PORTS
render (Trigger)
Trigger the op
Size
Size index (Number: integer) Canvas ViewPort Manual
Width (Number)
Width if Use Viewport Size is disabled
Height (Number)
Height if Use Viewport Size is disabled
Clipping
frustum near (Number)
frustum far (Number)
Position 0,0 index (Number: integer) Top Left Top Right Center Bottom Right Bottom Left
Flip
Flip X (Number: boolean)
Flip Y (Number: boolean)
Zero Y (Number: boolean)
OUTPUT PORTS
trigger (Trigger)
Trigger out
Size Width (Number)
Size Height (Number)
Patches using PixelProjection_v3
Changelog
created op | pandur - 2019-10-28 16:45 | |
cloned op from Ops.Gl.PixelProjection | pandur - 2023-06-23 13:01 | |
rename | Ops.Patch.P4SCBDz.PixelProjection_v2 renamed to Ops.Gl.PixelProjection_v2 | pandur - 2023-06-23 15:37 |
cloned op from Ops.Gl.PixelProjection_v2 | pandur - 2023-11-27 16:20 | |
rename | Ops.Patch.PenrnhM.PixelProjection_v3 renamed to Ops.Gl.PixelProjection_v3 | pandur - 2023-11-27 16:22 |