I finally got the iframe to load in my 3d environment. My question is how can I take screenshot of this?
I want to create a stream if possible of whatever is outputted in the iframe.
https://playcanvas.com/project/758310/overview/playcanvas-iframe
I finally got the iframe to load in my 3d environment. My question is how can I take screenshot of this?
I want to create a stream if possible of whatever is outputted in the iframe.
https://playcanvas.com/project/758310/overview/playcanvas-iframe
Hi @Aloragames and welcome,
This example can be of help:
https://developer.playcanvas.com/en/tutorials/capturing-a-screenshot/
I have an iframe that is loaded via the iframe example in a 3d scene. I understand this is an iframe being transformed by the camera in the 3d world.
is there a way of capturing the output of that iframe plane?
Ah, no, that isn’t a 3D texture, so to capture that you will be looking to more traditional ways.
There are some libraries that allow you to render an image of the DOM or part of the DOM.