Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DBraun/MatrixCHOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

MatrixCHOP (Matrix Multiply CHOP)

The MatrixCHOP produces the screen-space coordinates of points based on a camera and an aspect ratio. The inputs:

  • Positions (XYZ): 3 channels and any number of samples
  • Camera View and Projection Matrix : 16 channels and one sample. Check the demo project for an easy example.

The output:

  • The UV-coordinates of the positions in the camera's view. UVs are typically between [0,0] and [1,1] if they're inside the camera's view, but the MatrixCHOP does not clamp values or delete out-of-bounds samples.

Demo

In this image we render a white rectangle at an oblique angle. The MatrixCHOP takes the world-space positions of the rectangle's points, the camera's full view-projection-matrix, and then produces 4 new points. These 4 points are then depicted in a separate render of red squares. These squares land exactly on the corners in the first render, confirming that the MatrixCHOP outputs correct screen-space coordinates.

Instructions

Build the dll yourself, or use a compiled DLL file. MatrixCHOP/MatrixCHOP/Plugins/MatrixCHOP.dll has been compiled as a Custom Operator for TouchDesigner 2019.19160.

Changelog

  • 2019年09月27日 Optimization
  • 2019年09月19日 Public release

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /