This project aims to be able to make a full lego 3D model using the ldraw file format (.ldr) from a height and color map, currently, it uses a per-pixel detail, although lower detail may come in the future


To use this is as simple as opening the terminal in the folder in which the files are located and using the following syntax:

python main.py <Output file> <Height Map> <Color Map>

For example:

python main.py output.ldr height.png color.png


This project only dependency is Python Image Library (PIL) which can be installed through pip using:

python3 -m pip install --upgrade Pillow

After that, you can use these projects as shown in the usage


View Github