2
$\begingroup$

I created a simple render with a compositing node: the "fog glow". I want to make one object give off this glow. However, not only can I not find a way to affect only that object, it doesn't even show up in the rendered result.enter image description here

These are the nodes I've used. Am I missing something?

I am using Cycles Render, not Blender Render!

Here's the render (I was fiddling around with it after a few responses and have come up with nothing, clearly.)

$\endgroup$

1 Answer 1

0
$\begingroup$

There are two problems here. The first is that you are not getting any fog glow and this is easy to resolve - the problem is that only parts of the image that are above the Threshold setting of the Fog Glow node will be made to glow. As you appear to not have any bright emission parts of your render, using a Threshold of 1.0 will result in no glow - try reducing the Threshold in order to see the glow.

As for the separating the glow so as to only affect certain objects in the scene, you can use the Object Index render pass to generate a mask in order to affect only those elements that you require to 'glow'. In order to do this, first give each of your objects that you require to glow a specific Object Index by setting the Pass Index in the Object properties in the right-hand panel :

Pass Index

Enable the Object Index pass by enabling it in the Render Layer :

Render Layer Object Index pass

In the Compositor Nodes, you can now use the following nodes :

Compositor Nodes

Here the ID Mask is set to the same Index as you have used to identify your object(s). This will produce 1.0 for each pixel corresponding to the parts you want to 'glow' and 0.0 for the rest of the image. The subsequent Mix nodes generate two images - one where the objects matching the Index are black while the rest of the image is shown, while the other where the object is shown with the rest of the image black.

The Fog Glow can then be applied to the relevant image to apply the glow - ensure to set the Threshold to zero so as to glow everything that is greater than 'black'.

All that is now required is to recombine the two images using the Add mode - any black regions will be replaced with the other image. Since the masks used to generate the images are mutually exclusive, only the 'glow' parts of the images will overlap.

This can produce the following result :

result


Looking at your Blend file, you've got some minor differences in your setup that are affecting your results. This should be amended as follows :

amendments

Not the highlighted changes; the Mix nodes should be mixing black (otherwise the white will also be "glared"), the two branches should be combined with Add instead of Mix, the Fog Glow needs a lower Threshold.

Note that the Fog Glow produces quite a subtle effect. A quick way to increase it would be to chain multiple Fog Glow nodes together :

amended result

$\endgroup$
5
  • $\begingroup$ I noticed that this was in Blender render. I'm using Cycles. Should they work the same? I followed all your instructions exactly, and can see no other difference between the two. $\endgroup$
    – Claire
    Dec 21, 2018 at 11:32
  • $\begingroup$ @Claire I was also using Cycles - I’ll download your Blend file later and take a closer look. $\endgroup$ Dec 21, 2018 at 11:50
  • $\begingroup$ Okay, clearly I'm clueless, then. I'm fairly new to Blender, if you hadn't noticed already. Thank you. $\endgroup$
    – Claire
    Dec 21, 2018 at 12:14
  • $\begingroup$ @Claire No wories - it only takes one thing to be wrong and the whole result is ruined - it can be very confusing! I've spotted a couple of problems with your nodes which are causing it to not work. I've added an edit - hopefully this helps. $\endgroup$ Dec 21, 2018 at 13:55
  • 1
    $\begingroup$ It has worked! Thank you so much for your help! I will be using this in the future. $\endgroup$
    – Claire
    Dec 22, 2018 at 1:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .