mpd2glb - LDraw to GLTF converter


mpd2glb - LDraw to GLTF converter
#1
Hi there,

I've just released an initial version of mpd2glb, a node.js tool for converting from packed .mpd models to GLTF binary format (.glb).

The ouput models are world-size, i.e. centimetres in size, not LDUs, to make them consistent with other non-LDraw GLTF models with different dimensions.

The tool is already available at: https://github.com/anteloc/mpd2glb

Cheers!  Smile
Reply
RE: mpd2glb - LDraw to GLTF converter
#2
(2026-03-03, 23:51)Carlos Antelo Wrote: Hi there,

I've just released an initial version of mpd2glb, a node.js tool for converting from packed .mpd models to GLTF binary format (.glb).

The ouput models are world-size, i.e. centimetres in size, not LDUs, to make them consistent with other non-LDraw GLTF models with different dimensions.

The tool is already available at: https://github.com/anteloc/mpd2glb

Cheers!  Smile

As an employee at Bentley Systems (the company that acquired Cesium in 2024), I find this to be really cool. Thanks for creating this tool and sharing.

(Cesium is one of the co-creators of the glTF file format.)
Reply
RE: mpd2glb - LDraw to GLTF converter
#3
(Yesterday, 16:50)Travis Cobbs Wrote: As an employee at Bentley Systems (the company that acquired Cesium in 2024), I find this to be really cool. Thanks for creating this tool and sharing.

(Cesium is one of the co-creators of the glTF file format.)

Thanks Travis, I find that LDView is really cool too!

This tool makes the .glb versions very close to their original .mpd counterparts, that was intentional, even keeping the internal structure for the models.

I posted on another thread about a VR webapp I made for inspecting models both in web and VR: https://anteloc.github.io/modelscope-xr.html

Now, the demo model that is loaded automatically when entering the app (42000-1) is actually in .glb format.

If you (or someone else) have a Meta Quest 3 headset, you can inspect that .glb model in VR, and you'll notice that the insides of it are actually the same as the original model, i.e., it's not "hollow", as it usually happens in other cases.

Cheers!
Reply
RE: mpd2glb - LDraw to GLTF converter
#4
Just released v0.2, with support for:

- Draco compression
- Uncompressed .glb

Available at: https://github.com/anteloc/mpd2glb/tree/v0.2

Cheers!
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)