2017-09-29 13:36:27 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 12:33:56 +02:00
<class name= "MobileVRInterface" inherits= "ARVRInterface" category= "Core" version= "3.2" >
2017-09-29 13:36:27 +02:00
<brief_description >
2019-06-22 01:04:47 +02:00
Generic mobile VR implementation.
2017-09-29 13:36:27 +02:00
</brief_description>
<description >
2019-06-22 01:04:47 +02:00
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 [member eye_height].
2019-04-09 16:14:10 +02:00
You can initialise this interface as follows:
[codeblock]
var interface = ARVRServer.find_interface("Native mobile")
if interface and interface.initialize():
get_viewport().arvr = true
[/codeblock]
2017-09-29 13:36:27 +02:00
</description>
<tutorials >
</tutorials>
<methods >
</methods>
<members >
2019-06-29 12:38:01 +02:00
<member name= "display_to_lens" type= "float" setter= "set_display_to_lens" getter= "get_display_to_lens" default= "4.0" >
2017-09-29 13:36:27 +02:00
The distance between the display and the lenses inside of the device in centimeters.
</member>
2019-06-29 12:38:01 +02:00
<member name= "display_width" type= "float" setter= "set_display_width" getter= "get_display_width" default= "14.5" >
2017-09-29 13:36:27 +02:00
The width of the display in centimeters.
</member>
2019-06-29 12:38:01 +02:00
<member name= "eye_height" type= "float" setter= "set_eye_height" getter= "get_eye_height" default= "1.85" >
2019-04-09 16:14:10 +02:00
The height at which the camera is placed in relation to the ground (i.e. [ARVROrigin] node).
</member>
2019-06-29 12:38:01 +02:00
<member name= "iod" type= "float" setter= "set_iod" getter= "get_iod" default= "6.0" >
2017-09-29 13:36:27 +02:00
The interocular distance, also known as the interpupillary distance. The distance between the pupils of the left and right eye.
</member>
2019-06-29 12:38:01 +02:00
<member name= "k1" type= "float" setter= "set_k1" getter= "get_k1" default= "0.215" >
2017-09-29 13:36:27 +02:00
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.
</member>
2019-06-29 12:38:01 +02:00
<member name= "k2" type= "float" setter= "set_k2" getter= "get_k2" default= "0.215" >
2017-09-29 13:36:27 +02:00
The k2 lens factor, see k1.
</member>
2019-06-29 12:38:01 +02:00
<member name= "oversample" type= "float" setter= "set_oversample" getter= "get_oversample" default= "1.5" >
2017-09-29 13:36:27 +02:00
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.
</member>
</members>
<constants >
</constants>
</class>