Closed FrankBevr closed 2 months ago
Added Note: I just saw XR is on the road map for next year. Yeay π
Yes! I definitely hope to work on XR in general and implement it with the library but honestly have no idea how to start with it. Haha Let's discuss it here
My biggest question @FrankBevr, do I need a headset to test it?
No, you dont need a headset, thats the beauty in my opinionπ»
gh repo clone hiukim/mind-ar-js
cd mind-ar-js
node --version
v18.18.2
npm install
npx vite --config vite.config.dev.js
http://localhost:5173
https://tinyurl.com/mindar-frank
The trick with AR is to understand. There is the virtual camera and there is a real camera. You overlay the real camera(webcam) with the virtual camera(ThreeJS Camera). The tricky part is to calucalte the position of the real camera 60 times per second.
Alias "Where is my picture" "There is my picture" "Where is my picture" "There is my picture" "Where is my picture" "There is my picture" 60 times a second. After each frame adjust the virtual camera a bit
8th Wall
Zappar
Babylon AR
...
MindAR uses his own thing of ThreeJS Camera.
See this line
The same in blue via react, this line
I don't know yet if thats a actually issue or not, in the react-three-fiber example he just dont use it. See this line , I think he rips the controller from mindAR out and attach it to his own camera somehow, this line But yeah this code is a bit cumbersome to read, especially if i see updateMatrix, yeah sure completly naturally to update Matrix manually π π
@FrankBevr We started to play around with XR just recently here https://github.com/Tresjs/XR
I see potential as a community package, wdyt?
I'm gonna close due to inactivity. Feel free to reopen if someone wants to work on it. But IHMO should be a community package
Description
Hola π
There is MindAr. MindAr is a threeJS libary for image tracking and other AR Features.
Is it possible to integrate it?
Not too familar with TresJs So far, but maybe with some help.
I can skretch something out to make a tiny AR Expierience.
Does someone with more expierience can take a look and some ideas of how to implent it in a really rough way? ^ ^
Best Regards
Suggested solution
React Three Fiber and mindAR integration
MindAR - Repo
Alternative
No response
Additional context
No response
Validations