Re: 2D array tile map diemsnions from Isometric map
by Bill <Bill@[EMAIL PROTECTED]
>
Sep 28, 2006 at 09:40 AM
Bill wrote:
> Can anyone suggest a formula to find the dimensions ( width and height )
> of a 2D array tile map in terms of tiles from an isometric map? The
> Isometric tiles are typical 2:1 diamonds and the width and height of the
> isometric maps vary because they are randomly generated. These isometric
> maps are not 45 degree rotated squares maps, they are rotated
> rectangles. For example I have the isometric map on the left, but I need
> to create the 2D array on the right, which turns out to be 3x5.
>
> /\ _____
> /\/\ |_|_|_|
> /\/\/\ |_|_|_|
> \/\/\/\ |_|_|_|
> \/\/\/\ = |_|_|_|
> \/\/\/ |_|_|_|
> \/\/
> \/
>
> Thanks
Diagram of isometric tile.
w = 2h
|____|
| __|____
| /\ | |
|/ \| | h = w/2
\ / |
\/____|_
We know the width and height of the isometric tiles and the width and
height of the isometric map. The question is how do I derive the
dimensions of the array on the right.
________________
| /\ |
| /C \ | ________
| /\ /\ | |A |B |C |
| /B \/F \ | |__|__|__|
| /\ /\ /\ | |D |E |F |
|/A \/E \/I \ | |__|__|__|
|\ /\ /\ /\ | |G |H |I |
| \/D \/H \/L \ | |__|__|__|
| \ /\ /\ /\ | |J |K |L |
| \/G \/K \/O \| |__|__|__|
| \ /\ /\ /| |M |N |O |
| \/J \/N \/ | |__|__|__|
| \ /\ / |
| \/M \/ |
| \ / |
|_________\/_____|