Text over background

Hello! I can’t find a way to draw some text over a custom background. What’s the easiest way to do it?

I want this exact effect: https://doc.babylonjs.com/_next/image?url=%2Fimg%2Fhow_to%2Fdyntext.png&w=1920&q=75 which is posted on babylonjs docs but sadly no snippet is provided to illustrate it.

Here’s my PG: https://playground.babylonjs.com/#HD0631#1

Maybe you could use a 2d gui for this ??? https://playground.babylonjs.com/#ZI9AK7#1

Then you could add a background in your gui ???

Else the dynamic texture simply wraps a 2d canvas where you can draw what you want :slight_smile:

Thanks for reply! Currently I’m sticking to this method: https://playground.babylonjs.com/#HD0631#2 :slight_smile:

1 Like