Adds stereo view on mobile devices
Name | Type | Description |
---|---|---|
psv |
PSV.Viewer |
Extends
Members
-
Available events
-
-
Unique identifier of the plugin
-
-
Properties:
Name Type Description isSupported
Promise.<boolean> indicates of the gyroscope API is available
renderer
external:THREE.WebGLRenderer original renderer
noSleep
external:NoSleep wakeLock
WakeLockSentinel -
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
Methods
-
destroy () package overrides
-
-
init () package overrides
-
-
Checks if the stereo view is enabled
-
Returns:
Type Description boolean -
Enables the stereo view
-
- enables NoSleep.js
- enables full screen
- starts gyroscope controle
- hides markers, navbar and panel
- instanciate external:THREE.StereoEffect
Fires:
Throws:
-
if the gyroscope API is not available/granted
- Type
- PSV.PSVError
Returns:
Type Description Promise -
Disables the stereo view
-
Fires:
-
Enables or disables the stereo view
-
Events
-
Triggered when the stereo view is enabled/disabled
-
Name Type Description enabled
boolean