Sign in to follow this  

How can you blur without shaders?

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

Hi, I'm trying to experiment with blurring things and I have a crappy GeForce 4 440 Go that doesn't support shaders. I was wondering if there was another way to do blurring. In the redbook I saw a function called glconvolutionfilter that looks like it could but it must not be core in version 1.1, is there an extension? Or are there any other ways blurring can be done without shaders?

Share this post


Link to post
Share on other sites
Sorry, I meant like gaussian blur or radial blur or just something where you can mess with pixels and it parts look unfocused like edges and stuff. For example taking a pixel and averaging it with its 8 neighbors and so forth.

Share this post


Link to post
Share on other sites
What you can do is copy the screen to a texture and blend that texture a few times after stretching it. There is a nice radial blur example on Nehe that does this.
The real solution would be to by a new graphics card if you ask me. You can get a card that support vs/ps 2.0 for under 100 buck which is all you will need.

Share this post


Link to post
Share on other sites
Quote:
Original post by Player_0
In the redbook I saw a function called glconvolutionfilter that looks like it could but it must not be core in version 1.1, is there an extension?

It's in GL_ARB_imaging..

Share this post


Link to post
Share on other sites
Change the viewport(to 512X512,256X256 or 128X128)(at a time interval)and draw the object you want to blur in that viewport ,copy that image into a texture,make a quad(on full viewport) textured with that texture and blend it with the screen(10%transparency,alpha=0.9f) background,come back to the old viewport and clear the screen,than draw that quad over the drawn object.

Accumulation buffer sucks! Way tooooo slow!

Share this post


Link to post
Share on other sites
Quote:
Original post by evolutional
Have you tried playing around with the accumulation buffer?

The accumulation buffer is only supported in hardware on really new high end cards (definatly not GF4 Go). On anything else it might work but it'd be hideously slow.

Like Daos says, render it to a texture somehow then blur the resulting texture (usually by re-rendering it to itself repeatedly with small position offsets).

Share this post


Link to post
Share on other sites
Check out NeHe's lesson 36:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=36

Its a radial blur demo, but it can easily be modified to a gaussian, motion or whatever blur. No shaders needed and its pretty fast and easy to implement.

Share this post


Link to post
Share on other sites

This topic is 4861 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this