Skip to main content
gamedev.net
🔒 Locked

Problem with Framebuffers

Started by Lord Faron 1 reply 300+ views
Original Post
Lord Faron
Lord Faron
Hi! I want to render my scene into RGB fp16 texture. I create a framebuffer with that texture as color attachment 0 and a renderbuffer as depth. The problem is nothing is rendered into the texture. It's completely black (which is also interesting since I don't initialize it's content - NULL as data for glTexImage2D). Even when I set clear color to 1,1,1,1 and clear the view, the texture is still black. When I switch from framebuffer to simple glCopyTexSubImage2D everything works fine. I check framebuffer status every time it's being bound or changed in any way, and it's complete. I also check glGetError and it's also ok every time. Anyone knows what's going on? I'm trying to implement HDR and I can't do it without framebuffers. Please help. BTW: I use other framebuffers to do variance shadow mapping and it works fine.
if (time() == $) { $ = 0; }
MARS_999
MARS_999
Post your code, as Phantom would say... :)
Lord Faron
Lord Faron
Quote:
Post your code, as Phantom would say... :)


I have resolved the problem. Well, to tell the truth, it suddenly started to work (after a couple of weeks of not working) on it's own. I have no idea why it haven't worked earlier, but since it works now I'll just assume everything is fine for now.
Thanks anyway!
if (time() == $) { $ = 0; }

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.