News for hackers. Stuff that matters.
Re:WebXR by WesSouza on Saturday May 27, 2023 @05:15PM (#36098390)
CSS supports many 3D transforms, I wonder if VR browsers implement that in any sort of 3D plane.
Re:WebXR by hoc on Saturday May 27, 2023 @05:27PM (#36098499)
Cool.

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.

Re:WebXR by Arathorn on Saturday May 27, 2023 @05:29PM (#36098528)
you 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, especially for underpowered devices.

Re:WebXR by hoc on Sunday May 28, 2023 @03:12PM (#36106837)
Yes, 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.

Re:WebXR by ImHereToVote on Sunday May 28, 2023 @02:31AM (#36101694)
I don't think people realize how dog shit slow the DOM is. There is a reason webXR uses the canvas.