View Single Post
  #4  
Unread 11-29-2006, 08:52 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Well, if we use a certain scale factor on the current map.. IE pick a center point and scale a certain bit of it up, you'll scale it up with a certain ratio. Say the old/new ratio is .75 (for every 3 pixels of the old you now have 4 in the new). The zonerect could theoretically be scaled the same way.

OK, say the current map is 400px by 500px (I'm using easy numbers). Now lets say in our "zoomed in" map we take an area 300px by 325px to blow up (maintaining aspect ratio for easiness). The new map represents .75 of the old map, so we take each of the zonerect numbers and multiply by .75.

If the old went from -100 to +400 in the E-W, the new would be -75 to +300.

Of course, that would only work if the center of the map is maintained.

I think. It's been a long day, so my math could be horribly off heh.
Reply With Quote