-
Notifications
You must be signed in to change notification settings - Fork 24
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
Parts previously generated previews not consistently working #82
Comments
Are the parts regenerated every time or cached? I'm wondering whether it has anything to do with the glTF extension changing, although the date is fairly recent. |
I think it's more likely something sillier with my UI @alteous but I'll keep an eye out for that, appreciate it. |
Gotten some headway here with quick fixes around using a common derived store for both generations from prompt submissions and those fetched via a GET request, but there's a larger issue looming around maintaining enough canvas contexts. If I scroll to the bottom of my feed and back up again now I start to see breaking previews:
Which led me to this THREE.js form discussion which points out that browsers really in principle only allow one WebGL context per page, although in practice depending on device and browser it could allow for a handful more. I'm hoping that threlte has some config to help me clear the context for real between rendering different
After that rubber ducking, I'm going to try simply hoisting up the wrapper |
That approach didn't work, and led me down a little research run to this very recent threlte issue I've commented on here. TLDR: React's THREEjs library has a clever Update: oh cool I always forget that GH adds a little note if you mention an issue anywhere else regardless of where in GH. |
Yeah this seems like a really promising example, and tunnel-rat seems not too crazy to port to a Svelte implementation (it's for React). |
Alright I'm still going to help threlte get their |
Okay I believe this was resolved as a part of #92 but let me know if there are still any issues! |
My previous generations don't alway show the part in the preview box. See pic attached!

The text was updated successfully, but these errors were encountered: