| |||||||||||||||||||||||
| |||||||||||||||||||||||
|
|||||||||||||||||||||||
Designing and Rendering LEGO Mindstorms Robots
After updating my LegWay article, this was intended as a fun article show how you can design and render your LEGO Mindstorms ideas as CAD-style drawings or as high-resolution 3D renders. This article requires a lot of additional software to be installed. Although much of the software is cross-platform (or with alternatives readily available), the assume you are using Windows. Here is a list of software required:
Although I haven't tested this theory, I would suggest that LDRAW, L3P, L3PAO and LGEO are installed in directories without spaces, since I had a few problems initially when these components were installed in my 'Program Files' directory. As an example, we will use the Roverbot (with tank treads and the LEGO light sensor) as described in the LEGO Mindstorms Constructopedia. Designing
We will also use this 'stepping' feature later to render some very neat construction videos.
Rendering ImagesTo convert the LDR/DAT images that ML CAD creates into something we can render is very simple. Once you have L3PAO installed, it should be easy to generate the necessary POV-Ray source files. Simply select your saved model, select your options and hit "Run L3P". L3PAO will even open up POV-Ray and start the rendering process. All the options are rather disconcerting, but for a good render, most of the default options are alright. Selecting the '-lgeo' option will substitute default shapes for higher quality, better looking objects. As you can see from the example render above, the results are nothing short of beautiful! Creating VideosWe can use L3P(AO) and POV-Ray even further to create simple instruction videos. This requires the "stepping" feature we discussed earlier. After creating your stepped model, you can tell L3P to generate a POV-Ray source file that is designed to be animated. You can do this simply by selecting the "-sc (Stepclock)" option. POV-Ray doesn't generate animations like you might expect. Instead of generating an actual animation file (such as an .MPG or .AVI), POV-Ray generates a series of bitmaps that must then be imported into an animation program (such as Windows Movie Maker). Within the GUI though, POV-Ray must be configured to create animations. This is best done by editing the resolution ini file ("Tools, Edit Resolution INI file"). Open the INI file and add the following to the end of the file: [320x240, AA Animation] Width=320 Height=240 Antialias=On Antialias_Threshold=0.3 Initial_Frame = 0 Final_Frame = 30 Initial_Clock = 0 Final_Clock = 30 [640x480, AA Animation] Width=640 Height=480 Antialias=On Antialias_Threshold=0.3 Initial_Frame = 0 Final_Frame = 30 Initial_Clock = 0 Final_Clock = 30 This will cause POV-Ray to generate up to 30 images (equivalent to 30 building steps) at either 320x240 or 640x480, depending on the option selected. By subsequently importing the generated images into a movie maker, fairly impressive building videos can be created, download the example below (sorry, Windows Media only): ConclusionWith a few extra and free tools, you can see how easy it is to create professional-looking results to present your LEGO creations!
Submitted: 16/11/2004 Article content copyright © James Matthews, 2004.
|
|
||||||||||||||||||||||
All content copyright © 1998-2007, Generation5 unless otherwise noted.
- Privacy Policy - Legal - Terms of Use -