Silhouette curve around meshes

calendar_today

01.01.2023

label

Modeling

mouse

Houdini 19.5

Description

Clipping a grid based on the distance towards a flattened mesh: silhouette.hipnc
Outlining a mesh as seen by the camera using normal device coordinates (NDC): silhouette_camera.hip

1 Code

After importing the camera operator path the point positions are transformed into the normal device coordinates. The Z coordinates are flattened to 0.0 and the camera's aspect ratio 16:9 is scaled to the height.

string cam = chs('cam');
v@P = toNDC(cam , v@P);
v@P.z = 0.0;
v@P.y *= 9.0 / 16.0;
download

Downloads

smart_display

Videos

Silhouette from Camera Perspective - Houdini Tutorial