• About us
  • Contact Us
  • Terms and Conditions
  • Forum
  • Materials
  • Shaders
  • Tools
  • Video
  • Learn
  • Gallery
My Mental Ray
Go Back   MyMentalray Forum > mental ray for 3ds Max > Shaders
Reload this Page Car paint, light cards, and FG
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes

Old 11-29-2006, 02:04 PM   #1
JeffPatton
Lead Artist
 
Join Date: Nov 2006
Location: South Carolina, USA
Posts: 148
Default Car paint, light cards, and FG

I know, probably a confusing title to this thread but there are several aspects to this issue.

So, let me start off with a few real world car paint examples:
http://jeffpatton.net/Tests/paint-ex-01.jpg
http://jeffpatton.net/Tests/paint-ex-02.jpg
http://jeffpatton.net/Tests/paint-ex-03.jpg

Now, I have a real simple studio setup in mental ray with a few photometric lights and some light cards (using an output map) just to give some proper reflections from my actual light locations.

Here's a cropped sample render using the car paint shader:


Notice how the reflections from my light cards aren't pure white as I would expect. If you look at the real world examples at the beginning of this post I chose those examples because of the dim lighting, yet still bright highlights on the paint.

So, to make the reflections brighter I can increase the output map settings on my light cards...but naturally that borks up my lighting by adding light since FG is enabled...but the reflections are white as shown in this render:


I've tried to use several of the shaders on maxplugins.de that deal with controlling the ray types to try and eliminate my light cards from contributing to the FG solution regardless of how high my output map settings go....but no luck so far.

The only solution I have found thus far is to turn off the reflections option on the car paint and use it as a base material in a shellac or composite map. Then use a reflective material for the "clear coat". This method has it's highs and low's as well. One low is that it's harder to control the colors because I'm having to mix in new colors...but on the bright side now I can use a bump map on the clear coat layer to simulate an orange peel effect. Here's an example using a composite material:


For a car paint comparison here's a maxwell car paint material from their website:
http://jeffpatton.net/Tests/Adrian-MW-carpaint.jpg
and a Vray carpaint created by using a Vray blend map:
http://jeffpatton.net/Tests/paint-vray.jpg
Ignore the fact that I didn't let that image completely render. I figured I had enough rendered to show the effect.

In the Maxwell version you can see how the reflection is bright white as expected with the moderately lit environment. In the Vray example, I had the lights too bright...but I'm sure the reflections would still be bright even if the vray lights were less powerful.

Sooo, finally my questions:
1. How can I make a powerful light card that does not contribute to my FG calculation.
2. Shouldn't the car paint materials reflections be brighter? I'm thinking that when I use the shellac that's an additive mode therefore that's why the reflections are brighter? I know what mode it is when I use the composite map...so maybe the car paint reflections should be in an add mode?
__________________
Jeff Patton
My mental ray blog | Personal Website

Last edited by JeffPatton : 11-29-2006 at 02:12 PM.
JeffPatton is offline   Reply With Quote
JeffPatton
View Public Profile
Send a private message to JeffPatton
Visit JeffPatton's homepage!
Find More Posts by JeffPatton

Old 11-29-2006, 02:17 PM   #2
Mr.Ray
Forum Admin
 
Mr.Ray's Avatar
 
Join Date: Nov 2006
Posts: 19
Default

Humm that look pretty good to me
Mr.Ray is offline   Reply With Quote
Mr.Ray
View Public Profile
Send a private message to Mr.Ray
Find More Posts by Mr.Ray

Old 11-30-2006, 08:37 AM   #3
mustan9
Intern
 
mustan9's Avatar
 
Join Date: Nov 2006
Location: Markham, Ontario
Posts: 57
Default

Can you post your scene file, and I'll take a crack at it.

We had the exact same problem on a car commercial just last month. I ended up doing different passes for the car bodies, and background.
__________________
Mathew Foscarini
Technical Director
CRUSH Inc.

