Refractive material question

General questions about Indigo, the scene format, rendering etc...
Post Reply
10 posts • Page 1 of 1
User avatar
subpixel
Developer
Posts: 237
Joined: Sun Mar 28, 2010 9:09 am

Refractive material question

Post by subpixel » Fri Jul 16, 2010 11:00 pm

Hey,
While working on material implementation, I'm wondering is there a physical material which would only refract light without reflecting it (like specular does)? I mean scenarios with IOR > 1. Any idea?

Thanks,

Note: This thread is reposted from Max Forum: http://www.indigorenderer.com/forum/vie ... f=9&t=9964

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Refractive material question

Post by lycium » Sun Jul 18, 2010 12:24 am

Not possible I think, in real life or Indigo :)

User avatar
Godzilla
Indigo 100
Posts: 985
Joined: Sat Jun 06, 2009 11:33 am

Re: Refractive material question

Post by Godzilla » Sun Jul 18, 2010 3:23 am

lycium wrote:in real life
Gasses?

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Refractive material question

Post by lycium » Sun Jul 18, 2010 5:09 am

Hmm, I suppose you could define a medium with scattering (reflection) coefficient zero.

User avatar
subpixel
Developer
Posts: 237
Joined: Sun Mar 28, 2010 9:09 am

Re: Refractive material question

Post by subpixel » Sun Jul 18, 2010 7:47 am

And is (how is) it doable with Indigo?
Excuse my ignorance.
Regards,

User avatar
lycium
Posts: 1216
Joined: Wed Sep 12, 2007 7:46 am
Location: Leipzig, Germany
Contact:

Re: Refractive material question

Post by lycium » Sun Jul 18, 2010 7:18 pm

Hmm, I suppose you define a medium with scattering_coefficient_spectrum as a uniform 0, and with the absorption_coefficient_spectrum as uniform 0 too.

Adapted from the Technical Ref Manual:

Code: Select all

<medium>
<name>scattering_medium</name>
<ior>1.5</ior>
<cauchy_b_coeff>0.0</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<uniform><value>0</value></uniform>
</absorption_coefficient_spectrum>
<subsurface_scattering>
<scattering_coefficient_spectrum>
<uniform><value>10</value></uniform>
</scattering_coefficient_spectrum>
<phase_function><uniform/></phase_function>
</subsurface_scattering>
</medium>

Once again I'm amazed at how onto it you are Godzilla :o

User avatar
subpixel
Developer
Posts: 237
Joined: Sun Mar 28, 2010 9:09 am

Re: Refractive material question

Post by subpixel » Sun Jul 18, 2010 10:26 pm

Thanks a lot, I'll give it a try.
Thanks,

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Refractive material question

Post by CTZn » Mon Jul 19, 2010 1:22 am

Still, reflection rays won't be killed and would contribute to the scene ?

Agreed, it's not realistic. But in most (ideal) cases lenses are of interest only as light benders. They are not thought to be visible by themselves through (total internal) reflection. Killing reflection rays might justify the material, performances wise, and might allow for much more fun in ceilings.

It might add to Indigo 8) Indeed, it could just be an option to the existing specular material.
obsolete asset

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: Refractive material question

Post by galinette » Mon Jul 19, 2010 9:35 am

Scattering will not prevent the reflection. Not working here...


Actually, this is physically not possible on a simple air/material interface. Refraction & reflection are part of the same phenomenon.
However, you can do it the following ways:
- By using a refractive index gradient, smoothly transitionning from air to material. This is what happens in mirages
- By using an antireflection coating on the material. This will not cancel totally reflection, but will reduce it somewhat.


Also not possible in Indigo. However, it's technically possible to implement this in unbiased renderers.

You can probably do an approximation of the index gradient, by making many parallel surfaces and applying them materials with progressive refractive index transition. However, this may takes ages to render.

Etienne
Last edited by galinette on Mon Jul 19, 2010 9:36 am, edited 1 time in total.
Eclat-Digital Research
http://www.eclat-digital.com

User avatar
subpixel
Developer
Posts: 237
Joined: Sun Mar 28, 2010 9:09 am

Re: Refractive material question

Post by subpixel » Mon Jul 19, 2010 8:25 pm

To lycium: I tried your solution, however with no luck, specular was still there and refraction rays got fuzzy (if you know what I mean) Thanks though.

To galinette: I agree with you. I guessed it's not physically possible (in normal conditions), I just wanted to hear it from someone else ;) Thanks.

Post Reply
10 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests