go - OpenGL framebuffer post processing -


i'm trying apply simple vignette effect scene using framebuffer , offscreen rendering. able fbo , effect working reason scene not appearing @ all. when scene loads can see objects split second goes "blank" (check attached gif). understanding scene rendered fbo correctly (otherwise wouldn't visible @ all, not short time), reason wiped out something.

source files: gist.github.com/morcmarc/31a02dbbd9aad2955f47

http://postimg.org/image/wvhuestr3/

for comparison, how looks rendered directly onto built-in framebuffer. show scene seems rendering properly.

http://postimg.org/image/jegkle3z9/

found problem: forgot bind vertex array in post-processor's render cycle. checked code @ http://en.wikibooks.org/wiki/opengl_programming/post-processing , it's missing there too.

anyways, lesson , feel i've got better understanding of opengl now.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -