SurfingAlien wrote:some interesting reading here:
http://hyperphysics.phy-astr.gsu.edu/Hb ... fr.html#c1
this somehow confirm what I was thinking (and what Radiance said);
also consider this: if the glass was empty, then the light passes from air to glass (let's say IoR 1.5), goes through the glass material and finally goes outside to air again. IoR is still 1.5 and not 1/1.5 (no matter the "direction" of light, i.e. air -> glass or glass -> air). is it correct?
EDIT: I mean, in real life we always have "relative" IoR between two materials, usually one is air which IoR is
about 1
Yes, refractive index is always in respect to void, so it will always be higher than 1. Irrespective of direction. But that's not the point here I believe, since what we want to achive is a simulation between a liquid and glass, and at the current state of things an IOR<1 would be helpful, as a definition of a "group refractive index" between two mediums, as I said in the previous post if you read carefully.
Ideally, the only thing Octane should do (in the future) is be aware in what medium a ray has entered, and if it encounters another medium with a different IOR, internally calculate what would go on... the Snell's law in short.
Let me put an example: let's say a ray has entered and is in a medium such as glass with an IOR of 1.5. This glass is filled with a liquid with also an IOR of 1.5. Question: what happens to the ray when it goes from the glass to the liquid? does it bend? the anwser tomorrow morning, good night!
EDIT: no it wouldn't bend; we could then say the "group refractive index" is indeed 1 (no change in speed or direction)