PixelProjection_v3 Op

PixelProjection

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


<p>when enabling using viewport size drawing a rectangle with a width/height of 100, the screen space of that rectangle is exactly 100 pixels</p>


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)

<p>Trigger the op</p>

Size

Size index (Number:

<i>integer</i>

)
 Canvas  ViewPort  Manual 
Width (Number)

<p>Width if Use Viewport Size is disabled</p>

Height (Number)

<p>Height if Use Viewport Size is disabled</p>

Clipping

frustum near (Number)
frustum far (Number)
Position 0,0 index (Number:

<i>integer</i>

)
 Top Left  Top Right  Center  Bottom Right  Bottom Left 

Flip

Flip X (Number:

<i>boolean</i>

)

Flip Y (Number:

<i>boolean</i>

)

Zero Y (Number:

<i>boolean</i>

)

OUTPUT PORTS


trigger (Trigger)

<p>Trigger out</p>

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