duangou6446 2015-06-03 21:07
浏览 222

OpenGL帧缓冲区后处理

I'm trying to apply a simple vignette effect to my scene using a framebuffer and offscreen rendering. I was able to get the FBO and the effect working but for some reason my scene is not appearing at all. When the scene loads I can see the objects for a split second then it just goes "blank" (check attached gif). My understanding is that the scene is rendered into the FBO correctly (otherwise it wouldn't be visible at all, not even for a short time), but for some reason it is wiped out by something.

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

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

For comparison, this is how it looks rendered directly onto the built-in framebuffer. Just to show the scene seems to be rendering properly.

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

  • 写回答

1条回答 默认 最新

  • dongyupan4850 2015-06-04 13:52
    关注

    Found the problem: forgot to bind the vertex array in my post-processor's render cycle. Checked the code at http://en.wikibooks.org/wiki/OpenGL_Programming/Post-Processing and it's missing there too.

    Anyways, it was a good lesson and I feel I've got a better understanding of OpenGL now.

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端