bluring textures using .fx file[dx8]

Started by
2 comments, last by Pipo DeClown 18 years, 9 months ago
Hi How to blur textures using .fx file in dx8.Some example code would be helpfull. thanks
Advertisement
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..

=)
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.
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.

This topic is closed to new replies.

Advertisement