Jump to content
  • Advertisement
Sign in to follow this  
Xcode_t

OpenGL Rendered texture is blank

This topic is 1920 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites

Oops. I'll put them up right now.

 

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

Edited by Xcode_t

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!