Creating a texture based on HTML

I have been looking everywhere to be able to take a given html file and then get a texture based on that html.

I tried using iframes, but as playcanvas is in an iframe, you cant stack them.

Any advice?

Thank you

You are looking at rendering HTML to an image, then converting that image to a texture. There may be some JS libraries for that. This is what I found from a search: https://stackoverflow.com/questions/10721884/render-html-to-an-image

1 Like

A post was split to a new topic: How to go from HTML DOM to Texture