Monday, April 22, 2013

Earth Day


The first thing that got me hooked on doing 3D was a rendering of the Earth. I was in grade 10 and my art teacher had a setup of Apple Performa computers in the backroom of the art class. It was his secret lab. Mostly he'd go back there to do freelance design work while we sat in class, painting without any direction.

One day a classmate shows me what he's working on the back room with our art teacher's help. He loads up Strata Vision and makes a cylinder with a sphere in it. He quickly applies a glass material to the cylinder and a pre-made Earth texture to the sphere. Rotating the view, he puts it at a 3/4 angle so we're looking at the top and sides. After pressing a render button I watch the computer process this information and give a full color image after a few minutes. I was blown away. The glass material actually refracted the image and the Earth was bent out of shape and warped as you would expect if it was encased in a solid glass tube.

That was it. Up until then I had dreams of being a comic illustrator. Smash! Shattered. Having a similar computer at home, I installed Strata Studio Pro (which a classmate found for me) and I started plugging away at it. (As a side note, how did anyone even find software online in the early 90s?)

Fast forward to present day... While students here at the college have been finishing off their year and my lectures and marking have (nearly) finished, I took a couple days to put this Earth rendering together. I had been thinking of it for a while and what approach I wanted to take. I knew that  I didn't have to have an amazing render to start with because I had, in a way, already built my comp in my head. Here are the layers I used to come up with this final image:


Before I get too far, I should say that I didn't paint these texture maps from scratch. NASA has an amazing collection of image of Earth already unwrapped and ready to apply as textures to you 3D models. You can find them here. They come in various sizes, so I grabbed all the biggest ones.

You can see the "Earth Day Beauty" in the top left corner is a far way off from looking like the final composite at the top. Here's an image of my composite from Nuke:


My process was this:
  • Combine the day and night image using the sunlight mask. 
  • Use the land/water mask to color correct land and water separately. 
  • Throw the clouds on top balancing the shadows to try and give them an illuminated look. 
  • Add atmosphere using existing alpha channels combines with Nuke's built in tools. 
  • Build a lens flare for the sun. 

Voila! Instant Earth!

Monday, April 15, 2013

Modern Gaming

Based on reviews and my (now waning) love of all things Batman, I decided to buy Arkham City a few months ago when it was on sale for $7.50. With work and life in general being busy at the time, I had yet to download and install it, but now being relatively caught up on the two, I thought this would be the weekend to give it a go.

I'm going to say from the beginning that I have very little love for modern games. Most reviews I read and watch have games with amazing graphics that continue to blow my mind, however I get more and more turned off by the fact that so many of them rely on violence as a means to complete your objective. The latest re-imagining of Tomb Raider seems to be one of the worst of the bunch. Sad, because it looked so promising.

But violence and gameplay isn't what I want to talk about right now. Instead, let's talk about how one starts to play a game in this day and age. We'll start with early Saturday...

1) Login to Steam. I've already bought the game, I just haven't downloaded it. 16 gigs is going to take a while, so I start early.

2) By Saturday evening, Batman is downloaded, but now Steam needs updating. Download and install.

That was Saturday. Fast forward to Sunday night at 9pm when I'm ready to play the game.

3) Steam uses new .Net features, so now Windows needs to update. Download and install. Reboot.

4) .Net already has service packs. Download, install, reboot.

5) Nvidia Experience won't load. Go to Nvidia website, download the new Experience. Install, reboot.

6) Graphics drivers are slightly out of date. Download, install, reboot.

7) Log in to Nvidia Experience to see what settings I can run Arkham City at. Turns out with my new computer I can run Batman at very high quality. Click to run game from Nvidia Experience. Error. Can't load. Desktop game shortcut doesn't work either. What?!

8) Log in to Steam. Click to play. Before loading game I need to install Windows Live gaming. Game loads now.

