Hello
How write html in BABYLON.GUI.Rectangle
Please help me
cc @carolhmj who is amazing
This problem has been discussed quite a few times on the forum before, such as:
- HTML projection to object in scene - Demos and projects - Babylon.js (babylonjs.com)
- HTML in 3D Space Part 2 - BJS Way to Matrix Transform - Questions - Babylon.js (babylonjs.com)
- Rendering an iframe on Babylon - Questions & Answers - HTML5 Game Devs Forum
I think the easiest method would be to draw the HTML contents into a canvas using something like rasterizeHTML.js by cburgmer or this Rendering HTML to an image - Ron Valstar - front-end developer, and then using that canvas as the input to a DynamicTexture Dynamic Textures | Babylon.js Documentation (babylonjs.com) which is the texture source of a Rectangle.
Hello @farukcelim just checking in, was your question answered?
Haven’t I read something in this forum about 2 weeks ago regarding an upcoming PR that will let us use ‘simple’ styling in a tb?
I’m still waiting on this one (or did I miss it?)
Yeah there is the StructuredTextBlock PR StructuredTextBlock (GUI 2D) by cronvel · Pull Request #11383 · BabylonJS/Babylon.js (github.com) but it isn’t finished yet