Join / Forgotten your password?
 
HomeFeaturesStoreForumsWikiWorkshopsJobsPortfolioGalleryEvents Members
 
> CGPortfolio Home       > About CGPortfolio       > Intro Video      > Create Portfolio      > Manage Portfolio       > Browse       > Search       > Help     
 
Jeff Patton
JeffPatton


Location:
Lexington, USA

Language(s):
English

Member Since:
August 2002

Last Updated:
6 May 2008

Portfolio Views:
385036
Chosen as Favorite:
266
Advanced Search
galleryaboutblogguestbook

April 27, 2008. 12:53
Brute Force made easy
(click image to enlarge)


Thought I'd expand a bit upon my previous blog entry where I mentioned the Ctrl.Ghost shader to use importons & irradiance particles. In 3ds Max 2009 (+ Design), we have access to the Force mode of Final Gather right out of the box. To enable this mode you simply set the final gather "Interpolate over num points" setting to 0.

Doing so will enable a "brute force" style FG mode. For this method there's no interpolation or precalculation. Therefore you won't be able to save a .fgm with this method. However, if you're yearning for an easy to configure lighting setup and have a fair amount allocated for the render to 'clear' this is a handy option.



A. Set the Interpolation to 0 (green highlight) to enable the Force mode.
B. Think of the Rays per FG Point setting as your "grain control". Higher values = less grain (longer renders). This isn't the only thing that affects the grain (or render time) though. Your sampling quality affects it as well, more on that later.
C. Diffuse bounces: Same as usual, controls the number of bounces. FWIW, I've kinda grown fond of using low bounces for the contrast that it provides.
D. Noise Filtering (optional): If you set the noise filtering to "none" you're getting close to an 'unbiased' approach because mental ray won't filter out some of light data. However, it may introduce more "speckling" to your image which would require more FG rays.

NOTE: I'm NOT saying this is equal to an unbiased approach because we can still control/limit the diffuse bounces (amongst other things). However, that's not a bad thing though because it can help keep the render times down from those of an unbiased solution. Mind you, any time you hear "brute force" or "unbiased", I think you all know by now that render times aren't going to be blistering fast.

As usual it seems, props to Zap for implementing this nifty little trick in 3ds Max 2009.
Link to Zap's blog for anyone that may not have it bookmarked already:
http://mentalraytips.blogspot.com/
(I REAALLLLY wish I could add sticky links to my blog here...it may be time for me to move this blog somewhere else to make it more user friendly)

NOTES:
I briefly mentioned how the Rays per FG point setting & sampling quality can affect the amount of grain in your 'brute force' renders. Using an aggressive adaptive sampling rate with a high 'maximum' value will sample more in the grainy areas to help "clear" those areas. So you could possibly use a lower Rays per FG Point setting in that case.

Adaptive sampling vs. 'fixed' sampling:

Fixed sampling rates force mental ray to use a fixed amount of samples for every pixel of the image. Adaptive sampling varies the samples locally (higher where needed, lower where less sampling is required).

----------

Don't have 3ds Max 2009 yet? You can get a similar result to this Force method in previous versions by setting the "Interpolate over num points" to 1 and use a very high "Initial FG Point Density".
April 20, 2008. 14:11
3ds Max 2009 (+Design) - Importons & Irradiance Particles
If you already have (or will soon have) access to 3ds Max 2009 and/or 3ds Max Design 2009 then you're going to want to head over to the Maya forum to get the new ctrl.ghost shader. Many, many thanks to Max (not the program...but the man) for creating/sharing these shaders (including a 3ds Max version) that allows us to use the new Importons & irradiance particles.

Here's a direct link to the thread where you'll find the shaders (32 & 64 bit) & more information:
http://forums.cgsociety.org/showthr...p?f=87&t=621727

Now with the 3ds Max package you'll also get the mrGeomShaderObject.dlo file, place this in your plugins or stdplugs folder. Thanks to Dave (maxplugins.de) for compiling the geometry shader. The Geometry Shader will be our access point to the importons & irradiance particles options.

The zip archive also contains the ctrl_ghost_settings shaders. You'll find both a .dll file & .mi file. Place the ctrl_ghost_settings.dll file in the shaders_autoload subfolder: ex. C:|3ds Max 2009|mental ray|shaders_autoload|shaders

Then place the ctrl_ghost_settings.mi file in your include folder: ex. C:|3ds Max 2009|mental ray|shaders_autoload|include

Now you're all set to start using these new options. To access the settings you'll first create a mr Shader object in your scene then assign the ctrl_ghost shader to it and drag that ctrl_ghost shader to the material editor as an instance copy then edit the settings from the material editor. Not clear enough, here's some screen captures:

(click image to enlarge)


You can find more information on these options in the thread listed at the beginning of this entry, and in the mental ray documentation included with 3ds Max. To access the mental ray documentation, go to: Help>Additional help...>mental ray 3.6 Reference
April 11, 2008. 05:49
A&D Clay material (and other random stuff)
Recently I wanted to create a somewhat realistic clay material. After making a few variations I thought it might be helpful to others out there if I share my settings.

First up, here's a render of the material in my studio setup:
(click image to enlarge)


Here are the parameters I used for my material:
(click image to enlarge)


Notes on settings:
I used a medium Roughness settings to give the material some softness.
The reflectivity & BRDF values I used are simply what looked 'right' for the look I wanted. You'll notice a map in the color swatch of the reflection settings. I tried a few procedurals and they worked ok, but I wanted a more human touch to my material. So, I created a tilable fingerprint texture with Photoshop. I used this black & white image as both a bump map and a reflection
mask to break up the reflectivity. I'll attach my fingerprint texture because I think it could be useful for things other than this particular material.

