Results 1 to 3 of 3

Thread: Possible ways to save high quality image?

  1. #1
    Member Contributor
    Join Date
    Jun 2009
    Posts
    92

    Possible ways to save high quality image?

    Hello,


    I want to save a high resolution image from opengl context. I am using TR - OpenGL Tile Rendering Library in order to save a high quality (resolution) image from the opengl window. It was giving expected output until I came across this situation.


    According to the documentation given there, the main rendering loop goes like this:


    Code :
    int more = 1;
    while (more)
    {
    trBeginTile(tr);
    DrawScene();
    more = trEndTile(tr);
    }


    Of course the sample programs they are using are based on GLUT. Whereas I am not using GLUT. In my case, I am rendering Legends (2D) after displaying all the geometries in 3D. Now when I save the image, I see the legends do appear in all the tiles. i.e. all the 2D entities rendered after 3D entities are repeated in all the tiles. That is because I change the viewport and projection while displaying Legends and other 2D objects.


    Now I am stuck up with this. How do I eliminate this problem? If anyone has already used TR library, do kindly help me. If there is no workaround then kindly, let me know possible methods to save a high quality images from OpenGL contexts.


    Thanks


    Regards
    Rakesh Patil

  2. #2
    Member Contributor
    Join Date
    Jun 2009
    Posts
    92
    Can anyone guide me to avoid getting the legends on each tile of TR library or with any other alternative to save high resolution image?

  3. #3
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896
    As you say the problem is the way you set up the projection for your 2D rendering - that would need to be done in a way that is aware of the tiles. I think you have two options: Only render the legends on the first tile, i.e. split DrawScene into two functions (one for 3D, the other for 2D) and call the second only for the first tile. Alternatively you'll have to mirror the modifications the lib does to the 3D projection for your 2D projection - which means you'll have to understand how the lib works (shouldn't be too hard, after all you get to look at its source code) and reimplement it yourself.

Similar Threads

  1. high-quality curve again
    By rafal in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-24-2012, 11:00 AM
  2. high-quality curve
    By rafal in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 04-23-2012, 09:08 AM
  3. Using the GPU to accelerate high quality 2D AA
    By ljbade in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 01-17-2011, 09:14 PM
  4. High-quality transparency in one pass?
    By mogumbo in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 08-12-2005, 07:19 AM
  5. "Transperent color" on the image and high quality textures
    By -=MadMan=- in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-11-2005, 10:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean