View Full Version : Projection for tiled renderer

05-23-2005, 08:29 AM
I want to render my scene in tiles.

Currently I use

glViewport(0, 0, 1024, 778)
glMatrixMode( GL_PROJECTION )

To set up my projection, which works fine.

Now I want to take my 1024*778 image and render it sequentially in 128*128 tiles...

Can someone tell my the correct sequence of commands to issue to set up each tile?

05-25-2005, 02:12 PM
Brian Paul has written a nice little library for handling that called TR (Tile Rendering Library). The website (http://www.mesa3d.org/brianp/TR.html) has a description and a link to the code.

Hope it helps