MobileVRInterface

Inherits: ARVRInterface < Reference < Object

Generic mobile VR implementation.

Description

This is a generic mobile VR implementation where you need to provide details about the phone and HMD used. It does not rely on any existing framework. This is the most basic interface we have. For the best effect, you need a mobile phone with a gyroscope and accelerometer.

Note that even though there is no positional tracking, the camera will assume the headset is at a height of 1.85 meters. You can change this by setting eye_height.

You can initialise this interface as follows:

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

Property Descriptions

Default4.0
Setterset_display_to_lens(value)
Getterget_display_to_lens()

The distance between the display and the lenses inside of the device in centimeters.


Default14.5
Setterset_display_width(value)
Getterget_display_width()

The width of the display in centimeters.


Default1.85
Setterset_eye_height(value)
Getterget_eye_height()

The height at which the camera is placed in relation to the ground (i.e. ARVROrigin node).


Default6.0
Setterset_iod(value)
Getterget_iod()

The interocular distance, also known as the interpupillary distance. The distance between the pupils of the left and right eye.


Default0.215
Setterset_k1(value)
Getterget_k1()

The k1 lens factor is one of the two constants that define the strength of the lens used and directly influences the lens distortion effect.


Default0.215
Setterset_k2(value)
Getterget_k2()

The k2 lens factor, see k1.


Default1.5
Setterset_oversample(value)
Getterget_oversample()

The oversample setting. Because of the lens distortion we have to render our buffers at a higher resolution then the screen can natively handle. A value between 1.5 and 2.0 often provides good results but at the cost of performance.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.