Skip to main content
gamedev.net
🔒 Locked

implementing a ui

Started by AbsentMinded Sep 3, 2003 at 2:59 AM 3 replies 1.1k views
Original Post
AbsentMinded
AbsentMinded
I was just wanting get some opinions on something... What is the best way to render the UI(inventory, msg windows, etc...) of a game? In the past I just switched to ortho mode when rendering the ui, but I was wondering if it would be better to stay in perspective and just draw the interface items to always face the camera(billboard it?) what do you guys think?
dopeflow
dopeflow
Whats so bad about switching perspective??

I think its really nice in opengl to be able to render your game in 3d then switch to orthogonal to render the gui. Makes it really easy since you specify all forms in screen coordinates.

marijnh
marijnh
I recommend going to orthogonal mode, if your UI has any kind of complexity it is much more convenient to be able to specity it''s coordinates in 2d and not bother with transformations. If you push the pespective projectionmatrix before going to ortho mode and then pop it back the overhead will not be significant.

Marijn

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.