Volume IOR
Posted: Fri Dec 13, 2019 4:52 pm
We can't really have any IOR on volumes, right? It's only surface which can have IOR?
Show your work, get help, participate in development
https://forums.luxcorerender.org/
All volumes have IORs however it is used (i.e. there is refraction) only when the surface between them is glass.wasd wrote: Fri Dec 13, 2019 4:52 pm We can't really have any IOR on volumes, right? It's only surface which can have IOR?
Is there the way to simulate hot air for example?
IOR is constant over all the volume so it is not possible to simulate hot air for desert-like optical illusions; they are the result of different air temperature => different density => different refraction. It would require to write same ad hoc code to do ray marching over an heterogeneous IOR volume. Not easy to do.
I see. Then, is it possible to make something like Cycles Refraction node?Dade wrote: Fri Dec 13, 2019 7:04 pmIOR is constant over all the volume so it is not possible to simulate hot air for desert-like optical illusions; they are the result of different air temperature => different density => different refraction. It would require to write same ad hoc code to do ray marching over an heterogeneous IOR volume. Not easy to do.
It is a node working on surfaces (like LuxCore glass, roughglass, etc.), not volumes so it is not applicable to your problem.wasd wrote: Fri Dec 13, 2019 7:55 pm I see. Then, is it possible to make something like Cycles Refraction node?
https://docs.blender.org/manual/en/dev/ ... ction.html
That's right. I just thought it might be good enough substitution for things like convections flows.Dade wrote: Fri Dec 13, 2019 9:07 pm It is a node working on surfaces (like LuxCore glass, roughglass, etc.), not volumes so it is not applicable to your problem.