It still misses some important things in the area of shading and animation for full transfer of all qualities you find in a modern 3d creation app like Blender.
This approach would be useful if 3D devices let you render a view for each eye. And report head and hand movements as events. So one would build a whole 3D engine with the current Browser APIs.
The approach I was thinking about was to tell the 3D device "This object is located at x,y,z position 123,40,8". And the device does the rendering. It's probably much faster, as the device probably has a lot of hardware optimized for 3D rendering. Let alone things like AR, where you have to analyze a given video input, figure out that there is a real table in a certain position in space where you can put 3D objects on, calculate the physical interaction and shadows etc.
Not sure which approach is better. Time will tell.
https://github.com/pmndrs/react-xr
Apple announced support for WebXR on VisionOS as well.
I think it will be a lot more interesting once webGPU hits too, as it will be closer to native-level GPU programming but portable between both native and web contexts.
edit: it looks like RealityKit and the Apple ecosystem already supports this
https://developer.apple.com/documentation/realitykit/creatin...
the point of apple vision pro is to run apple hardware with apple software, and people _want_ that.
Why is HTML becoming a ubiquitous API? It's free and open.
They already are. CSS Transforms can already be configured to happen in a full, proper 3D space.
Every polygon of this demo is an HTML element, and yet it is fully and completely three-dimensional: https://keithclark.co.uk/labs/css-fps/
One would just need a browser in VisionOS that supports displaying these elements in actual 3D rather than projected onto the 2D surface of the webpage...
These device specific environments and technologies are cumbersome to learn, will exclude everybody with a different device, usually change rapidly which makes code maintenance a nightmare and at some point simply die like flash.
I will start developing for 3D devices when we have a standard similar to HTML or when 3D elements are part of the HTML standard.
A text based way to describe how elements are positioned in space and what attributes they have. With JavaScript support for interaction.
Looks like there is "X3D":
https://en.wikipedia.org/wiki/X3D
At a first glance, it looks a bit like a 3D version of SVG? That could be a good starting point.