Create glb as environment

Hello , guys.
After reading the “Build a Village” chapter from official documentation, I noticed that at the beggining , the village is created from code using loops , but then on following chapter all the village meshes are importe from glb file , as in the following link:

loading the environment from glb file

So, my question is, how to to do this ?
I would like to generate mazes scenarios on some server to be downloaded as glb files in my scenes.

Other:
What is the proper / recommended way to create and distributing the objects into my scene ?
Lets supose I need a floor and some primitives shapes.
Should I learn blender for this?

To save a scene as .glb, you can use the gltf exporter:

https://doc.babylonjs.com/features/featuresDeepDive/Exporters/glTFExporter

And to produce such scene, you can use NGE:

https://doc.babylonjs.com/toolsAndResources/nge

1 Like