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