Can I render traditional HTML, CSS, or canvas elements to the Mesh created by Babylonjs GUI?3q!

Can I render traditional HTML, CSS, or canvas elements to the Mesh created by Babylonjs GUI?3q!

You can take a snapshot of HTML/CSS using https://html2canvas.hertzen.com/ - then feed the canvas dataURL to the material’s texture that is applied to your mesh.

3 Likes

DynamicTexture will help you to render any canvas element as a texture - Dynamic Textures | Babylon.js Documentation

2 Likes