[SOLVED] How to make the game canvas transparent?

I try to integrate 3D panorama viewer (just like Google Street View) into the game.
However, there is a black background on game screen block the viewer. (Left Image)
In the right image, I try to reduce opacity of game screen via debug tool to make you see the viewer.

Is there anyway to make the game screen transparent instead of black color?
The game screen is canvas element. It should support transparent
But I think the core engine just paint it to black color.
Since the body element is already in black color. Why they make the canvas black color too?

RN2d2NM.jpg
Hi,

You can try to change canvas opacity by css or by JavaScript:
Code:
let canvas = document.getElementsByTagName('canvas')[0];
canvas.style.opacity = "0.5";
Remember, the opacity should be inside quote symbols, maximum is 1.0, minimum is 0.0.
Hi,

You can try to change canvas opacity by css or by JavaScript:
Code:
let canvas = document.getElementsByTagName('canvas')[0];
canvas.style.opacity = "0.5";
Remember, the opacity should be inside quote symbols, maximum is 1.0, minimum is 0.0.

Thank you, Dr. Yami. I already got the answer from Kentou.
But if you pleased. Could you take a look at this?
I still has a problem when it come to Live2D. => https://forums.rpgmakerweb.com/inde...lack-background-from-live2d-join-scene.88676/

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-make-the-game-canvas-transparent.88516/