Author Topic: Masking IOR for 2 different values in one CoronaMtl  (Read 3776 times)

2016-05-02, 19:11:31

Tanner

  • Active Users
  • **
  • Posts: 70
    • View Profile
Hi everyone,

I've created a model originally with mental ray and have since converted it for Corona.  Its a simpler model but with a complex series of diffuse, spec, gloss, opacity, bump, and emmisive maps.  There are parts that I would like to have an IOR value of 2.2 and other parts (metal, mirrors, highly reflective strips) to be 20.0 or more.  I've created a simple black and white mask to separate the different elements and plugged it into the mask slot of a mix map.  Using 2 falloff maps set to Fresnel (2.2 and 20.0), I tried plugging them into the two layer slots but 2.2 from a falloff map doesn't create the same effect as 2.2 using CoronaMtl's native value (Fresnel 20 works but not as well as the native 20.0 value).  Is there a way around this using a mask?  I can't separate elements of the model for two different IOR's and if it comes to that then I'll just stick to 2.2 across the whole model.

Thanks for any help with this!
Tanner

2016-05-02, 19:32:58
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9281
  • Let's move this topic, shall we?
    • View Profile
    • My Models
It's actually very simple - just replace your fallof maps with output maps with according output amount and it will work as you're expecting. If you want to use fallof map to guide reflectance, then you should set IOR to 999 and plug fallof into reflection slot.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-05-03, 00:48:55
Reply #2

Juraj

  • Active Users
  • **
  • Posts: 4816
    • View Profile
    • studio website
Quote
2.2 from a falloff map doesn't create the same effect as 2.2 using CoronaMtl's native value

Fallof IOR model is computed differently than Corona's native. Corona native's is more correct (but still faulty regarding to reflectance dimming but 1.5 will solve that). Putting 999 into IOR still yields a little clamp that further accents custom IOR driving maps (according to Dubcat's excellent guide, have a read : https://forum.corona-renderer.com/index.php/topic,11377.0.html )

Alternatively, best solution here is to use CoronaBlend material and use the mask to separate two different Corona materials. This is easiest, physically most correct way to separate metal from non-metal. You don't have to use tons of mix maps, hacks and can use material specific features like anisotropy on metals..
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2016-05-05, 22:10:36
Reply #3

Tanner

  • Active Users
  • **
  • Posts: 70
    • View Profile
Thank you, both of you.  I ended up using a CoronaLayerMtl for it but I agree Blend would have worked as well.

2016-05-05, 22:42:53
Reply #4

Juraj

  • Active Users
  • **
  • Posts: 4816
    • View Profile
    • studio website
That was just me having poor short-term memory, by 'CoronaBlend' I meant CoronaLayeredMtl" :- ) not native 3dsMax Blend. Although at two mats, it doesn't make any difference at all.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!