my website: http://www.mathew3d.com
mustan9 is offline   Reply With Quote
mustan9
View Public Profile
Send a private message to mustan9
Find More Posts by mustan9

Old 11-30-2006, 09:22 AM   #4
JeffPatton
Lead Artist
 
Join Date: Nov 2006
Location: South Carolina, USA
Posts: 148
Default

Sure, I've attached a similar file with some notes. It would be great if this material worked with the render elements, and then I could just create a reflection pass.

Along those lines I'll have to try using the A&D material for the clear coat layer. With that I may be able to generate a render element reflection pass...but I'd still like to know if it's at all possible to use a high output light card to brighten the reflections without it adding to the FG solution.

Thanks.
Attached Files
File Type: zip Light-card.zip (36.6 KB, 188 views)
__________________
Jeff Patton
My mental ray blog | Personal Website
JeffPatton is offline   Reply With Quote
JeffPatton
View Public Profile
Send a private message to JeffPatton
Visit JeffPatton's homepage!
Find More Posts by JeffPatton

Old 11-30-2006, 09:28 AM   #5
mustan9
Intern
 
mustan9's Avatar
 
Join Date: Nov 2006
Location: Markham, Ontario
Posts: 57
Default

You can with a 3rd-party shader like "ctrl_rays" that will allow you to control (reflections, refractions, final gather, etc.. etc..). Sadly, the version I found at maxplugins.de crashes in Max 8, and Max 9. Appears stable in Maya.

I found the source code for another shader that does the same thing, but it's built for MentalRay 3.3 (32-bit).

What if I recompile this shader and get it working in Max 9. What C compiler can you use for MR?
__________________
Mathew Foscarini
Technical Director
CRUSH Inc.

my website: http://www.mathew3d.com
mustan9 is offline   Reply With Quote
mustan9
View Public Profile
Send a private message to mustan9
Find More Posts by mustan9

Old 11-30-2006, 10:34 AM   #6
JeffPatton
Lead Artist
 
Join Date: Nov 2006
Location: South Carolina, USA
Posts: 148
Default

I ran into the same thing with the crashing on the ctrl shaders (when I'd try to add a map). I also tried the Puppet shaders that deal with FG rays, and they didn't crash. However, when I'd add an output map that was beyond 1.0 strength, it would still produce illumination.

As far as a compiler, I'm not sure. I'm just starting my journey into the world of C++, just for mental ray. The only thing I've been told from others thus far is that I should use the latest Microsoft Visual Studio.net software package. I'm sure that doesn't help you...but it's the only one that has been recommended to me thus far.
__________________
Jeff Patton
My mental ray blog | Personal Website
JeffPatton is offline   Reply With Quote
JeffPatton
View Public Profile
Send a private message to JeffPatton
Visit JeffPatton's homepage!
Find More Posts by JeffPatton

Old 12-14-2006, 04:06 AM   #7
maxplugins
Hobbyist
 
Join Date: Nov 2006
Posts: 21
Default

I'm a bit late, but it's been a bit busy lately...

I use ctrl_rays a lot, and have never had a problem with it crashing. Maybe I'm not using it in the way that the two of you are, but I would be interested in seeing a scene where it causes a crash.

Dave
__________________
MAX Plugins.de
The database for freeware and commercial plugins
maxplugins is offline   Reply With Quote
maxplugins
View Public Profile
Send a private message to maxplugins
Visit maxplugins's homepage!
Find More Posts by maxplugins
Reply

« Previous Thread | Next Thread »

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Switch to Linear Mode
Hybrid Mode Hybrid Mode
Threaded Mode Switch to Threaded Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 12:13 AM.

Contact Us - Welcome to MyMentalRay Forum - Archive - Top
Copyright © 2008 My Mental Ray Community. All Rights Reserved.
No part of this website may be reproduced unless for personal use without prior written permission from The My Mental Ray Community.