Downloading the OBJ model using Babylon.playground on Babylon.js!

I couldn’t find anything on the Internet at all, and so I had to program myself.

In the first version, I made a green button that downloads OBJ when clicked, reading all the vertices and faces from the gizmo structure.

Downloading the OBJ model (Version 0 - Downloading OBJ using gizmo) | Babylon.js Playground

We go into blender and see the result.

Everything works great!

In the second version, I made sure that all the changes to gizmo were saved, not just the original model.

Downloading the OBJ model (Version 1 - Downloading OBJ using gizmo but all gizmo changes are saved) | Babylon.js Playground

That’s what I got.

Downloading the OBJ model (Version 2 - Saving only what falls within the field of view of the blue gizmo with cropping) | Babylon.js Playground

It turned out to be very peculiar, but this may also come in handy somewhere, I think…

I’ll continue this topic later.

1 Like