Blakbird Posted November 17, 2008 Posted November 17, 2008 (edited) In an effort to give myself something to do, I decided to start learning how to use POV-Ray to render Lego. Since I've never been someone who starts small, I decided to try to modify the 8458 Silver Champion colors to look like the McLaren MP-42 Formula One car. Here's what I did: I found the Ldraw model in Dlarian's Brickshelf folder. Thanks! I used Bricksmith to edit the file by changing various part colors to chrome, red, and black. I ran L3P on the file using L3P Launcher. This converted it into a POV file. When running L3P, I included the LGEO parts database which has upgraded part definitions. This wasn't easy because there is a brand new version of LGEO and L3P doesn't quite know what to do with it yet. I changed the standard Ldraw colors to the colors of Todd Lehman. I had to do this manually in the text file because I couldn't figure out the convoluted path L3P, LGEO, and POV-Ray use to assign the colors. This made a huge difference in realism. I tried to use Mesh Enhancer to improve the tesselation of some parts, especially the tires, but I couldn't get it to run on my POV file. Maybe this has something to do with the new LGEO parts. I read enough of the POV manual to figure out how to turn on reflectivity and diffusion for the floor. Have to be able to see the reflection of those exhaust pipes! I turned on radiosity to improve the lighting and removed the standard light sources. I added a High Dynamic Range spherical light probe to give the chrome something to reflect. Specifically, I used the Eucalyptus Grove probe from Paul Debevec. I chose this because it has standard outdoor lighting. POV-Ray doesn't support HDR lighting, so I had to switch to Mega-POV. I added an area light near and above the camera to provide some soft shadows for contrast. Finally, I rendered at 4000x3000 pixels and then used Graphic Converter to reduce and dither using bilinear interpolation to soften all of the edges. This is the result: It took about 5 hours to render. I'm open to thoughts, comments, criticism, or advice for improvement. Note that I made this on a Macintosh which uses a higher gamma than typical PCs, so it helps to turn up the brightness a bit if you are using a PC. Many thanks to Koyan for his excellent tutorial which pointed me in the right direction. Some day, I'd like to add Ldraw files and renders to Technicopedia for each Technic set. But I shouldn't get ahead of myself. Edited March 24, 2009 by Blakbird Quote
Ras_Al_Ghul Posted November 17, 2008 Posted November 17, 2008 awesome render blakbird love the technicopedia btw Quote
Front Posted November 18, 2008 Posted November 18, 2008 (edited) Great to see some fine rendering. Back a long time ago I used 3DStudio (dos-version) to do rendering of still and animations. These days I'm using Unigraphics CAD software, but haven't really done any rendering projects the last couple of years or more. Last major project was modeling and rendering of a motorcycle. I assume that the tesselation is the actual model being a polygon representation of the geometry. I don't know the LDD file format though. I see it on the tires (as mentioned) and also on parts of the front wing. I wonder if there isn't any setting in your software that enables a smoothing of the different shades of neighbouring polygons, during the rendering proces ? My memory tells me that that might be possible in other softwares, but I'm not 100% certain. But I like your picture a lot. It looks great, although my first thought was that the car was floating above the mirror ground. Not sure why it looked like that to me, I clearly see it's probably firm on the ground. I don't know the lightning technics of the software, but that is what might be worth experimenting with. What has often been said is that a great rendering is very much a result of something the model can reflect, that there is some environt (not actually in the picture). But that might be the trick you achieve with Eucalyptus Grove probe. Front Edited November 18, 2008 by Front Quote
Asuka Posted November 18, 2008 Posted November 18, 2008 A very good work, it looks simply wonderful! Quote
CP5670 Posted November 20, 2008 Posted November 20, 2008 (edited) The lighting and reflections on that look great. Thanks for detailing the entire process, so the rest of us can do this too. Finally, I rendered at 4000x3000 pixels and then used Graphic Converter to reduce and dither using bilinear interpolation to soften all of the edges. It would probably be better to do the antialiasing directly while rendering the model, since there are some jagged edges visible, especially in the back. Most rendering programs should have options for that somewhere. Edited November 20, 2008 by CP5670 Quote
Blakbird Posted November 21, 2008 Author Posted November 21, 2008 It would probably be better to do the antialiasing directly while rendering the model, since there are some jagged edges visible, especially in the back. Most rendering programs should have options for that somewhere. POV-Ray does have anti-aliasing, but I did it the way I did because Koyan recommended it and he is much better at it than me! Maybe I will try rendering it again with built-in anti-aliasing to compare the two. Quote
CP5670 Posted November 21, 2008 Posted November 21, 2008 He probably suggested it for speed reasons. AA (especially supersampling) adds a lot of extra time to the rendering, but it would look better and the smoothing would be consistent across the model. I guess you could just leave it running overnight. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.