-
Notifications
You must be signed in to change notification settings - Fork 27
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
add WebXR support? #88
Comments
👋 @mathiajusth! Native support for WebXR probably won't be possible for a while, since Elm doesn't provide access to I think the most promising approach would be to have an option to render |
Thank you for the fast reply.
I am sad to heat that, but you gave me hope with the a-frame approach. I started to look into 3D rendering / VR just a few day ago and a-frame indeed looked like the best candidate to take advatage of if one wants a functional reactive approach. So I'll try to look into that a bit more. Btw. love you library, the best entry-friendly 3D rendering tool I found! A little off-topic, but do you have any recommendation regarding VR with any functional programming language? |
Thanks for the kind words! As for VR in functional programming languages, I think the best I can point you to is https://github.com/halfzebra/elm-aframe, which was an early stab at getting Elm and A-Frame to play well together. (I probably should have linked to that in my first reply!) If I recall correctly I think it largely worked (though I never played around with it myself), but for whatever reason development hasn't continued. |
Be aware that A-frame mutates the Dom and doesn't play well with Elm's vdom. Last time I checked. See also halfzebra/elm-aframe#35 |
Thanks for pointing that out @harmboschloo, that's really good to know! From looking through some of the linked issues it seem that the A-Frame maintainers have no interest in compatibility with Elm, so even if it could be somehow made to work now it's likely that more issues would occur in the future. Any thoughts on what the best path forward would be if someone was interested in doing VR with |
It could actually be interesting if perhaps
|
A fresh contender to rival A-Frame would be https://github.com/hmans/three-elements |
Ah very cool @PixelPartner! Will be interesting to see how that library evolves... |
I just started looking into WebXR but it just for everything but the rendering. Since this package uses WebGL, it should be possible to somehow get this rendering into WebXR. WebXR sort of gives you parameters and a place to render your WebGL. My understanding of all this works is very shallow, so bear with me. |
Hi @perty, happy to help explain the internals of |
Ok, got it and thanks @ianmackenzie . I am currently on a fork of a fork of elm-aframe. Had some none-elm experience with Aframe. |
Do you think it is something that could / should be part of this package?
The text was updated successfully, but these errors were encountered: