Skip to content

Using this asset #1

Description

@BastiaanOlij

After installing this asset you need to add an ARVROrigin node to your scene and an ARVRCamera child node. Note that there are example scenes you can add into your project stored inside of this asset.

Then execute the following code in the _ready of your main scene:

var interface = ARVRServer.find_interface("Oculus")
if interface and interface.initialize():
	get_viewport().arvr = true

You can alternatively use a separate viewport if you want to free up the main display to render a 3rd camera or even a completely seperate view for a spectator. Make sure the ARVR property for this viewport is set to true and the world property is properly set. Also make sure you ARVROrigin node and child nodes are a child of this viewport.
Then change your startup code to:

var interface = ARVRServer.find_interface("Oculus")
if interface:
	interface.initialize()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions