Making a texture render to itself

Started by
10 comments, last by george7378 10 years, 2 months ago

You are perhaps not combining the ouput of first horizontal pass, and you only sample original texture in creating vertical pass. Blending them will result in a blur, but not the exact gausian blur, since that demands the vertical dissorted texture to be sampled to generate horizontal one. But if result is satisfying and you are not doing an university assignment you can stick to it, since it is more optimized in terms of memory resources and state changes.

Advertisement

I've changed it so that I do the ping-pong rendering between two different textures. It's very little extra effort but it means that I can be guaranteed safe results (and I don't get the warning signs any more). When I render properly I get exactly the same result with the Gaussian blur as I I do with the single texture, so the GPU must be making a separate copy. Thanks for the help!

This topic is closed to new replies.

Advertisement