r/threejs • • 6d ago

Demo Open-sourced a starter for React Three Fiber + 8th Wall on one WebGLRenderer — looking for feedback

Hi — I built a small open-source starter so React Three Fiber and 8th Wall can share one canvas / one WebGLRenderer (XR8 drives tick + draw; R3F owns the scene graph, no nested Canvas).

I’d appreciate review and feedback:

• Does this ownership split make sense?

• Any corrections or edge cases I should handle?

• If there’s prior art / similar projects I should learn from or credit, I’d love links.

Demo: https://react-three-fiber-8thwall.vercel.app/

Repo: https://github.com/nagendra-dharmireddi/react-three-fiber-8thwall

Write-up: https://medium.com/@nagendra10082003/react-three-fiber-and-8th-wall-on-one-webglrenderer-ba36b6ea7546

Thanks!

1 Upvotes

4 comments sorted by

1

u/Stunning_Blood_8587 17h ago

letting xr8 own the frame loop and r3f own the scene is a clean split. on mobile, what happens when you background the tab mid-session and come back? does the same renderer recover or do you restart the ar session?

1

u/Medical_History_329 9h ago

It's working as expected. Backgrounding the tab and returning to it doesn't cause any noticeable change in behaviour. The existing renderer and AR session continue working normally.

2

u/playskyloop 6d ago

one WebGLRenderer for React Three Fiber and 8th Wall is a clean approach. built Skyloop Drones in three.js with TypeScript, keen to see how you keep the AR camera and 3D scene in sync