4
$\begingroup$

What I'm trying to do in Blender is a blur effect in a way that, whenever something is not behind the crystal of the glasses, it should be blurred. That means, the sentence "Saw you there" should be clearly defined meanwhile "And I thought" should be blurred. Any ideas?

Thank you!

enter image description here

$\endgroup$
  • $\begingroup$ I need to clarify that it is an animation: "Saw you there" comes from the bottom of the scene and stays behind the crystal. The same with "And I though" but it comes from the top of the scene $\endgroup$ – Jose Bellido May 15 '18 at 21:38
  • 1
    $\begingroup$ This does not answer your question really but could you render out a "everything blurry" render and another "everything clear" and composite the two videos with a mask of some sort? I am sure this could be done in Blender without compositing but you will have to wait till someone who knows the math nodes better than me to help there. $\endgroup$ – icYou520 May 15 '18 at 21:49
  • 1
    $\begingroup$ Sounds like the work for postprocessing in the compositor $\endgroup$ – Duarte Farrajota Ramos May 15 '18 at 22:09
  • $\begingroup$ I know a way to achieve what you want through object masks and the compositor, but I'll have to post my solution later on in the day. $\endgroup$ – masterj2001 May 16 '18 at 0:00
6
$\begingroup$

Set the lenses object pass index to a value of 1 Lens

Then under the layers panel use the passes dropdown and enable Object Index

Object Index

Render that out and then head over to the compositor. Create a node setup as illustrated by the image below: Compositor

As you can see by this render, I believe it resolves your problem. Final

Hope this helps.

$\endgroup$
5
$\begingroup$

Put a refraction shader on a plane everywhere exept the glasses' lenses.

enter image description here

enter image description here

$\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.