Jump to content

full-resolution lens (bokeh) filter. Is it brokehn?


photo

Recommended Posts

I've been implemting DOF into my project. Gaussian blur and half-screen sized lens (bokeh) filter work fine, but when I switch to full-resolution lens (bokeh) filter, I get the following artifact (see image)

 

post-386-0-26739900-1326206964_thumb.png

 

As you can see across the door, the blur has just gone straight across the centre of my screen, the focal distance is set to that of the door. I don't know the difference between a half or a full bokeh but from the result this looks as if its not correct. So I'm just highlighting the issue, I can mange without this if it is in fact not working as it should.

Link to comment
  • 3 weeks later...

I don't know the difference between a half or a full bokeh but from the result this looks as if its not correct.

The difference between render_dof 2 and 3 is the size of the buffer used for blurring of the screen image:

  • 2 is to to use a buffer two times smaller then a screen buffer
  • 3 is to use a buffer of the same size as the screen image. This mode was mostly designed to capture cinematic video, as it is more accurate in small details, but slower. Half screen (2) is a way better choice for real time.

In your case, it really looks like Far blur range is set to 0, which creates a visible line between blurred and non-blurred areas. Check the attached images, full-screen bokeh is working fine.

post-13-0-71575500-1328023130_thumb.jpg

post-13-0-71974000-1328023139_thumb.jpg

Link to comment

I've moved on from the issue since I posted this and I do believe it is entirely possible that the issue was what you have stated, but what I find strange is that it only happened when I was in render_dof 3. Thanks for the clarification on the modes, if I find the issue happens again and can't fix it with the blur range then I'll know where to come :-)

Link to comment
×
×
  • Create New...