The parts of code you posted should just work fine...
Well, then there shouldn't be any problems to copy the framebuffer into the texture after rendering. :-/Originally Posted by M109uk
No, that shouldn't be necessary...Originally Posted by M109uk
?!? When you use wich glBindTexture where? You don't try to bind the blank texture _before_ rendering the world, do you? and what is a layer in your case?Originally Posted by M109uk
If your camera class works as it is supposed to, it should allow you to view the world from every position you wish. However, you might want to try saving the matrix by pushing it onto the stack before moving the camera. That way you can restore the former position without moving the camera back...Originally Posted by M109uk
Hmm. Sorry, that I can't help you but I'm pretty sure that the parts of code you posted are okay... If you want I could have a look at the whole project or respective an excerpt illustrating the problem.
-lith
Bookmarks