JTWO Navigation

Friday, November 14, 2014

Creating Refraction Masks

Wrapped a project yesterday where I was doing alot of Photoshop retouching of renders.  One area they wanted to change the color of was seen through bunch of glassware.   So I figured I'd write up a quick how to.

Went into the scene and changed two materials.  The back area (green) and the bartop (red)  Standard Max material with either pure green or red in the diffuse.  Thats it.  Hit render.

After that I pulled the render into Photoshop and copied the red and green channels into their own layer

Added a Levels Adjustment layer and crushed the blacks and the whites.
After the Levels Adjustment.
Combined these with a mask of the glasses (Ivan Tepavicharov's RenderMask script - an awesome tool to create mattes of objects)

And that's it.  Now you can color correct materials behind glass.

Tuesday, November 4, 2014

Material Update

My primary client is a kitchen equipment manufacturer.  98% of what they fabricate (and that I render) is made of stainless steel.  So I am constantly tweaking my stainless steel shader.  After a number of years working in Mental Ray, I switched all their renders to Vray.

I developed a shader based off everything I had learned from Mental Ray, and combined it with info from Grant Warwick's shader creation techniques.  After having had it in production for a few months, and really getting to see it in various scales and scenes, I had alot of notes on what I wanted to update, and I recently took several days off after completing a large project to do just that.

The shader is a Vray Blend material that uses 3 layers of materials.  The layers are then blended with a falloff map with a custom curve drawn to show a different shader based on viewing angle.  The idea being that a materials reflectance increases with the viewing angle.  Here's an example to illustrate what the material is doing.

The red areas are those facing more or less directly to the camera.  The blue areas are those almost 90 degrees to the camera.  The green are the values in between.  When this is applied to the stainless steel shader, the red areas show the least reflective of the material and the blue show the most reflective.

The next issue is that nothing is perfectly flat.  I've been using a noise map in the bump slot of the shader to create the "wobble" found in sheet metal.  This is set to a world space so no matter what mapping coords you place, the wobble will be random and consistent.  It also allows smaller objects to not have very much distortion and large ones to have more.

The 3 renders are each of a different scale (left to right is largest to smallest), but use the same mapping coords.  The brushed texture is very small and fine on the large model and larger and more visible on the small model.  The edges of all 3 are chamfered at 1/16"  The render scene is a modified version of Grant's.  Download the shader here.

Monday, September 29, 2014

A Little Weekend Work

This was actually done about two weeks ago, but am just getting around to posting it. There are several blogs I follow about architectural models, and found this photo of a model credited as Mansilla + Tuñón Architects concept of Museo de Automoción.

As a lighting study and test for NPR styles of rendering, I replicated the image in 3ds Max and Vray. Matching perspective with all circles and no scale/dimensional reference was tricky.  There is a little bit of Vray's Toon effect in the AO pass.

Also I wanted to mention a technique that is pretty simple, but haven't seen talked about anywhere.  Using the render itself (inverted) as a mask on the AO pass to increase accuracy.  AO passes add back some detail that GI washes out, but the effect of an AO should not be seen in areas exposed to direct light.  So I took the base render, adjusted the levels, inverted and applied as a mask to the AO layer.  This will also work with an inverted lighting pass or a shadow pass.

Thursday, September 11, 2014

JTwo Graphics - Back Online

Well it's been quite some time since I updated my website.  The new site is built, I am just in the process of getting all the content together.  Launching a new website with a bunch of white squares is not quite what I had in mind.  But I wanted to go ahead and announce it, and this blog.  I'll hopefully be posting on a semi regular basis, hopefully with new images, some free stuff, and news.

So an initial post is a great time to give away stuff, so I've got some things for you.  I've dusted off my old custom UI colors for 3ds Max, and I have updated some of the color settings, and exported the files for Max 2013, 2014, and 2015.  There are also some 1920x1024 wallpapers of the images in the .gif below.  Enjoy!

3ds Max UI files