Page 1 of 2

help creating a shaded material

Posted: Thu Jul 31, 2014 9:10 pm
by elDiego
Hi, i'm building this pieces and i wanted to look like this (see image) I'm thinking I need somehow two materials (glass and mirror) that fade into each other. any help will be much apreciated.

Re: help creating a shaded material

Posted: Thu Jul 31, 2014 10:12 pm
by bubs
Use a gradient map to blend between a Chrome material and a glass material...

Re: help creating a shaded material

Posted: Thu Jul 31, 2014 10:13 pm
by bubs
here's what I used. Hope it helps.

Re: help creating a shaded material

Posted: Thu Jul 31, 2014 10:29 pm
by elDiego
Hi Bubs, thanks for the reply. I cant open your scene. i get this message
Error: Failed to parse material: Found unexpected element 'max_extinction_coeff'. (In element 'basic', around line 6, column 9)

Re: help creating a shaded material

Posted: Thu Jul 31, 2014 10:36 pm
by bubs
I'm afraid I've no idea what that means... It works for me OK.
Here's the blend map I used. Just use the preset 'Glass' or 'Tinted Glass' as Material A and the NK data preset for Chrome as Material B.

Re: help creating a shaded material

Posted: Thu Jul 31, 2014 11:42 pm
by elDiego
Thanks, I'm far from being a pro, so I don't really know how to create a blend material from scratch ( I tried with no luck)
I do have my ways around it though. I used this material and modified the image to yours, which works fine. but what if that non translucent material to be mirror?
So when it comes to blend materials you have a material A and B , what does the blend number below do? and how can i add a new material to the blend?

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 12:02 am
by bubs
Create new material.
In Property editor choose 'Blend' from drop down menu.
Under the 'General' section choose 'texture' from the drop down menu and put in the texture I posted.
For Material A choose 'specular' and click the + to add medium.
For Material B choose 'phong' and choose cr.nk from the 'Nk data' drop down menu.

That's it!

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 3:05 am
by Zom-B
elDiego wrote:Hi Bubs, thanks for the reply. I cant open your scene. i get this message
Error: Failed to parse material: Found unexpected element 'max_extinction_coeff'. (In element 'basic', around line 6, column 9)
Update Indigo to the latest version!
http://www.indigorenderer.com/forum/vie ... =1&t=13163

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 4:43 am
by elDiego
I think I'm getting there, what do you think? just wish the fading was a bit more drastic.
thanks for the help!
ps. it doesn't let me attach the material

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 4:47 am
by Zom-B
elDiego wrote:just wish the fading was a bit more drastic.
Just change the gradient map to fit your needs, it controls the fading. Double check that you use gama 2.2 for the texture in Indigo!
elDiego wrote:ps. it doesn't let me attach the material
Yes, maximum attachment size is 0.5 MB, that sucks!

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 8:13 pm
by elDiego
Zom-B wrote:
elDiego wrote:just wish the fading was a bit more drastic.
Just change the gradient map to fit your needs, it controls the fading. Double check that you use gama 2.2 for the texture in Indigo!


hmmm..., what is the gama 2.2 for the texture. sorry if you find this obvius

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 8:37 pm
by bubs
See below

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 10:11 pm
by galinette
For a blend map, I'm not sure a gamma of 2.2 is always the best choice. If your gradient varies linearly from 0 to 255, a gamma of 1 will ensure that materials are blended linearly.

A gamma of 2.2 will unbalance towards material A.

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 10:29 pm
by bubs
galinette, when it comes to ANYTHING to do with textures I will bow to your knowledge! 8)

Re: help creating a shaded material

Posted: Fri Aug 01, 2014 10:31 pm
by Zom-B
galinette wrote:For a blend map, I'm not sure a gamma of 2.2 is always the best choice. If your gradient varies linearly from 0 to 255, a gamma of 1 will ensure that materials are blended linearly.
A gamma of 2.2 will unbalance towards material A.
Correct me if I'm wrong, but a gradient created in PS or GIMP, saved as a RGB texture with gamma 2.2 (per default!) needs to be set in Indigo to have gamma 2.2 too, otherwise you get a shift in gradient strength.

I would really like some automated gamma extraction from textures and setting it correctly by default, so such "mistakes" are prevented from the start.

***EDIT***

Actually it seems I'm wrong here, did some test using that map for displacement, since its the best way to actually SEE whats going on: