From the course: Nuke New Features Consolidated

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Shadow casting: Semitransparent shadows

Shadow casting: Semitransparent shadows - Nuke Tutorial

From the course: Nuke New Features Consolidated

Shadow casting: Semitransparent shadows

- [Narrator] The solid shadow works fine for solid geometry, but if you want to cast semitransparent shadows, you have to change the light's shadow mode to use the alpha channel as a transparency mask with a shadow. I'm using the shadowCasting Nuke file, which you'll find in the exercise files folder. Our semitransparent element is this leaf here. And, with the alpha channel, there's our semitransparency. Back to our Scanline render. Let's take a quick look at the 3D setup. So I'll switch to the 3D view. So I have this card floating over the other card. And the top card has the leaf on it. We have our camera and our light. Okay, back to the scanline render node. So we have a Phong shader on top of the card so it'll receive the shadows, and another Phong shader on top of the floating card so it'll cast a shadow. And we've hooked up our leaf to all the inputs. Now here's the big issue you have to keep in mind. It is this unlabeled arrow input here that receives the alpha channel for the…

Contents