Sign in to follow this  

Effects that use the framebuffer

This topic is 4832 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; To do some special effects, like heat (like in doom3) or glasses that deform the image behind it, u need a copy of the framebuffer in a texture...witch is the better way to have it? copy the entire screen by copysubimage or render a second time in a pbuffer? I think the second way is out because using stencil shadows and shaders twice will kill the performance...does anybody knows the way doom3 do that? Thanks

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Instead of rendering the scene a second time you could render it into the pbuffer once and then use it to texture a quad that covers the whole screen.

Share this post


Link to post
Share on other sites
I thought about that...but the problem is when u need to do effects that use the z-buffer...like particle systems that produce heat effect...

Share this post


Link to post
Share on other sites
Sign in to follow this