OGL Tilemap

BlitzMax Forums/BlitzMax Programming/OGL Tilemap

Gavin Beard(Posted 2006) [#1]
Hi all, i am looking at the best way to use ogl to make a tile map system, for control over the tiles is it best to create 1 quad per tile or render the whole map to a texture then apply to the quad? is this going to be slow if a tile is animated i.e a water tile with a few differnt frames?


ozak(Posted 2006) [#2]
I would probably use quads until they become a performance problem.

Or use one large plane, with one big texture containing all tiles and then change the UVs to fit.

As long as you don't change texture each tile, but pack them in a larger one both solutions should work fine.


Gavin Beard(Posted 2006) [#3]
i was gonna create 1 texture with each tile image as a 64x64 square within that texture, then when i draw the quads pick the relevant square from the one texture to display on that particular quad, doing it this way tho rather than 1 large plane....will this not create seams?