I have an HTML table that contains a list of streams, each row has a button that switches to another page where I load the model.
The first time it loads nicely and there is no problem with it. However, if I go back and select another stream, then the shadows completely break.
Can you recommend anything for this issue?
(If I refresh the page anywhere, it fixes it, but once a model has been opened, the shadows get messed up.)
This usually happens when you load the viewer in multiple times - it needs to be “global”, ie that canvasRef div needs to be the same one across your SPA’s views.
It can be a bit tricky to pull off, or explain - let us know if what i’ve said makes some sense to you!