HOME | DD

AdamoN β€” LEGO Overdose. by-nc-nd

Published: 2010-01-04 10:25:02 +0000 UTC; Views: 4463; Favourites: 62; Downloads: 0
Redirect to original
Description >>>> ORIGINAL UPLOAD: 4/1/2010 <<<<

Playing around with the LEGO generator I created from scratch in C4D.

So here's the story:
1) Using the XPRESSO node based expression system in C4D I created a single LEGO piece/generator from which every simple LEGO brick could be generated just by tweaking 3 integer parameters: lenght, width, height. The tough part was to get the spacing of the teeth, cylinders etc right, in order to be placed/scaled right, as the brick changed dimensions. The XPRESSO + Cloner Object combination proved to be really powerful.

2) After some testing with various brick sizes, I decided to make a more complex LEGO scene. So I made 7 copies of the generator, tweaked each one to a different size and then converted them to simple polygon objects (cause the system was getting reaaaaly slow). Those 7 different bricks were thrown in a Cloner and so a grid array of 343 bricks was created. Using Cinema 4D Dynamics, I let those bricks fall under the force of gravity and smash to the floor. I cached the whole animation, in order to be able to quickly move through frames and find the desired moment of collision.

3) After the materials were randomly applied upon the bricks, I exported the scene to Maxwell studio. Set up a few options, chose the sun to come from behind the bricks for a more dramatic look and that was it.

RENDER TIME: 166 hours (and there's still some fuckin' noise) on a Core2Duo 2.4 GHz, 4GB RAM iMac.

Some minor post work was done in PS afterwards. I hope you like it! The LEGO generator needs some more work regarding some small details on the LEGO bricks. I'm considering uploading it when finished, if of course you show interest!

>>>> EDIT: 23/8/2013 <<<<

More than 3 years after the original render, I decided to upload a completely new version of the LEGO scene set-up and rendered sometime in February of 2012. Rendered with a 4 times faster CPU, with 5 times more bricks (reaching 1500), SSS and Motion-Blur this time.

65 hours of rendering in Maxwell for a 1920x1080 image on a quad-core 3.4 GHz Intel Core i7 2600K processor with 16GB of RAM.

I kept the same C4D LEGO Generator I had created for the initial scene, and focused heavily on the photographic aspects of the render. Much more thought was given on the camera position, the viewing angle, the Depth of Field and the composition of the scene.

Furthermore, I spent many hours testing the Sub-Surface-Scattering properties of each brick color trying to get as close to the transluscency of real LEGOs as possible. I observed that the most noticeable effect occurs on red, yellow, and white LEGOS, each turning into strong pink, orange, and faint yellow, respectively, when backlit.

In order to amplify the sense of bricks wildly flying all over and towards the camera, I added shutter-based Motion Blur at a shutter speed of 1/250 second.

The addition of SSS and Motion-Blur slowed down the rendering considerably, introducing almost impossible to disappear noise in legos which were backlit, blurred due to their motion and due to the Dof at the same time. The noise problems in these areas where improved in post-processing in PS.
Related content
Comments: 32

Meatloaf-DH [2010-04-21 01:52:39 +0000 UTC]

Thats insane!! Awesome job!

πŸ‘: 0 ⏩: 0

SerkDesigns [2010-03-28 17:48:50 +0000 UTC]

166 hours ! my god men i hope your CPU is well but don't worry the noise thing i think almost no one notice, that gives and special effect to the render, btw very nice job, even looks like a cover for a game in Lego, I love Lego too

πŸ‘: 0 ⏩: 0

SoulxMonkey [2010-03-28 10:44:19 +0000 UTC]

XPRESSO? COFFEE? What's that? (apart from being popular beverages)

πŸ‘: 0 ⏩: 0

ROMAgfx [2010-03-28 01:19:38 +0000 UTC]

HOOOOOOLYYYY CRAP 166 hours, thats insane.

πŸ‘: 0 ⏩: 1

AdamoN In reply to ROMAgfx [2010-03-28 10:09:30 +0000 UTC]

I didn't mind, I went for a 7-day winter vacation and when I was back home it was ready!

πŸ‘: 0 ⏩: 0

RafyKoby [2010-03-27 23:04:00 +0000 UTC]

166 hours Oo do u think it was worth it ? SL? Benchmark?


anyway I want to try your Lego Gen someday

πŸ‘: 0 ⏩: 1

AdamoN In reply to RafyKoby [2010-03-28 10:08:03 +0000 UTC]

Well, first of all, do you think it was worth it? My machine's performance was quite embarassing: SL 13.80 and Benchmark 1.62... My opinion is that the scene could be more photorealistic, maybe the lack of any background or HDRI is to blame. The use of SSS on the bricks could play a significant part in the photorealism, but that would increase render times a lot more...

πŸ‘: 0 ⏩: 0

3DEricDesign [2010-03-27 20:59:22 +0000 UTC]

cool men is original lego shot.

πŸ‘: 0 ⏩: 0

Urd-Yggradsil [2010-03-27 20:37:42 +0000 UTC]

Nice picture...

I'm always interested in seeing XPRESSO and COFFEE scripts! - Does anyone know of a good book on COFFEE?

πŸ‘: 0 ⏩: 1

AdamoN In reply to Urd-Yggradsil [2010-03-27 20:44:17 +0000 UTC]

