Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is webXR supported on WebGL Studio? #41

Open
TheBricktop opened this issue Sep 8, 2019 · 3 comments
Open

is webXR supported on WebGL Studio? #41

TheBricktop opened this issue Sep 8, 2019 · 3 comments

Comments

@TheBricktop
Copy link

the threejs editor and nunustudi both have native webXR support now, and seeing how webglStudio is another awesome webgl engine im curious if webXr is or will be supported.

@jagenjo
Copy link
Owner

jagenjo commented Sep 8, 2019

not in the roadplan but it shouldnt be hard, most of the features are already there.

maybe I give it a try next months

@TheBricktop
Copy link
Author

Im very happy to hear that, im very eager to use webGl studio in my following projects.

@coderofsalvation
Copy link

coderofsalvation commented Mar 22, 2020

This could be a good barebones starting point:

https://immersive-web.github.io/webxr-samples/

particularly:

image

Testing

Concerning testing it, I noticed that firefox is quite serious about webXR these days, their firefox dev-edition has enabled all webxr features by default, and they have a simulator for devs without vr headsets:

https://addons.mozilla.org/en-US/firefox/addon/webxr-api-emulator/

Another option: I've tested firefox webxr with trinus which works well, however I've had to fiddle with the settings a bit.
I also had to install steamVR in order to trick firefox into thinking I have real vr headset.
This setup works, but I wouldn't recommend it for developing.

Brainstorm: next step

The demo-code above simply enables viewing 3d-scenes on browsers which support webxr (devices, like gyroscope controlled smartphone, or an oculus e.g.).
afaik this could just be a 'webxr'-component for webglstudio which detects and forwards the gl-context to webxr.
The next step would be controlling the camera and triggering events, which could be done in various ways:

  • a 'webxr controller'-component (which controls active camera e.g.)
  • some webxr litegraph nodes, so the user can wire values themselves

Let me know if I can help, by brainstorming more or by help writing code.

Why is webglstudio+webxr exciting?

Because the metaverse is here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants