Sign in to follow this  

Isometric tilemap rendering

Recommended Posts

Hi all,


Has anyone read the book "Learning IOS Game Programming"? I'm current using the rendering method (for Orthogonal maps) taught in the book in my new game. I've successfully converted some of the code to work with Isometric tilemap. However, I hit a road block when it comes to rendering objects on the map in the right order. I'm using 3 map layers. (1.ground, 2.grass, 3.wall and trees). I render the first 2 layers, then the player object, then the 3rd layer. However I could not get it to render objects in correct orders. i.e. a player standing in front of a tree should show up as such, meaning the tree should be rendered 1st then the player.

I've implemented a depth buffer and set up the following:



        glOrthof(0.0f, rect.size.width0.0f, rect.size.height0.0f100.0f);











But objects are still not being rendered in the correct order. If someone who is familiar with the rendering method in that book can you please point me to the right direction.

Any input will be appreciated!


Thanks in advance.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this