Thanks a lot! Unfortunately I have no experience on COFFEE scripting, so I can't really help you on that. I learned XPRESSO from a Lynda.com tutorial, utilizing a lot Cinema 4d's "Help" and of course through trial and error. I would google it...

πŸ‘: 0 ⏩: 1

Urd-Yggradsil In reply to AdamoN [2010-03-27 21:05:09 +0000 UTC]

thanks for the information... I'll have a look at the website.

πŸ‘: 0 ⏩: 0

ihni [2010-02-15 00:34:41 +0000 UTC]

It looks like right after when I was a child and got tired of playing with Lego ...

πŸ‘: 0 ⏩: 0

3Dapple [2010-01-06 18:28:30 +0000 UTC]

I like it, good idea to use xpresso for making a lego generator. But jesus christ, 166 hours of rendertime?

πŸ‘: 0 ⏩: 1

AdamoN In reply to 3Dapple [2010-01-06 21:58:58 +0000 UTC]

I'm glad you like it!!
Maxwell, being unbiased, is notorious for its long render times, and how much power can a dual-core 2007 iMac give anyway? However that didn't bother me because I left for winter holidays for 7 days, so I left the machine do it's job and when i was home it was done. Are you familiar with Maxwell?

πŸ‘: 0 ⏩: 1

3Dapple In reply to AdamoN [2010-01-07 10:52:41 +0000 UTC]

No, but I know it's got some long rendertimes I use Advanced Renderer 3, and it's fairly quick. I think it would take 15 minutes for my quad-core 3 Ghz CPU to render it.

πŸ‘: 0 ⏩: 1

AdamoN In reply to 3Dapple [2010-01-07 15:31:56 +0000 UTC]

C4D's render engine is pretty good and quick, and I definitely use it in projects where time is important! But unfortunately it can't match Maxwell's approach to light, complex lens effects and materials.

πŸ‘: 0 ⏩: 0

jerungan [2010-01-06 03:31:33 +0000 UTC]

i understand nothing.

πŸ‘: 0 ⏩: 0

El-Bronco [2010-01-06 03:13:12 +0000 UTC]

Nice lightning. Using particle system to create this explosion scene, I presume.

πŸ‘: 0 ⏩: 1

AdamoN In reply to El-Bronco [2010-01-06 22:04:24 +0000 UTC]

I could as well use particles, but I was eager to try Cinema 4D's new Dynamics module, so I created a 7x7x7 (=343) grid array of LEGOs and just applied gravity and let them collide onto a plane. Particles could do the job as well...

πŸ‘: 0 ⏩: 1

El-Bronco In reply to AdamoN [2010-01-07 06:10:28 +0000 UTC]

Ow, I see.

πŸ‘: 0 ⏩: 0

Affet-kak [2010-01-06 03:06:24 +0000 UTC]

very nice
well set up, and great lighting!

having the sun behind it makes it look as though there is an explosion and the lego is being pushed by the blast!

πŸ‘: 0 ⏩: 1

AdamoN In reply to Affet-kak [2010-01-07 15:44:39 +0000 UTC]

Thanks a lot!
Yeah, in fact I was going to name it LEGO explosion, but "Overdose" hit me the last second...

πŸ‘: 0 ⏩: 1

Affet-kak In reply to AdamoN [2010-01-07 22:54:15 +0000 UTC]

yeah overdose is a good name
keep up the good work!

πŸ‘: 0 ⏩: 0

Black-Raven546 [2010-01-05 18:54:52 +0000 UTC]

lego generator? link please

πŸ‘: 0 ⏩: 0

Obsidian-Eyes [2010-01-05 14:54:02 +0000 UTC]

WOW awesome! and i really like your description too, its so hard to come across 3D work where people explain how they went about things, very informative, especially since im gonna be using a lot of C4D this year,
i look forward to more lego!

πŸ‘: 0 ⏩: 1

AdamoN In reply to Obsidian-Eyes [2010-01-07 15:48:31 +0000 UTC]

I wish it's a good year! Thank you!

πŸ‘: 0 ⏩: 0

Rendan86 [2010-01-04 12:20:39 +0000 UTC]

that some really amazing work you did man. Such a professional work... and you even made yourself the LEGO bricks generator...just wow

πŸ‘: 0 ⏩: 1

AdamoN In reply to Rendan86 [2010-01-04 13:43:38 +0000 UTC]

Thanks man, I really appreciate it! I guess I was sooo eager to do something completely unrelated to the University!

πŸ‘: 0 ⏩: 1

Rendan86 In reply to AdamoN [2010-01-04 17:53:19 +0000 UTC]

I must say, man, that you did great.
Kudos

πŸ‘: 0 ⏩: 1

AdamoN In reply to Rendan86 [2010-01-05 00:07:49 +0000 UTC]

πŸ‘: 0 ⏩: 0

PaP-f [2010-01-04 11:57:51 +0000 UTC]

auta einai re file!!
maxwell sigouri poiothta

πŸ‘: 0 ⏩: 1

AdamoN In reply to PaP-f [2010-01-04 12:12:33 +0000 UTC]

ΑΡ δΡν μπορω, αυτο το scattering του φωτος στη μΡση, σαν Ξ½Ξ± ξΡχΡιλι΢Ρι το φως, Ριναι ΞΏ λογος που αγαπαω το maxwell !!

πŸ‘: 0 ⏩: 0