-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Blank Canvas when navigating between two pages that have a TresCanvas #41
Comments
Have you resolved this issue?
#edit Solved with a neat hack 🤣
@alvarosabu we don't have access to @trejs/core right? |
Hey there, @T-Mike @markus-gx did you guys tried out latest version v1.2.0? Daniel and I made some changes that might solve this issue, I had it too in the playground and now it works. Could you please update and try again to see if it works? |
Sadly not. Already on the latest version.
|
I confirm, problem still here with version 1.2.0 |
Yep it's reproducible, I will investigate further. Its weird because the playground its done with Nuxt module and works. 😅 |
@T-Mike could you confirm if this still happens in v2? |
Yes still happens. https://stackblitz.com/edit/nuxt-starter-jreyrm And for your previous comment, I checked the playground and this is not the same situation. If I'm not mistaken, the home doesn't have a tresjs animation and nowhere on the playground you go from an experiment to another experiment (ie. from a page with a Tres canvas to another page with a Tres canvas). |
@T-Mike gotcha! Thanks |
Hey everyone @T-Mike @markus-gx sorry took so long to get back to you. I've been trying to figure out this bug the last 3 weeks and the only workaround I found was to wrap the My rough guess is that the SSR version of the component is causing the issue, but now after the new version of nuxt Sorry for the inconvenience |
Describe the bug
TresJS scene does not display when you navigate between two pages that have a
<TresCanvas>
When the current page has a
<TresCanvas>
and you navigate to another page that has a<TresCanvas>
, new page displays a blank canvas.When the current page does not have a
<TresCanvas>
and you navigate to another page that has a<TresCanvas>
, new page works as expected.Same behaviour on latest Chromium and Firefox.
Only Firefox outputs a warning: "WebGL Context lost"
Reproduction
https://stackblitz.com/edit/nuxt-starter-tg1cya
Steps to reproduce
Create a nuxt Project.
Add a "pages" folder to enable routing.
Inside "pages" folder, add 3 .vue files. On two of them, add a TresCanvas with a basic scene inside.
Then navigate between the pages to experience the bug.
On my reproduction, just use the three links to navigate between pages.
Home does not have a
<TresCanvas>
Page1 and Page2 have a
<TresCanvas>
System Info
Used Package Manager
yarn
Code of Conduct
The text was updated successfully, but these errors were encountered: