convert WoW Coordinates to image coordiantes menu

User Tag List

Results 1 to 2 of 2
  1. #1
    chaisar's Avatar Member
    Reputation
    1
    Join Date
    May 2011
    Posts
    24
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    convert WoW Coordinates to image coordiantes

    Hi I want to write a small tool which allows users to load a Crawlerbot/Honorbuddy profile and see the coordinates on a map. I am using a PictureBox )in a Scrollcontainer so I am able to load the continent image and scroll/zoom on it.

    I am really, really bad in math but I thought the following code should work:

    Code:
    Private Const TILE_SIZE As Double = 533.0 + (1 / 3)
    Function CalcWoWPosToGuiPos(ByVal WoWMapX As Double, ByVal WoWMapY As Double) As Point
            Dim relY As Double = (WoWMapX + 32.0 * TILE_SIZE ) / (64 * TILE_SIZE )
            Dim relX As Double = (WoWMapY + 32.0 * TILE_SIZE ) / (64 * TILE_SIZE )
            CalcWoWPosToGuiPos.X = = PictureBox.Width * relX
            CalcWoWPosToGuiPos.Y = PictureBox.Height * relY
    End Function
    As you see I already googled and learned something about the WoW coordinates.

    But this code doesn't work. And I really have no idea how to solve this (really simple?!) problem. Any help would be great!

    Edit: here is an picture. yellow is the position I am (3744.927, 5624.042 on the map it should be 117,299) red is the position the function returns: 678,592
    convert WoW Coordinates to image coordiantes-nzyzf-jpg
    Last edited by chaisar; 12-11-2012 at 08:17 AM.

    convert WoW Coordinates to image coordiantes
  2. #2
    kantaki's Avatar Member
    Reputation
    5
    Join Date
    Oct 2008
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WC: 3744.927, 5624.042
    MC: 117,299

    3744/117 = 32
    5624/299 = 18

    32:18 -> Same ratio as 16:9

    Hard to say what the correct formula is to calculate the map coordinates. I would need more input. But for now try to divide x with 32 and y with 18. Otherwise post at least 5 correct world and map coordinates

    Also this problem is called: "Viewport transformation"
    Last edited by kantaki; 12-13-2012 at 09:28 PM.

Similar Threads

  1. Moving the mouse to WoW coordinates
    By shomoiog in forum WoW Memory Editing
    Replies: 17
    Last Post: 02-15-2009, 07:27 PM
  2. Converting WoW M2 Models to something readable by Blender3D
    By iindigo in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-03-2008, 03:11 AM
  3. [Release]WoW Coordinator v1.0
    By Sychotix in forum WoW Memory Editing
    Replies: 2
    Last Post: 07-16-2008, 09:35 AM
  4. Wow Image Converter Script Messes Up BLPs
    By [email protected] in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 05-10-2008, 01:24 PM
  5. (Another) How to Record Your On WoW Videos. - Full Guide + Images
    By impulse102 in forum World of Warcraft Guides
    Replies: 9
    Last Post: 11-26-2006, 03:08 AM
All times are GMT -5. The time now is 01:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search