Jump to content
  • Advertisement
Sign in to follow this  
ade-the-heat

OpenGL quick motion blur question

This topic is 4489 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

When we use opengl to do motion blur will it also blur the background houses if the camera is moving about quickly, eg I want to give the effect that the player's vision has become blurred due to dehydration/drunkeness cheers

Share this post


Link to post
Share on other sites
Advertisement
Depends on how you implement the motion blur. OGL doesn't have a glMotionBlur() call so it's up to you what you do.

Anyway - in most cases you'll use sth. like the accumulation buffer and in that case you will most likely blur pretty much everything if you do it the "simple" way.

With more time and brain you can blur anything you want.

Greetings, Roga

Share this post


Link to post
Share on other sites
The accumulation buffer is a common implementation. There's lots of examples out there. You could also not completely clear the color buffer, but just partially clear it. Clear it with an alpha of 0.2 or something to tune the effect you want. This is also a cheap and easy way of getting some blur.

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!