I have a game where ships fly around, input and everything working... Now I need to figure out how to draw the user interface. Is there a way to draw it without manually finding where the vertices need to be so that they're right in front of the camera?
I'm going to include things such as radar, other ships, messages, etc.
I've attached an example of what I'm trying to do. I've taken this from Freelancer screen shots.
I'm talking about things like the health bars in the center, #weapons left, options at the top right, etc.
One idea would be somehow switching to ortho view, and then drawing the gui, but I'm not sure if it's possible to draw the main game in perspective view, switch to ortho, give it some new vertices, and then have it draw both.
Any ideas?
Thanks.
-Nick
I'm going to include things such as radar, other ships, messages, etc.
I've attached an example of what I'm trying to do. I've taken this from Freelancer screen shots.
I'm talking about things like the health bars in the center, #weapons left, options at the top right, etc.
One idea would be somehow switching to ortho view, and then drawing the gui, but I'm not sure if it's possible to draw the main game in perspective view, switch to ortho, give it some new vertices, and then have it draw both.
Any ideas?
Thanks.
-Nick