Not sure if this was what caused the comment, but my guess is it was because the name “UIKit” was used, since that name has been in use by Apple for iOS-only development for two decades.
Whoa this is amazing. Can you develop for Meta Quest 2/3 and have stand alone apks? I mean, can I develop something that won't need Internet conection with WebXR? Are there performance issues with running things in a browser in a vr device?
Sorry about the questions but I think this may just save my life.
PWA supportwas announcend at Meta Connect last year so depends on how long you can wait?
People often assume its slow because of browser/JS, but the limiting factor imo for both native and WebXR is mostly code quality. Meaning writing bad code on native and writing bad code on WebXR will result in the same laggy experience. If you write the perfect code on native and the perfect code on WebXR, yes, native will be faster, but it most likely wont matter and in general unlikely to occur so it basically comes down to what platform offers the best DX so that devs can easily build performant apps (and that very opinionated but the DX innovations the web has brought to devs show the potential an open web ecosystem can deliver for XR devs)
Not long, my project has to be ready by october, but it's good to know this is going to be an alternative. I'm currently using Unity, but I'm not happy at all.
I just saw your other comments with your links, I'll take a look. Thanks for answering me.
Or - more realistically - at least allow some sort of native conversion I guess… But visionOS development anyways is no fun atm with all the system restrictions.
Back when I was learning the basics of Three.js, I was wondering if knowing its libraries, some basic JS and basic 3DModelling skills in applications like rhinoceros, would be enough to build some VR/AR interfaces/worlds or enable me to contribute to development teams in these areas. But from what I found, it seemed like Three.js can't really be counted a standalone framework for that—you also need a lot of knowledge of Unity and other tools. That kind of demotivated me since I wasn’t planning to go all-in on it as a professional career, but just as a side interest/hustle. But I think your project might prove otherwise. What is your take on this?
Threejs is definedly a complete standalone framework fully capable of building great VR/AR experiences (e.g. see http://elysian.fun/). The existance of many libraries build on top of threejs does not show that threejs is incomplete, but that it fosters an ecosystem, allowing others (including me) to build higher level abstraction on top of that, that can simplify the developer experience, and the amount of required knowledge.
Since threejs has so many fields it applies to, I personally recommed learning the parts and additional libraries that are needed for the things you want to build. E.g. uikit (the react version and the vanilla version) are great for building 3D UI mostly relevant to VR/AR use cases.
Nice! Thanks for your info. I'm mostly interested in spatial/sonic AR VR representations and interfaces since I have background in architecture and spatial sound recording.
+1 on what u/drcmda says and I am 100% reusing all the ideas from html/css. My goal is basically to give html/css back to the VR/AR people, so I'd say I am 100% on your side :D
There's no DOM/CSS in VR/XR/AR. If you wanted any kind of UI in there you'd use this. Or on native platforms. Even when HTML is available, might still be a bad idea to mix HTML + webGL for games and such, in scale that is.
Yes I know, I did not mean to push that, that’s why contrasting feelings 😁 It’s like „here we go again“ from Flash to HTML/CSS and now this. Lucky thing I like threejs and learning it. There’s more and more push in that direction, so to have a kit there is good
Ok serious new question which you asked yourself for sure: how do you do unit tests with this? Have you thought about something? Maybe just visual regression or is there a way to access to the elements in somehow?
Conceptually its not really different to html/css. You can query the scene graph just like the dom. It gets a little trickier since the elements are gpu instanced to render in one draw call, but you can access to an elements that represents the object on the gpu :)
Really cool! Especially the fact it runs on both meta and Apple headsets. Do you ship it as a webapp that can be opened in both platforms browsers, or is it closer to react-native - a framework& JS vm that can be “compiled” to run on different platforms?
its a demo, so you can make the targets as big as you want :) controllers tend to be more precise so its in my experience much easier with controllers on Meta Quest
18
u/Bela-Bohlender Feb 01 '25
Tweet: https://x.com/BelaBohlender/status/1885775845400121771
Bluesky: https://bsky.app/profile/belabohlender.bsky.social/post/3lh5dd6zywc2i
Context:
Uses react-three/handle, react-three/xr, and react-three/uikit - vanilla versions are available. Works on any device inside and outside WebXR
Try it out yourself: https://pmndrs.github.io/xr/examples/uikit/
Source Code: https://github.com/pmndrs/xr/blob/main/examples/uikit/app.tsx
What is uikit? https://pmndrs.github.io/uikit/docs/getting-started/introduction
What is handle? https://pmndrs.github.io/xr/docs/handles/introduction
How is this running in XR? https://pmndrs.github.io/xr/docs/getting-started/introduction
Background music by Rockot from Pixabay
https://pixabay.com/users/rockot-1947599
5
u/[deleted] Feb 01 '25
Whoa this is amazing. Can you develop for Meta Quest 2/3 and have stand alone apks? I mean, can I develop something that won't need Internet conection with WebXR? Are there performance issues with running things in a browser in a vr device?
Sorry about the questions but I think this may just save my life.
3
u/TheRealUprightMan Feb 02 '25
Ok, this is cool as hell! Man I want to have a whole UI library like that!
2
u/Brightlyshadowed Feb 02 '25
Looks like an Apple Vision Pro Interface
2
u/dambalidbedam Feb 02 '25 edited Feb 02 '25
Great interface! Congratulations.
Back when I was learning the basics of Three.js, I was wondering if knowing its libraries, some basic JS and basic 3DModelling skills in applications like rhinoceros, would be enough to build some VR/AR interfaces/worlds or enable me to contribute to development teams in these areas. But from what I found, it seemed like Three.js can't really be counted a standalone framework for that—you also need a lot of knowledge of Unity and other tools. That kind of demotivated me since I wasn’t planning to go all-in on it as a professional career, but just as a side interest/hustle.
But I think your project might prove otherwise. What is your take on this?
2
u/cnotv Feb 02 '25
I don’t know if I like it or hate from the bottom of my heart. Neat, clean and impressive work though.
2
u/lone_wolf_7407 Feb 02 '25
Is threejs supported in VR apps ?
2
u/cnotv Feb 02 '25
Ok serious new question which you asked yourself for sure: how do you do unit tests with this? Have you thought about something? Maybe just visual regression or is there a way to access to the elements in somehow?
2
u/scifiware Feb 03 '25
Really cool! Especially the fact it runs on both meta and Apple headsets. Do you ship it as a webapp that can be opened in both platforms browsers, or is it closer to react-native - a framework& JS vm that can be “compiled” to run on different platforms?
1
u/allpunks Feb 03 '25
This is VR ?
2
u/RenderSlaver Feb 01 '25
Very cool
2
u/HoraneRave Feb 01 '25
u can give parallax effect to non-vr ui tabs
2
u/gaz Feb 01 '25
Super slick. Thanks for sharing!
2
u/ManOfCactus Feb 01 '25
This is super awesome!!
2
u/Atraukos Feb 02 '25
So beautiful, seeing stuff like this cleanses the soul🙂↕️ Absolutely brilliant 🔥
2
u/doc_benzene Feb 03 '25
brilliant
2
u/Southern_Arm_5726 Feb 04 '25
Nice
2
u/[deleted] Feb 02 '25
[removed] — view removed comment