Black Friday Is Now Live!
Days
Hours
Minutes
Seconds
25% Off On All Courses
Code: BF25

Houdini XYZDist & PrimUV Explained

In this tutorial we cover what the PrimUV and XYZDist functions do and how they operate. I also give a few examples of how you would use them.

About

In Houdini, the xyzdist function finds the closest point on a geometry from a given position in 3D space and calculates the distance between the point and the geometry. It requires the geometry (usually a node or object) and a 3D position as input. It returns the distance, the position of the closest point, and optionally the primitive number and UV coordinates on the surface. It’s commonly used for proximity calculations, collision detection, and surface sampling.

Download project files

Subscribe to our newsletter to download and access our full library of free project files, courses, and resources.

new release

Motion Graphics in Houdini

Learn how to build, animate, and direct complete product commercials from scratch in Houdini. From procedural animation and effects to lookdev, lighting, and final shots.

Latest Tutorials

Learn essential techniques in Houdini & Nuke that will be useful across all projects. 

particles, vellum, solaris
Optimizing Particles in Houdini
particles, vellum, solaris
Assign materials by name in Solaris – Houdini Tutorial
particles, vellum, solaris
Mastering the World Position Pass in Nuke

Pro Courses

Learn Houdini through real world projects. Master techniques used by professionals on high-end films & cinematics.

modeling, simulations, fast setups
Houdini For Generalists

6h20m

Houdini

solaris, sops, instancing
Solaris Workflows in Houdini

2h05m

Houdini & Nuke

procedural techniques, cops, solaris
Solar Flares in Houdini & Nuke

6h20m

Houdini & Nuke

Free learning path • Project Files • Resources

Subscribe to our newsletter

Subscribe to our newsletter to download and access our full library of free project files, courses, and resources.