PDA

View Full Version : Projection for tiled renderer



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

Currently I use

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


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?

Dirk
05-25-2005, 01: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

Dirk