Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: [OpenGL] My quest for glowy lines

  1. #11
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Re: [OpenGL] My quest for glowy lines

    Well from what I can tell I would be able to render directly to a buffer which I can then make my set of textures that will be combined after to create the bloom effect. Kind of like how the picture above shows. I believe it's saying that I'd use an FBO to prevent making this process too slow. I guess if I'm using a buffer for what I want to glow I could easily draw what will be normal under the bloomed stuff (direct to screen), then do my bloomed stuff (to the FBO then onto screen) and on top of that I could put my interface things such as text and whatnot. (again direct to screen as per normal)

    Not sure if I'm just making this up or dreaming, but this is what I'm hoping the referenced technique will allow. My trouble is the functions I need to use to make each of this happen. First the FBO stuff (creation and setting it as what GL will draw to), doing the Gaussian blur, then taking the FBO and applying it to my screen. I've been looking up this effect in some of the official references for OpenGL. In fact I just ordered the 4th Edition of the OpenGL Buperbible (blue book).
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #12

    Re: [OpenGL] My quest for glowy lines

    WILL, you may find something useful here http://www.pascalgamedevelopment.com...?topic=5454.15
    From brazil (:

    Pascal pownz!

  3. #13
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Re: [OpenGL] My quest for glowy lines

    Hey thats awesome, I'm going to have to check it out. If I'm not mistaken it was not just lines, but quads as well no?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #14

    Re: [OpenGL] My quest for glowy lines

    Not sure if this will help, but this site seems pretty neat:

    http://homepage.mac.com/arekkusu/bug...nce/TexAA.html

    cheers,
    Paul

  5. #15

    Re: [OpenGL] My quest for glowy lines

    If you want the blur on all objects and can target some kindof recent hardware, then render the whole scene to a texture, and then do a GLSL blur on the resulting texture.

    http://www.gamerendering.com/2008/10...filter-shader/

    That would probably end up with what you need.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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