-
Notifications
You must be signed in to change notification settings - Fork 68
Adding liquid IOR #87
Comments
Great suggestion. The current IOR of 1.5 is hard-coded into the shader, but it would be possible to store per-material IORs in the MaterialBuffer. My plate is full at the moment so this isn't something I can visit in the next few weeks, but might you be interested to add this feature? |
thank you so much! |
Here is the build version: |
Very cool images and nicely done! Is the scene or camera slightly different in Maxwell? Or should the two renders look exactly the same? In any case, would you like to create a branch and a pull request with this feature? |
I have a camera gap, I'm not sure why yet. For the analysis of the differences, it is quite particular for the IOR <1.1, they are very close, if we move from 0.01, everything changes violently. Surprisingly, with your script, if I remove all ior 0.15, I have no refraction on ior 1.15. On the other hand, if I remove 0.2, the ior 1.2 always has refraction. As if there were a multiplier coefficient centered on 0.15 ??? I just made a funny discovery, when I assigned an IOR of 1.0 to all objects other than dielectric, I sometimes had funny results ... An impression of normal reversed. I thought it was a problem of normal, or order of materials in the scene, or a problem of order of triangle ... In fact by passing all the other objects to an IOR of 1.5, everything returned in order. For the fork, I am not comfortable enough with git, to be able to do it, and to tell the truth, it does not interest me too much, I put you in link the files of the directory SRC. I am more of a sharp hacker than a developer. The sources are based on version 0.9, to which I have deleted certain lines of code, to be identical to version 0.9 compiled. (see my other issue) |
I seem to have found a bug. |
Love to see this outside of the shader. Is this IOR uniform exposed in the material properties in the latest version ? |
Would it be possible to add management of the IOR, or at least add liquids (IOR 1.33)?
I saw in the code that there are IOR 1.5 parameters for THICK_GLASS, but I would like to use 1.33 and 1.5 in the same scene.
When I put two objects in each other, with the glass property, it works, but it's pretty violent.
Thank you
The text was updated successfully, but these errors were encountered: