PDA

View Full Version : 2D map with position cursor


stranomavero
03-04-2008, 04:10 AM
Hi everyone!

i'm trying to display the position of the user of a 3D virtual environment on a 2D map (jpeg) on an external window.
basically i want to do something similar to what i saw in lots of videogames: the user is moving around the 3D space and his position is marked with a "x" on a 2D window,representing the map of the environment.

I was also wondering if it's possible doing that sending the position to an external application,like google maps or tom tom.

i haven't start writing the code yet...i'm still deciding which approach would suit me best :)

any tips?

thank u very much!

mmakrzem
03-04-2008, 07:59 AM
if this window is going to run from your main app then you can spawn a second thread and have it generate this window and render what ever you like. You can then pass the x,y position of your marker from thread 1 to thread 2. If you are working with another app, then you'll need to have a way to communicate the data to the other end. Have a look at http://code.google.com/webtoolkit/ Don't know if this is what you need or not.

stranomavero
03-04-2008, 08:10 AM
thank u very much!
i'll give it a go right now.
the coordinates of the user are on a text file and they are updated continuously.

thanks again for the idea!

stranomavero
03-04-2008, 08:59 AM
the widget works with Java...