Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this asset #1

Open
BastiaanOlij opened this issue Feb 12, 2018 · 0 comments
Open

Using this asset #1

BastiaanOlij opened this issue Feb 12, 2018 · 0 comments

Comments

@BastiaanOlij
Copy link
Member

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant