Closed takahirox closed 2 months ago
Experimenting for VR so far. Some notes to my self.
To render dom elements in VR, we first need to render them to texture. There seems no standard way now. Two wordarounds may exist.
First rendering to Canvas and then rendering the poly with the canvas as texture in VR?
Getting the point position crossing the poly and getting the top most dom element, and call dom element .click() (and other functions)?
Thinking of another approach. Only DOM overlay elements keep displaying even in immersive mode. (Assuming #239 and #240 will get in.) This is not exactly emulating real behavior but easy to implement.
Coming to think the idea in https://github.com/MozillaReality/WebXR-emulator-extension/issues/222#issuecomment-623801084 may be difficult to implement. For example, even with SVG or external library, simulating perfectly the original dom elements may be hard especially if the elements are complex (event listeners are set, including JavaScript, layout is defined with CSS file, or so on).
Hey, I saw the commit. So, should be working at this point? Perhaps not with the released addon, but with the master version (and how could I run the master code instead of the release)? Any idea if there will be a version 0.4.0?
I might be able to help with this project.
Yes, I added an initial DOM overlay support. You need to clone and manually install from dev
branch for now.
We needed to reschedule due to the lot of stuffs, but hopefully I want to release the new revision at least once by the end of this year.
https://github.com/immersive-web/dom-overlays