ProjectScreenPoints
Only in Wrap4D
The node projects screen points onto a mesh surface through a camera. It can be used to project tracked markers from Track back into 3D space to be used in wrapping.
A point present in one view is projected directly onto the mesh. A point present in multiple views is first triangulated, then projected onto the mesh. Points are matched between views by name.
Since ScreenPoints store points in a normalized (-1 to 1) format, the node requires to specify a resolution to perform projection. In fact, the node only needs uses the resolution to compute the aspect ratio.
Attention
The node only works with undistorted screen points and an undistorted camera. Use the
UndistortCamera and
UndistortScreenPoints nodes for the conversion.
Editor
ProjectScreenPoints node has a visual editor with two viewports. The left viewport displays the result of the projection of the screen points onto the mesh. The right viewport displays the same result through the camera view.
Inputs
- Geometry
GeometryGeometry to project points to- Screen Points
ScreenPoints(multiple) Screen points to be projected. Connect one set per camera, in the same order.- Camera
Camera(multiple) Cameras to project through, in the same order as Screen Points.
Output
NamedPointsOnTriangleArray of named points on triangle
Parameters
- Use Camera Resolution:
if set, uses each camera’s resolution instead of Camera Resolution
- Camera Resolution:
image width and height to perform projection. In case of tracking points in Track, it should be the same resolution that was used for tracking. In fact, the width and height are only used to compute the aspect ratio
- Show Point labels:
if set, points names will be visible in the editor
- Min Views to Accept Point:
if you use multiple sets of Screen Points and Camera, specifies the minimum number of views required to accept a projected point.
- Max Projection Distance to Accept Point:
maximum distance between a triangulated point and its projection on the mesh. Points farther away are rejected.
- Fail on Mistrace:
if set and any point is not accepted, the node will fail. Otherwise, missed points are simply ignored.