9) Start screen. Finally ready to play! Nope. Please type the serial number for the game. What? Glad I saw a screen earlier with that info. Copy. Paste. Game continues to load.

10) Finally ready to play! Nope. Windows Live pops up. Enter your credentials. Thankfully I still have my old Hotmail address. Log in. Windows Live now needs to update its software. Install, quit game, continue installation, reboot.

11) Okay. Load up Steam again. Login. Start up game. Windows Live pops up. Enter credentials. ERROR CAN'T CONNECT. So if I keep playing I might not be able to save progress. What?! I was able to login 3 minutes ago! Fine. I just want to play the game. Close window.

Window opens again.

Close window.

Window opens again.

Close window.

Window stays closed. Finally.

12) Main menu. Click to play game. One more error telling me I might not be able to save progress. Fine! Whatever! Just let me play the game.

13) It's now 9:30. Game begins. Swearing, constant violence, sexism, sprinkle in some misogyny for good measure... but look at those graphics!

Tuesday, January 29, 2013

Last Post About The Car

So here's my final version for now. Some of the aliasing issues I feel are a limitation of the resolution. Some of these problems would be better at (true) 720p rather than the upres'd renders I've been producing. In the end I created another ambient occlusion pass for the ground only which helped match the background shadows under the cars. Additional masks were used to tint the windows so they weren't so blue. Blacks overall I feel match better and I reduced the amount of glow around the reflections/highlights.

A bigger issue has to do with the HDRI that I shot when this footage was filmed. I used the mirror ball method and unfortunately it's quite scratched. This gives me very elongated highlights. It would look much nicer if they were proper, circular highlights. Perhaps if/when I revisit this I'll block them out of the HDRI and put geometry in the scene to represent the ceiling lights.


I feel that doing this has helped better my knowledge of mental ray and Nuke. The thing I find mostly with projects like this is that the more you know, the more you know you don't know... or something like that. Every time I learn something new I can see where there's potential to push renders, textures, and lighting even further. As they become more accurate or real or advanced, the renders take longer. It doesn't matter how fast your computer is. As soon as you buy/build a faster one, the technology advances to undo your purchase. This wasn't so bad at about 12 minutes / frame at 960x540.

So what's next? I need to improve my render debugging skills. There's so much important information on the elementalray blog that I haven't had time to digest. Mostly I find these tweaks aren't going to cut times in half, but I always like to know why something works or doesn't and if I have a better understanding of optimizations, I feel I'll better understand why I have issues, artifacts, whatever. Along with that, there are mia material settings that need exploration and then a better understanding of new BSDF shaders... the list goes on an on.

Anyway, here's the final render (for now).

Saturday, January 26, 2013

Updated Car Rendering

I've been rendering this with better sample settings. I'm using Unified Sampling in Mental Ray. It's good, but my render isn't exactly fast. I can't say that I've really gone into the settings and optimized it for best possible render time... more like brute forcing it to render. Still it could be a bit better.

I had a problem with Vector motion blur. It turns out all my camera settings like f-stop had been reset to 0. That doesn't make sense.

So now this render has some basic color corrections and filters. Motion blur applied in Nuke. Some glowing edges (too strong). I'm noticing now that my reflection pass doesn't quite match the film plate and will need a bit of tweaking, but I'll save that for the final upload next week. It's still rendering at the college but will be ready by Monday.

Wednesday, January 23, 2013

Work In Progress

Here's a car rendering we were working on in class this last year. I'm updating mine with better sampling in an effort to remove all jaggies from highly reflective materials. Though I'm getting closer, it's still far from perfect. Also, since I'm rendering at half-HD, it seems Vimeo doesn't like that and has softened the final Quicktime quite a bit.

The Peugeot 508 car model comes from www.viz-people.com

All materials, footage, tracking, and rendering are by me. Rendered in mental ray using the new(ish) user_ibl method. Comped in Nuke. So far no color corrections or filters have been applied.