Project

General

Profile

Feature #5

New Effect: blur

Added by Distorted Admin over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Start date:
06/03/2016
Due date:
% Done:

100%

Estimated time:

Description

Add Gaussian blur. Maybe will force a re-design of the Effect architecture as this is going to be a two-pass effect.

History

#1

Updated by Distorted Admin over 8 years ago

  • Priority changed from Normal to High
#2

Updated by Distorted Admin almost 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Distorted Admin
#3

Updated by Distorted Admin almost 8 years ago

Commit 2b942cd0 adds naive implementation of blur. Issue not closed yet, though - still need to

a) add stencil attachment to the mBuffer FBO and only blur the objects which are actually blurred
b) convert the blur into a two-pass convolution of variable number (1,2 or 3) of passes of a arbitrarily broad box blur. (this will make the blur equally fast no matter what's the size of the kernel!)

#4

Updated by Distorted Admin almost 8 years ago

  • % Done changed from 0 to 60
#5

Updated by Distorted Admin almost 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 60 to 100

Commit ed841982 provides separable, fixed-function Gaussian Blur. A (2N+1)x(2N+1) sized kernel requires 2N+ (N%2==1 ? 2:4) texture fetches, propably the best one can do if one wants to be Gaussian-perfect.

To do: explore Kawase Blur.

#6

Updated by Distorted Admin over 7 years ago

Commit 0ef8fafc finally adds full support for BLUR along with shared Postprocessing Buffers of any MIPMAP level and merging the resulting buffers into the rest of the scene taking into account the depth map!

'Multiblur' app checks this functionality.

Also available in: Atom PDF