I have a map that opens up when press a key. It basically covers the whole screen and you can pan up down left and right.
I’m having an issue however getting to display the markers for player position and other character’s positions.
I’m currently using a 3D map ( a Camera above the world that renders to a texture ). Getting the positions of these objects is no problem. But I need their position in Screen Coordinates for the camera that shows the map, not the main player’s view. I can’t find ANY way of having it give me the coordinates in the map view…
There’s no way to get access to the projection matrix to do the math yourself. There’s no way to even build a projection matrix yourself. What can I do here? I’ve hit a wall.
I thought about a secondary way. I have an artist made texture that I draw instead of the render texture. My only solution for this way ( Which seems easier than the previous one at this point ) is to get the min/max X and Y values of the level somehow and use a scale to position the items in the map. It works well, I just have to get those min and max values right of the level… which I’m not sure that’s possible or not.
What could I do to get around these? Or what other ways could I attempt?
EDIT:
In the meantime, I’m going to see if I can find a way to replace the actors with a texture in the 3D map…