Results 1 to 3 of 3

Thread: I need an Edge Dilation Filter GLSL!!

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2009
    Posts
    5

    I need an Edge Dilation Filter GLSL!!

    People,

    I have a trouble. I have an image, and a shadowmap of this image done. Trough the shadowmap and applying a sobel edge filter i could find the contours of the shadowmap. Now my purpose is to dilate them. Unfortunately i could not find any example of this here except this one made by PocketMoon:

    http://www.opengl.org/discussion_boa...;Number=223976

    Unfortunately i don't have acess to this file, and i can't seem to find any similar example in the internet! Can anyone help me? Here's my project. What do i have to code/do? http://rapidshare.com/files/26586472..._GLSL.zip.html

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Location
    Poland
    Posts
    111

    Re: I need an Edge Dilation Filter GLSL!!

    I have seen dilation fragment shader in OpenGL Super Bible, I don't remember it, but the idea was simple. Take 9 samples (3x3) (if You already have convolution filters it should be easy), and write maximum of them (brightest) as output.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2009
    Posts
    5

    Re: I need an Edge Dilation Filter GLSL!!

    Yes, but my main problem is not about knowing how the shader works, but how to transport the framebuffer into a texture that the shader will receive and modify...in this case my program should have 2 shaders, first the sobel filter one, and second the dilation one. I just don't know how to make the interaction between them, wich means i dont know how the dilation filter can receive the result of the sobel filter to make the dilation. How can i code/pseudo code that in GLSL?

Similar Threads

  1. I need an edge dilation filter (GLSL)!!!
    By MKDRag0n in forum OpenGL: GLSL
    Replies: 1
    Last Post: 09-04-2009, 09:39 AM
  2. I need an Edge Dilation Filter GLSL!!
    By MKDRag0n in forum OpenGL: GLSL
    Replies: 3
    Last Post: 08-11-2009, 04:55 PM
  3. About Mag and Min Filter
    By Poma in forum OpenGL: General
    Replies: 5
    Last Post: 05-05-2004, 06:25 AM
  4. Edge Dimension or Edge Size
    By Rong Yao in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-11-2002, 07:20 PM
  5. Filter
    By Dimae in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 04-18-2001, 02:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean