Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: How save wide image ?

  1. #1
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    2

    How save wide image ?

    Hello everybody

    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

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,580
    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.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    985
    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/

  4. #4
    Member Regular Contributor
    Join Date
    Aug 2008
    Posts
    445
    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

  5. #5
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •