How save wide image ?
For my job I'm loading meshes with several high definition textures in OpenGL.
Purpose being to save the result in a file. the picture must have the highest possible definition. Minimum 4096 x 4096, but ideally 16384 x 8192.
My questions :
Is it possible ?
If yes, which OpenGL function can do that ?
Thanks for your help
Render to an FBO to have a larger-than-screen resolution. Max will depend on your hardware, 4kx4K should be doable on a proper video card.
If you don't run into driver issues, even 16k x 16k is possible on any recent card. Besides that, do what ZbuffeR suggested.
Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
Technical Blog: http://www.rastergrid.com/blog/
If you want to render to a resolution larger than the hardware you are choosing to target supports, you could use tiled rendering, where you render the scene multiple tiles adjusting the projection matrix to capture a different part of the scene. I haven't done it myself, but here's a link that seems to explain it: http://www.bluevoid.com/opengl/sig00...es/node31.html , and another that appears to do the calculations for you: http://www.mesa3d.org/brianp/sig97/offscrn.htm#tile
Many thanks for the replies
I will study all this tracks.
to Dan Bartlett : tiled rendering is what I was doing in VB6, but the limitation of 600Mo for the use of memory, make me going to learn C++ with Qt. Now I try to go further
I will say you more soon.
Tags for this Thread