Jump to content
  • Advertisement
Sign in to follow this  

Blur + multiple Pixelshader

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



I have the following problem.

I have an object, which I have to blur and this object is in sort of a box, but only in the edges of this box (box is an open box).

To blur the object, I render it in a texture -> then in the next step I downscale this texture -> then I blur it vertically and back to a texture -> then I blur this texture horizontal -> then I scale the texture up and render it to the screen


To draw also the box object, I render this object to another texture but only with lighting and then I draw this with additive blending on the screen.


The problem is that the blurred object is now transparent, and I have lost my depth values. So I have the choice if the box object is rendered over the blurred object or the other way round. But I want that the blurred object is inside the box object.


How can I make this the right way. I guess it is impossible the way I do that. Has anyone an idea?


I am using C++ with DirectX 11.




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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!