I am wanting to create a ‘TV’ object that will capture the current buffer from a gluLookAt position and display it, via a texture mapping over a quad. However the framebuffer isn’t a 64,128,256,512 etc format. How would I attempt to do this?
Render the TV camera view to a viewport with power-of-two dimensions, grab the contents of that viewport into a texture with glCopyTexSubImage2d, switch back to a full-screen viewport, render scene including TV.
Alternatively there are extensions that allow non-power-of-two textures, but they aren’t supported everywhere and have some limitations.
Wow you are very nice to reply so quickly!
I will try this. Thanks!