Hey everyone!
Today I give you another freebie :D! This one is on compositing, but specifically making hot metal glow an react to heat. I actually made this for a friend a few nights ago, who didn't know how to separate one material out of everything for compositing and I made this for him and he showed me a great way of making electricity or bolts (however you want to phrase it).
Just to show you what the file makes, you can
check this animation.
But for the sake of speed, here we have compositing:
And here we don't:
Veeeeeery big difference, especially when you look at the animation.
This is how you do it:
- Add a new material in Blender (Blender- and Cycles render) and scroll down to the Options section. Expand it and set the Material Index (Pass Index for Cycles) to 1 (or whatever else, except 0)
- In your render settings, expand Passes and tick Material Index
- Go into the node editor and switch it to compositing (the two pictures above one another) and tick:
> Use Nodes
> Backdrop
> Free Unused
- Add (Shift+A) a Viewer node (output category) and connect the Material Index output from the Render layer node to it.
- Over that connection, add an ID Mask node (from the Convertor category), set it to 1 (or whatever you set the metal to) and tick Anti-Aliasing
- You should now see a mask
- Simply connect this mask to the factor input of a Mix node (Color category), blur or glare it as you wish and then using another Mix node, Add it over the original render.
Your set-up should look something like this when you're done:
(if too small, just click the image; a full-size should open)
As you can tell, I animated my compositing so the glow will increase as the cube gets hotter (right-click on the variable and insert keyframe). What I didn't add was normalization, but that's a tip for later, so watch this space for that one!! :D
I hope you enjoyed this and that you gained something from it! If you have any questions, go like
the Facebook page or feel free to use
the contact page here :). I can't promise a reply, but I'll sure try!
Thank YOU!!!!!!!!!