I'm creating a class that takes an OpenGL scenegraph and uses QGLFrameBufferObject
to render the result. To support (virtually) infinite sizes I'm using tiling to extract many small images that can be combined into a big image after rendering all tiles.
I do tiling by setting up a viewport (glViewport
) for the entire image and then using glScissor
to "cut out" tile after tile. This works fine for resolutions up to GL_MAX_VIEWPORT_DIMS
, but will result in empty tiles outside this limit.
How should I approach this problem? Do I need to alter the camera or is there any neat tricks to do this? I'm using Coin/OpenInventor so any tips specific to these frameworks are very welcome too.