Skip to main content
GameDev.net gamedev.net
🔒 Locked

Rendered texture is blank

Started by Xcode_t Apr 8, 2013 at 5:15 PM 3 replies 1.5k views
Original Post
Xcode_t
Xcode_t

I am attempting to render to a texture, then render the texture to the screen, but it always seems to be blank no matter what I do. Can you guys take a look for me and see what I am missing here?

The basic idea is that it renders into the _preRenderColorbuffer, renders the scene into _mainRenderColorBuffer, then uses _postRenderColorbuffer to combine the results and perform all post-render effects, such as bloom effects, antialiasing, et cetera. I currently have it rendering the scene into _preRenderColorbuffer, and simply using _postRenderColorbuffer to render the texture to the screen. It doesn't work at all, from the looks of it, because I just get a black square in the middle of the screen. I am beginning to wonder if I can actually do this on iOS with OpenGL.

EarthBanana
EarthBanana

You made sure your shaders are linking and compiling correctly didn't you? I didn't see the vertex or fragment shader source in the zip file - I saw the code for creating them but not the source code for the shaders themselves

Xcode_t
Xcode_t

Oops. I'll put them up right now.

Edit: If you re-download the zip file, they should be there now.

Xcode_t
Xcode_t

Seven downloads and no ideas? Do you all think I should just start over and simplify the code a bit more?

Xcode_t
Xcode_t

I need an answer here, if anyone has thoughts.

Topic Locked

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

Sign in to reply to this topic.