Hi I’m using 8thwall + Three.js (+ vitejs) in a project without Cloud Editor or Niantic Studio.
1- The experience begins with the front camera enabled. A record button allows the user to capture a short video of themselves. After recording, a looping preview of the captured video is displayed along with a “Go Next” button.
2- When the Go Next button is pressed, it triggers a pipeline swap: the scene transitions to a new 8thWall module using the back camera with world tracking enabled, showing a 3D box in the AR environment. The logic for this scene transition is handled inside theSwapController.js
3- and that’s it.
→ I’m encountering a crash the first time the experience loads, when swapping from the front-camera pipeline to the back-camera pipeline. If I refresh the page, the crash won’t happen again. I’m still investigating the root cause, but any feedback or pointers would be greatly appreciated. Thank you!
Repository: GitHub - Alex-DG/8thwall-threejs-swap-pipeline
Live url: https://8thwall-threejs-swap-pipeline.vercel.app/
Alex.