Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a react-three-fibre R3F example #7

Open
ThorstenBux opened this issue Feb 9, 2023 · 8 comments
Open

Created a react-three-fibre R3F example #7

ThorstenBux opened this issue Feb 9, 2023 · 8 comments

Comments

@ThorstenBux
Copy link

Hi @alanross ,

I've created a R3F example that works (after a fashion). I've got everything on a branch and if you are interested would create a PR. Just let me know if you would like to have the branch pushed to your repo or if I should fork and open a PR from the fork.
Cheers

@alanross
Copy link
Owner

alanross commented Mar 9, 2023

Awesome, thank you Thorsten! Can you hold on to it and keep it warm for now so we can integrate it once the architecture is better defined?

@ThorstenBux
Copy link
Author

Sure thing, I'll push to a fork and keep it there. I'd also have a couple of questions as to why the model shows the way it shows :).
How are you getting along with the architecture. Need any help?

@alanross
Copy link
Owner

alanross commented Mar 9, 2023

What would you like to know about how the model is shown? If you have any system architecture suggestions on the C++ side I'd be happy to check it out

@ThorstenBux
Copy link
Author

ThorstenBux commented Mar 12, 2023

Hi @alanross I pushed it here https://github.com/ThorstenBux/AlvaAR/tree/thor-r3f
here is a screenshot regarding model placement.

image

It looks like the model is at an angle and not sitting on the surface. Unsure if that is due to my camera/model settings in R3F or if it is due to the data coming from AlvaAR.

Lastly, I'm also getting a lot of these errors randomly:

RangeError: Range consisting of offset and length are out of bounds
set — alva_ar.js:6372
write — alva_ar.js:6372
findCameraPose — alva_ar.js:6527
(anonymous function) — useAlvaAR.tsx:91
render$1 — index-7dbf758c.esm.js:1454
loop — index-7dbf758c.esm.js:1481
650set — alva_ar.js:6372

Would you know why that is.
Cheers

@alanross
Copy link
Owner

IMU integration will handle orientation. The SLAM algorithm itself has no notion of its orientation in regards to its environment and will just use the first found frame as its reference.

@Zaniyar
Copy link

Zaniyar commented Apr 2, 2023

It looks like the model is at an angle and not sitting on the surface. Unsure if that is due to my camera/model settings in R3F or if it is due to the data coming from AlvaAR.

Would you know why that is. Cheers

actually when you test the official example, the 3d object is never "sitting" on the plane, rather always floating.

@Squareys
Copy link

actually when you test the official example, the 3d object is never "sitting" on the plane, rather always floating.

I think this is because the video frame is shown before the tracking is ready and can update the 3D mesh, so it just lags behind the video basically. The tracking is quite stable and surprisingly performant.

@sookie928
Copy link

sookie928 commented Jan 8, 2024

Lastly, I'm also getting a lot of these errors randomly:

RangeError: Range consisting of offset and length are out of bounds
set — alva_ar.js:6372
write — alva_ar.js:6372
findCameraPose — alva_ar.js:6527
(anonymous function) — useAlvaAR.tsx:91
render$1 — index-7dbf758c.esm.js:1454
loop — index-7dbf758c.esm.js:1481
650set — alva_ar.js:6372

Would you know why that is. Cheers

you initialized alva twice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants