You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did a bit of digging on this. As far as I can tell, p5.instance._renderer is correct (RendererGL) all the way until it requests the reference space in p5ar.js. Inside the .then(), the renderer comes back as a Renderer2D. All I can think of is that there's some weird race condition happening here that doesn't happen with setup(). but I have no idea what it could be right now. Very spooky.
Thanks for digging. The way that we are handling preload methods might need to change for the createARCanvas. Luckily I would say this isn't the highest priority yet since it might require significant investigation time.
I was under the impression that model loading worked with loadModel() in preload with AR but I don't have a WebXR compatible phone atm. I can look into it when I get access to a phone.
Getting
works fine in
setup()
but canvas is visible before launching and sketch is running in background before AR is entered.The text was updated successfully, but these errors were encountered: