Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Linear sampling Gaussian Blur

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2012
    Posts
    5

    Linear sampling Gaussian Blur

    I've recently been experimenting with implementing a gaussian blur which samples half texels in attempt to retrieve the data of both texels. However I'm slightly skeptical of my results so I'm going to post my methods here and an output of the image.

    I'm currently calculating my weights and offsets like so: weight1 * index + weight2 + (index + 1). After which I divide by the texture size.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	new.jpg 
Views:	57 
Size:	10.8 KB 
ID:	904  
    Last edited by UraniumSlug; 11-15-2012 at 01:30 PM.

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2012
    Posts
    5
    When I use i as the offset and then multiply by

    vec2 pixel_size = vec2(0.5 / tex_size.x, 0.5 / tex_size.y);

    Would this make any difference?
    Last edited by UraniumSlug; 11-15-2012 at 01:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •