mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
166 lines
6.6 KiB
ReStructuredText
166 lines
6.6 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the MobileVRInterface.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_MobileVRInterface:
|
|
|
|
MobileVRInterface
|
|
=================
|
|
|
|
**Inherits:** :ref:`ARVRInterface<class_ARVRInterface>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
Implementación de la RealidadVirtual(VR) móvil genérica.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
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 :ref:`eye_height<class_MobileVRInterface_property_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
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`display_to_lens<class_MobileVRInterface_property_display_to_lens>` | ``4.0`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`display_width<class_MobileVRInterface_property_display_width>` | ``14.5`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`eye_height<class_MobileVRInterface_property_eye_height>` | ``1.85`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`iod<class_MobileVRInterface_property_iod>` | ``6.0`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`k1<class_MobileVRInterface_property_k1>` | ``0.215`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`k2<class_MobileVRInterface_property_k2>` | ``0.215`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
| :ref:`float<class_float>` | :ref:`oversample<class_MobileVRInterface_property_oversample>` | ``1.5`` |
|
|
+---------------------------+--------------------------------------------------------------------------+-----------+
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_MobileVRInterface_property_display_to_lens:
|
|
|
|
- :ref:`float<class_float>` **display_to_lens**
|
|
|
|
+-----------+----------------------------+
|
|
| *Default* | ``4.0`` |
|
|
+-----------+----------------------------+
|
|
| *Setter* | set_display_to_lens(value) |
|
|
+-----------+----------------------------+
|
|
| *Getter* | get_display_to_lens() |
|
|
+-----------+----------------------------+
|
|
|
|
La distancia entre la pantalla y las lentes dentro del dispositivo en centímetros.
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_display_width:
|
|
|
|
- :ref:`float<class_float>` **display_width**
|
|
|
|
+-----------+--------------------------+
|
|
| *Default* | ``14.5`` |
|
|
+-----------+--------------------------+
|
|
| *Setter* | set_display_width(value) |
|
|
+-----------+--------------------------+
|
|
| *Getter* | get_display_width() |
|
|
+-----------+--------------------------+
|
|
|
|
El ancho de la pantalla en centímetros.
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_eye_height:
|
|
|
|
- :ref:`float<class_float>` **eye_height**
|
|
|
|
+-----------+-----------------------+
|
|
| *Default* | ``1.85`` |
|
|
+-----------+-----------------------+
|
|
| *Setter* | set_eye_height(value) |
|
|
+-----------+-----------------------+
|
|
| *Getter* | get_eye_height() |
|
|
+-----------+-----------------------+
|
|
|
|
The height at which the camera is placed in relation to the ground (i.e. :ref:`ARVROrigin<class_ARVROrigin>` node).
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_iod:
|
|
|
|
- :ref:`float<class_float>` **iod**
|
|
|
|
+-----------+----------------+
|
|
| *Default* | ``6.0`` |
|
|
+-----------+----------------+
|
|
| *Setter* | set_iod(value) |
|
|
+-----------+----------------+
|
|
| *Getter* | get_iod() |
|
|
+-----------+----------------+
|
|
|
|
La distancia interocular, también conocida como distancia interpupilar. La distancia entre las pupilas del ojo izquierdo y del derecho.
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_k1:
|
|
|
|
- :ref:`float<class_float>` **k1**
|
|
|
|
+-----------+---------------+
|
|
| *Default* | ``0.215`` |
|
|
+-----------+---------------+
|
|
| *Setter* | set_k1(value) |
|
|
+-----------+---------------+
|
|
| *Getter* | get_k1() |
|
|
+-----------+---------------+
|
|
|
|
El factor k1 de la lente es una de las dos constantes que definen la fuerza de la lente utilizada e influye directamente en el efecto de distorsión de la lente.
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_k2:
|
|
|
|
- :ref:`float<class_float>` **k2**
|
|
|
|
+-----------+---------------+
|
|
| *Default* | ``0.215`` |
|
|
+-----------+---------------+
|
|
| *Setter* | set_k2(value) |
|
|
+-----------+---------------+
|
|
| *Getter* | get_k2() |
|
|
+-----------+---------------+
|
|
|
|
El factor de lente k2, ver k1.
|
|
|
|
----
|
|
|
|
.. _class_MobileVRInterface_property_oversample:
|
|
|
|
- :ref:`float<class_float>` **oversample**
|
|
|
|
+-----------+-----------------------+
|
|
| *Default* | ``1.5`` |
|
|
+-----------+-----------------------+
|
|
| *Setter* | set_oversample(value) |
|
|
+-----------+-----------------------+
|
|
| *Getter* | get_oversample() |
|
|
+-----------+-----------------------+
|
|
|
|
El ajuste de sobremuestreo. Debido a la distorsión de la lente, tenemos que renderizar nuestros buffers a una resolución más alta de la que la pantalla puede manejar nativamente. Un valor entre 1,5 y 2,0 a menudo proporciona buenos resultados pero a costa del rendimiento.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|