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 - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


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)

Changelog

Patches using PixelProjection_v3

  • Examples
  • Public
  • My Patches