I’ve been trying to test the transparent project settings. I’ve made the project public.
The project just loads a iframe of itself after it loads. It stops doing it recursively because I’ve set a condition if (window.parent != window.top) to not load the project, so the project loaded in the iframe does not recursively create a new iframe within it.
Anyway, the problem I have, is that the project loaded on the iframe does not show a trasparent background, why is that? I’ve looked that the forum post regarding this and have tried everything that was suggested. Feel free to enter the editor and see for yourself
It’s a bit difficult to tell what’s going on but it looks like the canvas in the iframe is not set to be transparent.
Not sure what Pixi.js does (which is what appears to be loaded in the iframe?) but when the WebGL context is initialised on the canvas, it needs the alpha option to be true.
I don’t know enough about Pixi.js to give you an answer but it does look like the issue around the canvas of the iframe as you can resize the canvas and see the PlayCanvas app through the iframe:
The pixi app is not in the iframe, yes, I just used the PC published version (with ‘e’) of this project as a temporary placeholder until I get an SSL for my domain since I keep getting COORS error.
Thanks for sending me the link, when I get the SSL for the pixijs app that I create I will use it to test if it can be overlayed onto the PC project. But for now, can you tell me why the temporary placeholder (Transparent background) to be loaded in the ifram is not transparent?