5
$\begingroup$

is there any way to ''fade out'' the background?i want the front part to stay the same, but i need to fix that 'background (with the red arrow) putting a Black hole/Black color

Is that possible?

enter image description here

Something like this: (but backwards)

enter image description here

$\endgroup$
  • 1
    $\begingroup$ You can do that in the Compositor if you render the background as transparent. $\endgroup$ – VRM Feb 4 '15 at 16:24
4
$\begingroup$

You could try blurring the background with a defocus node controlled with a mist pass.

Set your camera to display mist.

enter image description here

Enable mist on the render pass control.

enter image description here

Adjust the mist distance so it starts close to your camera and ends roughly in the area you want to blur. enter image description here

Then in the compositor set the mist pass trough a color ramp node and use that to control the defocusing of the background.

enter image description here

If you move the sliders on the color ramp you can determine at what distance things start to blur, black will remain in focus, white is where the blur will start. The blur amount is determined by the defocus node max blur settings and the threshold values.

$\endgroup$
  • $\begingroup$ Wait...where do i find the compositor, is that the node editor? and where do i look at that kind of nodes? $\endgroup$ – beavoru Feb 6 '15 at 18:48
  • 1
    $\begingroup$ The compositor is part of the node editor window. look closely at the icon on the image on the answer, the one that looks like two photos on top of each other. i.stack.imgur.com/ws8iy.png $\endgroup$ – cegaton Feb 6 '15 at 19:22
  • $\begingroup$ I just did it! thank you :) Now, how can i also 'fade' the part near to the character? (the exterior 'ring')? it looks to sharp :/ scontent-b.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/… $\endgroup$ – beavoru Feb 6 '15 at 19:42
  • $\begingroup$ Oh, i just changed the Threshold and it worked, thanks again! $\endgroup$ – beavoru Feb 6 '15 at 19:56
4
$\begingroup$

I think that the solution for you is in this link: http://wiki.blender.org/index.php/Doc:2.4/Tutorials/Composite_Nodes/Setups/Blur_the_Background Although I don't know why, but it doesn't work for me. I tried many combinations and ended up with this kind of method (which is experimental). I don't think that this is the proper node setup, but the result is quite fine as you can see below: enter image description here

Go to Compositing Nodes window and set up the nodes as shown below. Add a Map Value node (Add-->Vector-->Map Value) and experiment with its Offset and Size values. enter image description here

As I said, I don't think that this is a proper method of doing this, but I wanted to share it with you. It may work for you, but if not, please tell me in comment and I'll delete this answer.

$\endgroup$
3
$\begingroup$

After reading your question again i think this is how i would do it:

  1. Turn on "Transparent" in the render panel
  2. Go to the node editor and go to the renderlayer nodes and check "Use Nodes"
  3. Then setup the following node chain:

enter image description here

This setup changes the Alpha of the all the pixels in the render based on how far from the camera the pixel is. The fade can be adjusted using the ColourRamp node. Bear in mind that the Z value is based on the cameras clipping distances, if you change these you may have to tweak the bottom value in the math (devide) node.

$\endgroup$
2
$\begingroup$

That can be done easily in the Compositor using only nodes. Have a look at this node group:

Node setup

They will output a nice background like this:

Background

All you need to do now is to add the render image over the top of it. To do that, update your nodes to look like this:

Final nodes

And voila! It works perfectly:

End result

You will of course want to play with color values etc, but the technique is the same.

You may find it works well to use a mixture of this and @ChristyJames answer.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.