Sign in to follow this  
technology

bluring textures using .fx file[dx8]

Recommended Posts

What do you mean with blur? Are you refering to Texture Filtering? Because Blur is something different in Graphics Programming.. So to prevent unwanted answers..

=)

Share this post


Link to post
Share on other sites
Quote:
Original post by Pipo DeClown
What do you mean with blur? Are you refering to Texture Filtering? Because Blur is something different in Graphics Programming.. So to prevent unwanted answers..

=)


i mean normal texture bluring.doing some kind of fake depth of the field.

Share this post


Link to post
Share on other sites
You would render the scene to a texture, then render a quad with that texture applied on it. For each pixelfragment (pixel shader) you'd take the surrounding pixels and use your formula to calculate the final outputpixel.

For DOF, you'd most probably use the Z in the formula..
To be honest, don't know the exact implementation.. So I can't help you. But do look at nvidia's developers website. You can find a lot of (FX) shaders there.

Share this post


Link to post
Share on other sites

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