This topic is now archived and is closed to further replies.


Mapping a height field to a staggered ISO map

Recommended Posts

I''ve got a fairly good 3D isometric engine running which started out as a diamond map and a height field. Everything looked good when running under the diamond map but I recently moved it over to a staggered map. Since then I''ve been having trouble getting the heightmap to properly align with the tile corners. I need to represent the tiles themselves in a rectangular array; that array can be texture IDs, structures, or whatever. The problem is, I need to tie a heightmap to that array, but tiles need to share heights, ie. the lower corner of one tile is the same height as the upper corner of the tile below it, etc. What''s the best way to map a rectangular height map onto my staggered ISO map??

Share this post

Link to post
Share on other sites
I''m sure there''s more than one way, but the one that comes to my mind immediately is to just shift the rows. So, tile corner heights would be specified like this for a 3x? map:

00 01 02 03
04 05 06 07
08 09 10 11
12 13 14 15

Does that help you? (if not, I can explain further)


Share this post

Link to post
Share on other sites