Render Mesh on GUI / Mesh to Image?

Hey all!

I’m looking to render a static mesh in front of the Babylon GUI, such that the mesh is effectively converted into a 2D image that I can place inside/on top of the GUI. My use case is to automatically create 2D icons for items in my players inventory, just from the mesh of the item.

I have searched and can’t really find a way to do this. Is there a way to convert a mesh to an image and render it in Babylon GUI all in-memory? Thank you!

Hey, the best option is probably to use the screenshots engine:
https://doc.babylonjs.com/how_to/render_scene_on_a_png