Importing 2D image similar to CreateGround method

Hi All,

As the MeshBuilder.CreateGround method draws a plane land/ground in scene can we import a 2D image?

I know we can import stl/glb etc files which are 3D using SceneLoader.ImportMesh() or SceneLoader.ImportMeshAsync() which I have imported in below PG. Line number 10 which is commented.

https://playground.babylonjs.com/#KBS9I5#2831

Instead of 3d can I just add a 2d image as ground?

Yep! You can create a material with an image texture on it. :slight_smile:

https://playground.babylonjs.com/#KBS9I5#2835

Wow. It’s amazing. Exactly what I was looking for. Thanks!!

1 Like