
Now time for you to give me some code

How do you manage to convert from mouse x/y position to x/y on the map?
This of course depends on your used display projection. In isometric display it's fairly easy. For perspectivic (word ?) 3D view it's a bit more complicated.BobXP wrote:When
b) I find a way to convert x/y of the mouse coordinates to x/y of the piece of terrain pointed to.
Heights are tricky. They introduces ambiguity if the slopes exceed a certain amount. So far I found no 'real' solution, although for slopes below that limit the projection must be invertable. Maybe someone with better math knowledge can work it out?BobXP wrote:I don't understand, what about different heights of land?
What do you use for Simutrans?
Users browsing this forum: No registered users and 6 guests