LDD2LDraw - a working LDD mesh converter
2014-05-21, 17:46 (This post was last modified: 2014-05-28, 21:34 by Earnest J. Banbury.)
2014-05-21, 17:46 (This post was last modified: 2014-05-28, 21:34 by Earnest J. Banbury.)
Hi,
based on this brick viewer, I have written a converter, that creates LDraw files from LDD mesh files (*.g).
I've solved the problem of the files with the g1, g2, etc. extensions. These are subparts for a model, that are colored differently or textured. My converter can merge these into a single file.
I've attached an example of a part, that was originally split into two.
If there's enogh interest, I'm willing to upload the sources to Github and create a somewhat user friendly version (currently it's a command line tool.)
Greetings
Banbury
based on this brick viewer, I have written a converter, that creates LDraw files from LDD mesh files (*.g).
I've solved the problem of the files with the g1, g2, etc. extensions. These are subparts for a model, that are colored differently or textured. My converter can merge these into a single file.
I've attached an example of a part, that was originally split into two.
If there's enogh interest, I'm willing to upload the sources to Github and create a somewhat user friendly version (currently it's a command line tool.)
Greetings
Banbury


. The importer calculates the normals (by calling a Blender function), then it adds a so called modifier, that changes the normals based on the angle of neighbouring faces. Everything that's beyond a certain threshold is rendered with a sharp corner. That works pretty well. Lego pieces have a lot of sharp corners. So for most parts the results are very good.