Author Topic: RefractionIOR below 1.0  (Read 10695 times)

2015-11-24, 14:44:40

jop

  • Active Users
  • **
  • Posts: 71
    • View Profile
Hi,

I try to render air bubbles under sea surface, so I have to set the refract IOR below 1.
Corona mtl don't allow this, so I tried with a corona color map plugged into the IOR slot, but I got weird results compared to what V-Ray does.

Do you have any idea ?

Thanks,
Jérôme

2015-11-24, 15:38:38
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
If you are rendering bubbles in water seen from above - set their IOR to 1.

If you want your camera to be under water and seeing air bubbles, it's a bit tricky... I was only able to achieve this by placing a plane in front of camera (remember about position and orientation!), assigning a 1,33 refraction IOR to that plane, and then IOR 1 to the bubbles.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-11-24, 15:45:04
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9082
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Corona mtl don't allow this, so I tried with a corona color map plugged into the IOR slot, but I got weird results compared to what V-Ray does.

If you're using Corona version prior to v1.3, then plugging 0-1 ranged map into IOR doesn't make much sense. In v1.3 however it should behave same as Vray, AFAIK.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-11-24, 16:05:44
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
Corona mtl don't allow this, so I tried with a corona color map plugged into the IOR slot, but I got weird results compared to what V-Ray does.

If you're using Corona version prior to v1.3, then plugging 0-1 ranged map into IOR doesn't make much sense. In v1.3 however it should behave same as Vray, AFAIK.
I am not sure what Vray does, but Corona does something strange indeed. A lens with IOR below 1 should not flip what is behind it upside down, and it does in Corona. I think setting it to 1/1,33=~0,75 does the same as setting it to 1,33.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-11-24, 16:16:42
Reply #4

jop

  • Active Users
  • **
  • Posts: 71
    • View Profile
Corona mtl don't allow this, so I tried with a corona color map plugged into the IOR slot, but I got weird results compared to what V-Ray does.

If you're using Corona version prior to v1.3, then plugging 0-1 ranged map into IOR doesn't make much sense. In v1.3 however it should behave same as Vray, AFAIK.
I am not sure what Vray does, but Corona does something strange indeed. A lens with IOR below 1 should not flip what is behind it upside down, and it does in Corona. I think setting it to 1/1,33=~0,75 does the same as setting it to 1,33.
I agree with you maru, that's exactly what I tried and it gave me same result as 1.33.

I use version 1.3

2015-11-24, 17:03:43
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9082
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Quote from: 1.3 feature list
IOR value lower than 1 in textures will now render as 1/value, so you can use LDR maps without using output manipulation. This is to improve compatibility with applications such as Substance Painter.

Isn't the same what Vray does?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-11-24, 20:37:08
Reply #6

jop

  • Active Users
  • **
  • Posts: 71
    • View Profile
Quote from: 1.3 feature list
IOR value lower than 1 in textures will now render as 1/value, so you can use LDR maps without using output manipulation. This is to improve compatibility with applications such as Substance Painter.

Isn't the same what Vray does?
I don't know what's V-Ray behaviour with textures as IOR, cause I only used to input direct values below 1.

2015-11-25, 17:18:29
Reply #7

jop

  • Active Users
  • **
  • Posts: 71
    • View Profile
Do you think it is possible do allow values bellow 0 romullus ?

2015-11-25, 19:03:17
Reply #8

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9082
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You'd better ask developers about this to be sure, but AFAIK Corona doesn't support IOR <1.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-11-26, 13:24:54
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
IOR lower than 1 is not supported and it looks like there is no need for it.

Answer from the developers:

you can also assign the water material (fully transparent, refraction 1,33 - no other parameters are required) to the global volume material in render setup > scene, and then assign a material with 1.0 IOR to the bubbles

Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-11-26, 13:33:22
Reply #10

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9082
  • Let's move this topic, shall we?
    • View Profile
    • My Models
That is interesting! So if i want to render underwater scene with visible water surface, i should model air volume above, instead of water volume where the camera is located, right? That's need to be tested :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-11-26, 14:40:57
Reply #11

dubcat

  • Active Users
  • **
  • Posts: 425
  • ฅ^•ﻌ•^ฅ meow
    • View Profile
you can also assign the water material (fully transparent, refraction 1,33 - no other parameters are required) to the global volume material in render setup > scene, and then assign a material with 1.0 IOR to the bubbles

Cool. I've always made a sphere around my camera with water material on. Need to try this method next time :)
             ___
    _] [__|OO|
   (____|___|     https://www.twitch.tv/dubca7 / https://soundcloud.com/dubca7 ( ͡° ͜ʖ ͡°) choo choo

2015-11-26, 14:54:50
Reply #12

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13153
  • Marcin
    • View Profile
At least it looks correct. I just put a plane with IOR 1 as the water surface.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-11-26, 14:59:59
Reply #13

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9082
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Awesome!
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures