Jump to content
  • Advertisement

Archived

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

ApochPiQ

Mapping a height field to a staggered ISO map

This topic is 5913 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

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

tweedledee

Share this post


Link to post
Share on other sites
yup, more or less height values in the heightmap array You can do it differently, but that''s the possibility least coding amount I think.

tweedledee

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!