# Thread: Math for manual isometric conversion

1. ## Math for manual isometric conversion

I know there are ISO grid extensions, but Im really curious how to make it manually. I have some idea but do not understand it completely I tried googling but was not succesful.
I would be glad for equations demonstrating the conversion from X,Y to ISO cell, row of defined cell widht and height.
Thank you!

2. ## Re: Math for manual isometric conversion

Try reading this http://herbert.gandraxa.com/herbert/imp.asp

3. ## Re: Math for manual isometric conversion

Well, for the coordinates of topmost corner of the cell, there are equations:

xS = xW×cos(a)s - zW×cos(a)s
yS = xW×sin(a)s + zW×sin(a)s-yW×s

But that is for given Row and Column (zW and yW). I tried to express them but it doesnt match when checking if its equal.

Also this counts X,Y from given row,column. Now how to make it vice versa?

4. ## Re: Math for manual isometric conversion

reverse the formula, if x+3=12, then 12-3=x=9.

5. ## Re: Math for manual isometric conversion

I have always wanted to create a staggered isometric game, but the ISOGrid object only allows diamond shape isometric maps... Anyone know the formula for this also? I have tried making it manually before but the mouse cant seem to figure out which cell it is actually touching?

P.S. Sorry I am not hijacking this thread.

6. ## Re: Math for manual isometric conversion

Darkesoft: Sorry, the "x" should be "*" - multiplying.

BUT I have found the formula already, damn, its so easy!

Column = x/32 + y/16;
Row = -x/32 + y/16;

Where the cell is 32x16.

7. ## Re: Math for manual isometric conversion

Blizna, would this work for staggered isometric? I assume it would as it is only used to snap objects to the correct position?
What about actually retrieving the cell the mouse is in?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•