LDraw is a popular system of
free software tools for modeling
LEGO creations in 3D. The LDraw file format and original program were written by James Jessiman. He also modeled many of the parts in the parts library that is central to the program. Since then, a variety of programs have been written that use the LDraw parts library and file format. LDraw models are frequently raytraced in
POV-Ray, a free 3D renderer.
The LDraw format divides a model into steps so that the building instructions can be incorporated into the design, and also allows for steps that rotate the camera and even (primitively) move parts around. It also allows for models to be used as pieces in larger
models to make design easier.
All of these tools, as well as information about LDraw and other resources, are availible from the LDraw website (http://www.ldraw.org):
It is possible but difficult to generate a LEGO creation solely by entering the piece "part numbers" and their positions. Usually, the following tools will be used to put them together.
- ldraw and ledit (http://www.ldraw.org) are the original MS-DOS programs that were written by James Jessiman. It has not been updated since 1997, and is considered obsolete.
- LDraw-mode (http://folk.uio.no/fredrigl/technic/ldraw-mode/) is an EMACS major mode for editing LDraw files as text.
- MLCad (http://www.lm-software.com/mlcad/), an orthographic[?] editor with a wizards for generating minifigs[?], hoses, belts, and springs. It is availible for Windows, but is known to work in WINE.
- LeoCAD (http://www.leocad.org/), an editor with a perspective[?] camera. It is availble for Windows and Linux.
- L3Lab (http://www.hassings.dk/l3/l3lab.html), a fast orthographic[?] viewer for LDraw files, availible for Windows
- LDLite (http://www.gyugyi.com/l3g0/ldlite/), a slower perspective[?] viewer for LDraw files that boasts specular reflection and cutaway viewing. It runs in Windows.
- LDView (http://home.san.rr.com/tcobbs/LDView/), an OpenGL-accellerated program similar to LDLite, for Windows and Linux.
- Ldglite (http://ldglite.sourceforge.net/), an open-source, OpenGL viewer similar to LDLite, for Windows, Linux, and MacOS.
- L2P (http://www.el-lutzo.de/lego/l2p.html) and L3P (http://www.hassings.dk/l3/l3p.html), two similarly-named but independent programs that convert LDraw files to files that can be rendered with POV-Ray. Both of these programs use Lutz Uhlmann's LGEO library (http://www.el-lutzo.de/lego/lgeo.html), which contains LDraw parts hand-converted to POV-Ray CSGs[?] for better-looking parts. They run under MS-DOS and Linux. (NOTE: The LGEO library does not use semicolons after #declare statements, so "#version 3.1;" must be added to the beginning of the file to make it render in POV-Ray 3.5)
- LDraw2LWS (http://www.joern-thiemann.de/tools/ldraw2lws/) is a Windows program that converts LDraw files to Lightwave Objects and Lightwave Scenes.
- Ld2vr (http://perso.wanadoo.fr/paris.jean-pierre/LD2VR/ld2vr.htm) converts LDraw files to VRML. It uses Java, so it should work with any operating system.