Here's the tileable fingerprint map:
(click image to enlarge)


Quick note on my studio setup:
I used portal lights with mib_blackbody shaders providing kelvin control, FG & Photographic Exposure control. I placed single sided planes in front of the portal lights and applied an A&D material to the planes. I then placed a gradient ramp in the cut-out map of this material. Doing so provides a soft edge to the portal lights. I then linked these planes to their respective portal light so that when I need to move the light sources, the 'soft box' moves with it automatically.

Screen capture of studio setup:
(click image to enlarge)


So that's one rather simple recipe for a clay material.

Now onto the 'other random stuff'. As I've done in the past, I'm just sharing a few tests that don't really fit into my gallery, or anywhere else for that matter.

I saw people using the Sponza scene and since it's been a while since I tinkered with that file I thought I'd give it a whirl in 3ds Max Design 2009.

Sponza Test
(click image to enlarge)

Link to the Sponza Model:http://hdri.cgtechniques.com/~sponza/

In my gallery I posted a render of the Dwayne Ellis bathroom scene. Here's just another angle of that same scene:
(click image to enlarge)

(my water material needed some lovin'!...note this and the other render of this scene in my gallery primarily use the new ProMaterials)

Up next are a few Cornell box tests with 3ds Max Design 2009. For reference I used real-world information provided via Richard Rosenman's site here: http://www.richardrosenman.com/project/?cid=59

Here's my resulting renders:
(click image to enlarge)


(click image to enlarge)


NOTE: Obviously I needed to adjust my light placement so the shadows inside the box would better match Richard's photos. However, I was mainly interested in seeing how the new photometric lights in 3ds Max Design 2009 would compare. Good news...I think the results are pretty darn accurate!

Finally, here's an ice material I'm still tuning:
(click image to enlarge)

Once I have this ice material dialed in to the look I'm after I may post it.
March 18, 2008. 19:18
Animated dance floor in mental ray
Since glow/self-illumination questions pop up so frequently I figure there can never be enough tutorials/examples out there, so I guess one more won't hurt anyone.

I made a simple animated dance floor scene, and it was the perfect opportunity to use the funny biped model example from Daniel Martinez Lara (www.pepeland.com) that ships with 3ds Max.



Here's the completed animation:
http://jeffpatton.net/Blog-images/Dance_floor.mov
(right click, save as will probably work better than streaming)

Here's some information on the scene configuration:
(click image to enlarge)

As you can see by this screen grab, the dance floor is a three part system; A frosted glass floor, glowing planes to simulate the lights, and the frame of the floor. There's a skylight in the scene to provide some uniform lighting. It's color is white and the multiplier is set to 0.35...it's there to make the parts of the scene not lit by the floor visible.

Here's the settings used for the frosted glass floor material:
(click image to enlarge)


Here's the settings on the self-illuminated light cards:
(click image to enlarge)

Nothing fancy, the "Illuminates the scene (when using FG)" option is enabled to help light the scene...and there's an animated RGB tint map applied to the self-illumination filter color that drives the shifting colors.

Some notes/myths on the self-illumination option of the A&D material:
1. It turns my geometry into a light source! Not really. It's a visual representation of a light source, but it doesn't act like a 'normal' light (like the photometric lights). It's similar to using an output map or glow shader + FG. It'll only provide direct illumination when used with final gather.

2. The A&D self-illumination turns my geometry into a light source that emits photons. Wrong. It will not make your objects to emit photons.

3. Can I light my architectural interior scene with strands of tiny glowing lights using only the self-illumination option on the A&D material? You could...but it's certainly not efficient to do so. I would use an area light source to provide the primary light in the scene. A self-illuminated A&D material would be used on the geometry to properly visualize the lights themselves and provide some secondary illumination.

So that's one method of creating an animated dance floor (or whatever). You'll probably notice some shadow flickering in the animation. Since my computer is rather dated now I had to use the draft quality to get this rendered quickly. If I had a faster PC I would have used better settings to prevent that. All things considered, the flickering isn't terribly bad in this example for such low settings.
February 29, 2008. 06:33
Looking for a good way to hone your skills?
Often various CG forums will offer monthly/weekly challenges/charrettes. These are excellent ways to improve your CG skills. Generally these monthly/weekly challenges do not offer official prizes or even designate anyone as a "winner". Which is great because it makes for a very friendly and inviting environment. Now even though you probably won't receive a prize for your efforts you will still benefit from the feedback/advice that others provide on your work.

By participating you'll often pick up a new tip/trick that allows you to render more efficiently or makes your work more realistic, etc.. Therefore my tip today is to go out and participate in these challenges/charrettes regardless of your current skill set. BTW, if your fairly new to 3d don't have the mindset that your work isn't up to par so you can't join...jump in! At the end, I bet you'll be glad you did.

As you're probably aware there are many CG forums scattered about the internets. Here's a couple to get you going.

If Architectural Visualization is your bag, then check out http://www.vizdepot.com/. They currently have a great charrette underway right now.

Just for giggles, here's my preliminary entry for the "night" version of their wonderful scene (pay no attention to my horrible moon overlay..lol)

(click image to enlarge)

(House model provided by Mark Couture)

There's also some great lighting challenges right here at CGSociety:
http://forums.cgsociety.org/forumdisplay.php?f=185

That should be enough to keep you busy for a while. Join in, learn, help others, and have fun.
 
  Jeff Patton's Personal Network