Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stereo 3D|Client: Oculus Rift mode projects composited UI as smaller
The window can now tell the UI compositor how to project the composited view. The default is the entire view area.
- Loading branch information
Showing
3 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
09853c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is beautiful. I see the menus at appropriate scale in the Rift for the first time. The menus, intermission screen, and console taskbar are all centered in the display. But the crosshair, weapon sprite and status HUD remain in their original locations on the larger canvas.
It looks like I will be able to fuss with the updateCompositor/setCompositeProjection methods to adjust the apparent depth of the menus.
09853c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see if there is a single place (on game-side) where we can adjust the remaining HUD elements.
09853c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, you can use "menu-fog 0" to get rid of the menu background effect since that assumes an additive blending mode and thus can't be drawn with the compositor we're currently using.