Maxwell Render

Maxwell Render Information Repository
It is currently Sat May 25, 2013 8:12 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Jul 24, 2007 7:15 pm 
User avatar

Joined: Wed Jan 19, 2005 7:30 pm
Posts: 705
Location: Nottingham, UK
Hi, I'm trying to make a speaker grille (mesh) using a 2 layer bsdf and I just can't get it to work. I've read around the subject in the tutorials forum and elsewhere but no one seems to have my exact setup.

Here's the problem;

I'm trying to re-create a speaker grille like this;
Image


and this is the clipmap pattern I'm using (I use it inverted);
Image


the material that I need for the mesh is this (a 2 layer material to create the right shine);
Image


but when I add the clipmap image (it's just a pure black and white tiff) to the tramittance slot on both BSDF layers I get this;
Image


where as, what I want, is this (simulated with a 1 layer material - no shine);
Image


I'm assuming the 2 layer material has problems because the 'Reflectance' layer has a Nd greater than 1 and therefore it is causing the light to refract as it passes through?

Does anyone have a solution (or another method) to create a mesh with a shiny grey solid area and completely 'blank' hole?

Thanks...

_________________
oz.

"Make lunch, not war."

Visit http://www.3D-Visualist.com/
for all things 3D, especially XSI.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 7:36 pm 
User avatar

Joined: Wed Jun 15, 2005 1:53 pm
Posts: 1012
Location: Firenze - Italy
The problem you are getting is given by the fact that you are using both for the transparent part and the opaque a material with an Nd different than 1
(in the second pic from mxed you have 2.5). What you shoul do then i this:

1-transform your clipmap so that you get two weightmaps whose brightest grey is the same of the weight of each opaque BSDF (in your case 30% grey and 70% grey) and use them to weight each BSDF

2-set each BSDF for the opaque part normally

3-use then your original clipmap (black and white) and invert it to weight a third BSDF that will stand for the holes. This BSDF's settings will be ref0:0 ref90:0 transmittance:100, Nd 1

If i have understood correctly, you should then be done


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 7:38 pm 
User avatar

Joined: Thu Feb 16, 2006 1:55 pm
Posts: 707
Location: UK
EDIT: Beaten to it! :D

Hey oz42,

Check out my decals tutorial, linked below :)

The solution is to use 3 layers with weightmaps: your main 'White Diffuse' layer; your 'Reflectance' layer; and a third 'transparent' layer. The problem with this is that when you add a weightmap to a layer, that layer's weight value becomes irrelevant (see the 'For 2-layered materials and beyond' section in my previous tutorial.)

Sorry this isn't more comprehensive but I'm stuck in the middle of something right now. I'm going to be covering this in one of my video tutorials though :)

Here be the tutorial :

http://www.maxwellrender.com/forum/viewtopic.php?t=18048

Here be the extra maps :

Image
Image

And here be the MXM for you to deconstruct :

http://www.drmerman.com/mattFTP/Weightmaps%20Version.mxm

Cheers,
Dr Merman

_________________
I don't really take anything people say seriously until they've used at least 20, sometimes 25, words...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 7:39 pm 

Joined: Fri Dec 31, 2004 9:00 pm
Posts: 538
hi Oz!

not sure but it might be because the shiny layer doesn't have ND = 1 ..

You can also try the method with (ghost layer) / (color + reflection layers) with inverted clipmaps/weightmaps..

[edit] whow, the forum is responsive ! :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 7:47 pm 
User avatar

Joined: Wed Jan 19, 2005 7:30 pm
Posts: 705
Location: Nottingham, UK
wow, thanks guys, v quick reply. I'm always impressed by how much help there is here - I'll try to return the favour when I get better.

Thanks Mattia for the great explaination I didn't realise I needed a third layer but this makes sense now.

Thanks DrMerman for the extra images, I'll use these.

tokiop - yes I'm very impressed with the reposne as well.

I'll post the finished material when done.

Cheers,

_________________
oz.

"Make lunch, not war."

Visit http://www.3D-Visualist.com/
for all things 3D, especially XSI.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 8:00 pm 
User avatar

Joined: Wed Jan 19, 2005 7:30 pm
Posts: 705
Location: Nottingham, UK
thanks guys - done.

Image

it's slightly different from DrMerman's mxm but it seems to work - I've followed Mattia's instructions for the third 'holes' layer

_________________
oz.

"Make lunch, not war."

Visit http://www.3D-Visualist.com/
for all things 3D, especially XSI.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 11:00 pm 
User avatar

Joined: Wed Jun 15, 2005 1:53 pm
Posts: 1012
Location: Firenze - Italy
:D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 11:17 pm 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7610
The solution is only 2 BSDF and 1 B/W map. ;)

UPDATED
Image

_________________
Next Limit Team


Last edited by tom on Wed Jul 25, 2007 11:23 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 2:24 am 
User avatar

Joined: Thu Feb 16, 2006 1:55 pm
Posts: 707
Location: UK
Touché :D

_________________
I don't really take anything people say seriously until they've used at least 20, sometimes 25, words...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 7:55 am 
User avatar

Joined: Wed Jun 15, 2005 1:53 pm
Posts: 1012
Location: Firenze - Italy
Much better Tom's way. That is a reason why TOM is TOM and me is me, indeed!


Last edited by Mattia Sullini on Wed Jul 25, 2007 10:58 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 9:47 am 

Joined: Tue Oct 04, 2005 5:44 am
Posts: 429
:shock:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 3:37 pm 
User avatar

Joined: Wed Jan 19, 2005 7:30 pm
Posts: 705
Location: Nottingham, UK
nice!

but it doesn't seem to give the result I was looking for;
Image
the 'holes' seem to have retained some reflection and the solid area doesn't have the shine I was looking for.

_________________
oz.

"Make lunch, not war."

Visit http://www.3D-Visualist.com/
for all things 3D, especially XSI.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 3:57 pm 
User avatar

Joined: Wed Jun 15, 2005 1:53 pm
Posts: 1012
Location: Firenze - Italy
First one has to be lambertian, otherwise you will see those highlights on holes


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 4:39 pm 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7610
Mattia is right, first one has to be lambertian. ;)

_________________
Next Limit Team


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 5:32 pm 
User avatar

Joined: Wed Jan 19, 2005 7:30 pm
Posts: 705
Location: Nottingham, UK
1st BSDF is lambertian with a Nd of 1. Not sure why it isn't working but Mattia's previous method worked fine so I'm udising that one.

_________________
oz.

"Make lunch, not war."

Visit http://www.3D-Visualist.com/
for all things 3D, especially XSI.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group