I am creating an editor using babylon.js and I’m having issues with multi-views. Basically, when I click objects in my scene I want to be able to preview that object in a separate panel. I therefore register a view with the engine when my panel component is mounted (vue js component wrapping an html canvas), and de-register that view before the component is destroyed.
I followed the instructions in the official docs but the issue I am facing is that the view flickers. It seems to me that it is initialized with garbage information (as I sometimes can even see parts of my desktop rendered in that view). The effect is more apparent using firefox but it also happens on chrome. (see the attached image: the green colour is the background colour of the canvas element, the pink colour and glitches are the issue I mentioned → should be transparent).
Any help would be greatly appreciated! Thanks in advance!