PixelProjection_v3 Op

PixelProjection

Remaps world co-ordinates to a pixel co-ordinate system


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
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch 2d pixel coordinates

This patch shows how to get the pixel coordinates of the mouse in the view port.
Open In Editor

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

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-10-28 16:45
cloned op from Ops.Gl.PixelProjectionuser avatarpandur - 2023-06-23 13:01
renameOps.Patch.P4SCBDz.PixelProjection_v2 renamed to Ops.Gl.PixelProjection_v2user avatarpandur - 2023-06-23 15:37
cloned op from Ops.Gl.PixelProjection_v2user avatarpandur - 2023-11-27 16:20
renameOps.Patch.PenrnhM.PixelProjection_v3 renamed to Ops.Gl.PixelProjection_v3user avatarpandur - 2023-11-27 16:22