-
Notifications
You must be signed in to change notification settings - Fork 18
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
Best way to integrated argon and aframe #6
Comments
I don't understand the issues well enough to choose between 1 and 2. If you choose #2, what effect does that have on existing code that we have written, are writing for argon-aframe? Will we just have to substitute a-scene back in instead of ar-scene? Or do we have to rewrite components etc.? |
Both (1) and (2) would require changing all My expectation is that whatever we do, if we integrate the Regardless, nobody needs to upgrade immediately, either. For many things, just switching back to |
I think this issue is conflating two different things: view configuration (Magic Lens vs HMD), and the presented representation of "reality" (a virtual world vs "see-thru"). In my opinion, these things are orthogonal, and should probably not be managed together. |
@blairmacintyre This comes back to the issue with the WebVR spec that you pointed me at earlier: immersive-web/webxr#179 As I understand the WebVR api to work, the |
@speigg so, after talking about this all to you offline, I think we have a 3rd possibility: not changing the scene at all, and rather moving a lot of what was in ar-scene into an argon system, which replaces the |
Hey @blairmacintyre just starting off in argon and aframe. It seems the inspector won't work if it's not a a-scene (VR) solution being built. |
Yes. That is (mostly) fixed in the inspector repo, don't know when it will make it into the "standard" release. You might pull it from there and give it a try. |
Essentially, a bunch of aframe components search for a div "a-scene" rather than looking in other ways (e.g. Aframe maintains a list of scenes). So, they fixed that for the inspector, to not look for a-scene. I still want someone to redo Argon-aframe to integrate more cleanly, I haven't have the time. But I think I know roughly how to do it. |
Hello guys?! I cannot find out a site where I could learn about argon js and how to integrity? Can you help me? |
for argon.js, go to argonjs.io for aframe and argon, all we have is what's here on this repo. |
Right now, argon and aframe are integrated via a new scene, the
ar-scene
. This has the advantage that developers explicitly choose if they want VR (viaa-scene
) or AR (viaar-scene
) and means the internal implementation and structure of the two scenes can be different.However, separating the scenes makes a few things difficult
a-scene
element, preventing them from working with argon (e.g., the inspector does this!)There are two alternatives to the current implementation.
cause argon-aframe.js to override the methods in the
a-scene
object, causing it to work with argon and AR. This is perhaps the "simplest" but it means that once you load argon-aframe.js, you can no longer do VR.cause argon-aframe.js to add new methods to the
a-scene
object, an analogous set of capabilities for AR as currently exist for VR (e.g., enterAR methods and events, etc, akin to the current enterVR ones). Additional methods/properties would allow the programmer to choose between AR and VR. If running in a browser that supports both, we could even put a second icon up beside the current "VR glasses" icon, to allow the end user to choose between AR and VR.I'm curious what people think. I'm leaving toward implementing option 2. WebVR is moving toward supporting multiple kinds of displays, so we will eventually want AFrame to support having the user choose between different displays and modalities.
The text was updated successfully, but these errors were encountered: