Hello,
I am trying to figure out a way to programmatically fit an iframe inside an arbritary Plane in a Scene.
I want to have a way that given an
- arbitrary Plane in a Scene.
- an iframe of a webpage
I would like to render the webpage fiting the whole Plane space.
- The plane has a transparent material that enables to see the content of the iframe.
- The cssobject-div is transformed with the help of CSS3DObject and CSS3DRenderer
Suppose I have a Plane placed in the scene, for this example its name is “web_plane”. I would like to programmatically make it render an iframe, for this example the webpage “https://www.babylonjs.com” . I am struggling to make it fit completely to cover the plane “web_plane”.
To my understanding in order to achieve that I need that the transformed div occupy exactly the place of the plane but I believe it is not the case as it is smaller.
Any help would be appreciated