Jump to content
  • Advertisement
Sign in to follow this  
fishleg003

OpenGL blur question..

This topic is 4664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Still got so much to learn when it comes to opengl but i was trying to get my head around how id add a blur to my game. Im after that sorta blur that is normally around the edges of a flame for example not sure what they call it. Having real difficulty understanding how to do it with what i know currently so simpler the method the better :D. I want to distort the image slightly not alot and in random places a bit like that effect you get in quake when you go under water. Just after a nice simple starting point. One idea i did have but i dont know how to implement this, 1. Id some how copy everything that is currently being displayed into a texture 2. Have an alpha map with the parts of the screen i want blurred 3. blur the texture 4. combine my new blurred texture with my alpha map 5. draw a giant quad over the screen with the new texture Its something id love to know how to do but quite simply dont have a clue at the moment. thx alot for any help.

Share this post


Link to post
Share on other sites
Advertisement
Why not try using the accumulation buffer? I have read in many GL books you can do blur with it. I haven't used it myself so I dont know it is performance wise. Maybe one of the MANY experienced GL coders here will help ya.

Share this post


Link to post
Share on other sites
No, do not use accumulation buffer, as on most pc it is very slow.
If you don't know fbo and glsl, you could try render-to-texture, nehe(http://nehe.gamedev.net/) has a tutorial on this.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!