How to use a frame buffer #2936
Answered
by
bkaradzic
gamecoder-nz
asked this question in
Q&A
-
Here is my code
But I just get a white screen. If I remove the setViewFrameBuffer line it works. What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
bkaradzic
Sep 29, 2022
Replies: 1 comment 4 replies
-
In that code, you render into offscreen frame buffer and then you don't do anything with it... When you remove See provided examples (many examples show framebuffer usage): |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
gamecoder-nz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In that code, you render into offscreen frame buffer and then you don't do anything with it... When you remove
bgfx::setViewFrame
, things are rendered into backbuffer which becomes visible after callingbgfx::frame
.See provided examples (many examples show framebuffer usage):
https://bkaradzic.github.io/bgfx/examples.html#hdr