News for hackers. Stuff that matters.
Re:visionOS by TekMol on Tuesday June 06, 2023 @03:16AM (#36209302)
SwiftUI, RealityKit, ARKit, Xcode, Reality Composer Pro, Unity ... give me a break :)

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.

Re:visionOS by prox on Tuesday June 06, 2023 @03:40AM (#36209493)
An open standard that is very capable (but cannot find if it can do streaming over http) is https://github.com/KhronosGroup/glTF

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.

Re:visionOS by easeout on Tuesday June 06, 2023 @03:26AM (#36209388)
I'll welcome VRML back anytime.
Re:visionOS by gattilorenz on Tuesday June 06, 2023 @04:05AM (#36209667)
For a tiny while that was so futuristic: the Web, in 3D. To ~10 year old me it was like seeing the prototype of a flying car, of course everyone will use this in the future!
Re:visionOS by ly3xqhl8g9 on Tuesday June 06, 2023 @03:38AM (#36209478)
Been thinking since 2015 how to explore information as a 3D structure: plurid [1]. The stable library is for now only for React.

[1] https://github.com/plurid/plurid

Re:visionOS by ralusek on Tuesday June 06, 2023 @03:18AM (#36209316)
Re:visionOS by TekMol on Tuesday June 06, 2023 @03:22AM (#36209355)
That seems to be a way to define 3D objects and render them in 2D html.

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.

Re:visionOS by astrange on Tuesday June 06, 2023 @04:18AM (#36209770)
The first approach doesn't work because it'll give the user motion sickness. The device must be able to interpolate between "frames" faster than you can update them, and providing the info needed for you to do that is a privacy issue.
Re:visionOS by JayStavis on Wednesday June 07, 2023 @01:09AM (#36223088)
WebXR is the way to do this, and a reasonable more supported equivalent to react-vr is probably @react-three/xr which where the stack is react --> three.js --> webXR --> WebGL.

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.

Re:visionOS by n42 on Tuesday June 06, 2023 @03:44AM (#36209527)
maybe you're talking about Universal Scene Description? it's a format Pixar put together and opened up. there's a WWDC talk on Friday titled "Explore the USD ecosystem" about it; I'm hoping this means Reality Composer Pro/visionOS is using an existing open standard for this stuff.

https://openusd.org

edit: it looks like RealityKit and the Apple ecosystem already supports this

https://developer.apple.com/documentation/realitykit/creatin...

Re:visionOS by theaussiestew on Tuesday June 06, 2023 @04:01AM (#36209637)
Have you found anything that lets you make DOM elements 3D and have a material?
Re:visionOS by astrange on Tuesday June 06, 2023 @04:16AM (#36209759)
Re:visionOS by miohtama on Tuesday June 06, 2023 @04:36AM (#36209893)
They must have gone only with Unity, because Apple has a hatchet to bury with Epic Megagames, the creator of Unreal Engine.
Re:visionOS by efnx on Tuesday June 06, 2023 @04:41AM (#36209923)
GLTF does a pretty good job. It definitely doesn't cover everything, but it's a good scene descriptor.
Re:visionOS by slsii on Tuesday June 06, 2023 @05:12PM (#36219192)
I doubt Apple will get on board, but this seems like the correct answer to me.

https://github.khronos.org/glTF-Sample-Viewer-Release/

Re:visionOS by jeroenvlek on Tuesday June 06, 2023 @05:10AM (#36210140)
Kind of ironic that parent asks for a global standard like HTML and gets 5 different suggestions in the replies ;)
Re:visionOS by easywood on Tuesday June 06, 2023 @06:56AM (#36210837)
That's the best thing about standards, you have so many to choose from.
Re:visionOS by pjmlp on Tuesday June 06, 2023 @03:12PM (#36217668)
Sure, when POSIX gets updated for a proper full stack development experience, and modern hardware devices.
Re:visionOS by KRAKRISMOTT on Wednesday June 07, 2023 @03:01AM (#36223767)
What's Flutter's VR story?
Re:visionOS by kanbara on Wednesday June 07, 2023 @03:10AM (#36223823)
i actually see this sort of commentary a lot, and i suppose it's apt for HN and other tech fora where people want open standards, but for the life of my i don't understand why we shouldn't develop with technology designed _with_ the hardware. this is apple's forte, and i've done a lot of generic development in the past, as well as multi-cloud cloud computing and the only takeaway i have is that they always provide inferior experiences for the sake of some nebulous goal

the point of apple vision pro is to run apple hardware with apple software, and people _want_ that.

Re:visionOS by pjmlp on Wednesday June 07, 2023 @03:59AM (#36224162)
It is mostly from people that see UNIX everywhere, and are stuck in CLI applications mindset, or shipping Chrome disguised as application framework.
Re:visionOS by paulryanrogers on Thursday June 08, 2023 @08:31AM (#36240797)
Because the alternative is a walled garden, for better and worse. Why don't most games work on Mac's? One big reason is closed APIs, especially as hardware improves.

Why is HTML becoming a ubiquitous API? It's free and open.

Re:visionOS by oreally on Wednesday June 07, 2023 @05:28AM (#36224709)
Yea no wonder the world is chock full of slow frameworks building on top on unnecessary cruft (ala chrome), and no one seems to understand the underlying tech anymore.
Re:visionOS by LoganDark on Wednesday June 07, 2023 @08:35AM (#36225991)
> when 3D elements are part of the HTML standard.

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...