MainloopWebVr Op
This op is deprecated!
It will not receive any updatesexperimental webvr rendering / currently not being developed due to XR update
Summary (oneliner)
Very experimental op. Web VR is currently not supported in chrome. It is supported with Mozilla firefox so we recommend working in that browser when developing for VR. Will also work on mobile. IOS and android. Make sure to go to your view patch screen and then "open in new window" to be able to press the Vr button. Can be combined with the screen orientation op to create mobile VR experiences.
NoVR Mainloop is the same as the normal mainloop. VR Mainloop will render twice, once for each eye, check the example file that uses the the "eye" port output for a basic setup in VR.
- Ops.Extension.Deprecated.MainloopWebVr
- Extension Op - Visible to all users
- MIT
- WebVr Polyfill (A JavaScript implementation of the WebVR spec, e.g. use webvr on phones which browsers don't support it)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch VR raycast testbed,Ops.Exp.Gl.Physics.CastRay
INPUT PORTS
Start VR mainLoop
Stop VR mainLoop
Scales resolution when Resize canvas is enabled, handy for slower hardware
When true gets reported resolution from VR headset and sets canvas size to match
Enables gamepads / still has to be implemented
OUTPUT PORTS
Trigger out twice, once for each eye per frame. Only works when Start VR is enabled
Trigger out when VR isn't isn't enabled
Resolution width, will change when resize canvas is on
Resolution height, will change when resize canvas is on
Will report true if a VR compatible headset/device is plugged in
Will report true if a VR compatible gamepad/s are plugged in
Amount of controllers connected
the name of the connected headset
Frames per second
0 is the left eye, 1 is the right eye use with the ifTrueThen op to render twice
Left Gamepad object out , will later work with the VR gamepad op
Right Gamepad object out , will later work with the VR gamepad op
One trigger out regardless of mode
Left projection Matrix
Outputs true when VR has started
Patches using MainloopWebVr
Changelog
Ops.Gl.Vr.MainloopWebVr renamed to Ops.Deprecated.Gl.Vr.MainloopWebVr | pandur - 2022-06-23 08:26 |