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 theyre right in front of the camera?
Im going to include things such as radar, other ships, messages, etc.
Ive attached an example of what Im trying to do. Ive taken this from Freelancer screen shots.
Im 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 Im not sure if its 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
Im going to include things such as radar, other ships, messages, etc.
Ive attached an example of what Im trying to do. Ive taken this from Freelancer screen shots.
Im 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 Im not sure if its 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