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

AR / threejs environment persisting between route changes #23

Open
amcc opened this issue Oct 17, 2024 · 0 comments
Open

AR / threejs environment persisting between route changes #23

amcc opened this issue Oct 17, 2024 · 0 comments

Comments

@amcc
Copy link

amcc commented Oct 17, 2024

I have a nextJS app with multiple AR pages. If i look at one AR scene, then go back to the list and navigate to another AR scene a boxGeometry is left in the threejs environment.

I have tested with using image textures and video textures on a boxGeometry object. The behaviour is that the geometry correctly shows a texture passed as an image, or video to the component and works correctly. Navigating to a new page appear which will pass the AR component a different image or video prop then will show the previous geometry still in the scene, its texture is updated to the new image, or video, but the geometry remains frozen in place

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

1 participant