3 ms·
CSS supports many 3D transforms, I wonder if VR browsers implement that in any sort of 3D plane.
by WesSouza 3y ago
CSS supports many 3D transforms, I wonder if VR browsers implement that in any sort of 3D plane.
- hoc 3y agoCool. If I could xr-dive into a css-3d-transformed world of objects instead of having them projected onto the 2d window right away, that would be what I was looking for in the second part of the comment above. Not sure if WebXR perspective and a 3d space is provided right now at the same level these css transforms are used.
- Arathorn 3y agoyou can calculate 2D CSS transforms which match the equivalent transforms of your WebGL scene in WebXR - as an efficient but hacky way to (for instance) do live video overlays in 3D without having to mess around importing the video texture into WebGL (assuming you don’t need occlusion or environmental effects etc). we’re toying with this as an approach for video overlays in https://thirdroom.io https://thirdroom.io, especially for underpowered devices.
- hoc 3y agoYes, I've seen similar examples. Reminded me of HW video card overlays and I hoped we would have a better solution soon. But currently probably it what's there. Would this work as well for other HTML content, like dynamically projecting a whole DIV into/over a canvas scene that I would then be able to have positioned over some surface in VR? Love the product/concept, btw.
- ImHereToVote 3y agoI don't think people realize how dog shit slow the DOM is. There is a reason webXR uses the canvas.