Dot Product – Vector operations

The dot product is often used in VFX to isolate certain regions of geometry. At it's core it's a relationship between two vectors.

About

This tutorial is about the dot product in Houdini and how it can be used in VFX.

We start by explaining what a dot product is. A dot product is a vector operation that compares two vectors and outputs a float value. This float value specifies the difference between the angles of the two vectors.
We can create a sphere and adds noise to it. We then create another sphere that is just a single point. We can now create a dot product node and connect the normal of the sphere to one of the inputs. Then we create a vector that points to each point on the geometry from the second sphere.

The dot product will output a value of 1 if the two vectors are pointing in the same direction, -1 if the two vectors are pointing in opposite directions, and 0 if the two vectors are perpendicular.

Then we can apply this to light up a surface. We create a ramp node and connect the dot product to the ramp. Then flip the ramp so that the values are reversed. This means that the parts of the surface that are pointing towards the sphere will be lit up, and the parts of the surface that are pointing away from the sphere will be dark

This can be used to create a more complex effect, such as snow or rain that only affects the top surface of a mountain. Create a vector that points upwards and connect it to the dot product node. Then create a ramp node and connect the dot product to the ramp. Adjusts the ramp so that only the top of the mountain is lit up.

The dot product can be used with a parameter instead of a sphere. This allows you to specify the direction of the vector that you want to compare the normals to.

In conclusion, the dot product can be used to compare vectors and how this can be used to create a variety of effects, such as lighting and snow.

Courses

Check out how I implemented these techniques in the following courses

 🔗  Sci-Fi Growth

 🔗  Laser Reveal

Latest tutorials

Houdini Modeling with Modeler 2025

Houdini Modeling

Modeler 2025

Modeler 2025 is the best plugin for Houdini modeling. Not only this enables direct modeling in Houdini, it is comparable and might even be better than some dedicated DCCs in the market.

About

I’ve used Houdini modeler with great success in the past, and with the latest updates in Modeler 2025 it really feels like it’s own dedicated modeling DCC, right inside of Houdini.

With seamless integration and custom built tools, excellent shortcuts, radial menus, great response time and topology manipulation, Modeler is looking to be a great contender for other more traditional DCCs like Maya, Blender,  or 3ds Max.

Ultimate FX in Houdini

Electric FX, Volumes, Particles, Destruction, Environments, Lighting, Compositing & more! All the tools you need to deliver high quality shots.

LATEST COURSES

Learn Houdini & Nuke with project based courses. Master professional techniques to create stunning VFX.

Particle Freezing FX

In this course we're going to layer multiple POP Simulations...

Anime Run FX

Create stylized simulations. Learn the secret to anime FX...

Crystal Destruction

Master RBD Simulations. Completely art directable setups...

Fantasy Snow

Control Vellum Grains to create a magical snow effect!...

Vellum sand reveal

Reveal a logo or any mesh underneath sand using Vellum...

Hero Powerup

Create realistic slime FX using grains and Vellum solver in...

Hello there 👋​

I’m Rez and I’ve been working professionally in CGI for the last 12 years. During this time I’ve had the pleasure to work with amazing teams on various projects for League of Legends, Valorant, Puma, Final Fantasy and more! I’m here to teach you all the skills required to work on awesome projects.

Copernicus Sharp Rock Material

Use Houdini Copernicus to create an awesome rocky material. Learn...

Dot Product – Vector operations

The dot product is often used in VFX to isolate...

© 2024 Voxyde. All Rights Reserved.

Share this:

Like this:

Like Loading...

Discover more from Voxyde

Subscribe now to keep reading and get access to the full archive.

Continue reading