Regarding the first, as far as I know draw calls overwrite older calls, so in order to draw things in the right order, start drawing stuff with the lowest Z-value and work up from there and they should appear properly.
Regarding transforming 2d coordinates to 3d coordinates... you don't. There's data missing in the 2d coordinate so you won't be able to properly calculate a coordinate in a 3d space from them. You'll need to internally keep track of both sets of coordinates for each object and use the 3d coordinate for calculation and the 2d coordinate for drawing.
Plu wrote:Regarding the first, as far as I know draw calls overwrite older calls, so in order to draw things in the right order, start drawing stuff with the lowest Z-value and work up from there and they should appear properly.
Regarding transforming 2d coordinates to 3d coordinates... you don't. There's data missing in the 2d coordinate so you won't be able to properly calculate a coordinate in a 3d space from them. You'll need to internally keep track of both sets of coordinates for each object and use the 3d coordinate for calculation and the 2d coordinate for drawing.
for the last one i mistyped, i meant to turn something like 25.5, 51 to 1,2. without the z.
i have tried so many times