Pin point a location on the map

10/06/2016 12:25 Isoline*#1
hello, everybody, lately ive start working on on c# poroject ,something similar to this: [Only registered and activated users can see links. Click Here To Register...]

all i want to know is how to calculate the x,y chords and have them be presented on the map images, and i got no ideas where to start, there must be something that im missing to help me get started on that, hope you guys can help!
10/06/2016 17:00 florian0#2
Define two pairs of coordinates on the map. build a relation between the game-coords and the pixels of the image.

e.g.
Code:
InGame -> Pixels
0|0 -> 3000|200
3500|250 -> 4300|800
Having these, you can calculate a conversion factor for "pixels per ingame-meter" and an offset.
10/07/2016 17:37 Isoline*#3
Quote:
Originally Posted by florian0 View Post
Define two pairs of coordinates on the map. build a relation between the game-coords and the pixels of the image.

e.g.
Code:
InGame -> Pixels
0|0 -> 3000|200
3500|250 -> 4300|800
Having these, you can calculate a conversion factor for "pixels per ingame-meter" and an offset.
i should create an alrgorithm to find any location based on those 2 dots relations, but can you ellaborate more a littile bit?
10/08/2016 21:05 florian0#4
I have a cpp-example for the translation. A friend of mine made it: [Only registered and activated users can see links. Click Here To Register...]
10/09/2016 01:12 Isoline*#5
Quote:
Originally Posted by florian0 View Post
I have a cpp-example for the translation. A friend of mine made it: [Only registered and activated users can see links. Click Here To Register...]
sadly c++ isnt my thing, meant to make it in c.
but thanks, it'll do.