O'Reilly logo

Mastering Oculus Rift Development by Jack Donovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding UI elements to the game world

A screen-shaped gaze-based menu is the very tip of the iceberg in terms of UI in VR; the lack of any actual screen creates a myriad of opportunities for interfaces directly integrated into the world, limited by just your creativity instead of the pixel count of the player's monitor.

In this section, we'll add some complexity to our dynamic wall mechanic and add some interface elements to them in the process. Specifically, we're going to make the walls expand upward in a unique color based on the player's team and make players able to shoot through walls that match their team's color. We're also going to make the walls collapse when players on other teams lower their health enough, which will be displayed in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required