PP2014: Odd refraction in material for drinking glass.



  • Hmmm... back in 2010 bagginsbill posted this https://www.renderosity.com/mod/forumpro/?thread_id=2804987&page_number=2#msg3665923 (on the Renderosity Underwater Submarine thread), which included an image showing total internal reflection of a water surface from underneath. So I think I'm missing something - total internal reflection was obviously working back then...

    Edit: Time to look once again at the complete scene that came at the end that thread



  • Those underwater scenes were using IOR < 1.0 for the water surface. IOR of water is 1.33, so the reverse IOR for going from water to air is 1/1.33 = 0.75. So a refractive surface with IOR set to 0.75 should behave like the boundary between water (in front) and air (behind).

    I tried my total internal reflection test again, this time with a half-cylinder with outward facing normals so the front camera's looking at the front of the surface, and with IOR = 0.67 (i.e. 1/1.5) expecting to see total internal reflection.

    Oh dear, exactly the same as before - with incident angles over the critical angle the ray passes straight through.

    0_1475574158424_Untitled.jpg



  • Heh, heh! It seems that I've done my old trick of thinking out loud onto a forum, and it's rather difficult to follow the train of thought. Sorry about that!



  • What does the value of the Quality setting of the Refract node actually mean?

    The PP2014 manual says "The Quality attribute controls how many rays are spawned by hitting a surface. Increasing this value increases the realism of reflections [sic] but consumes computing resources."

    Does a value of 0.2 mean that the refraction is only calculated for 20% of the incident rays, and that the remainder are interpolated? Would a value of 1.0 calculate refraction for 100% of the incident rays?

    If there is interpolation then what is interpolated? Is it the refacted angle, or is it the final pixel colour?

    Etc



  • @3dcheapskate I still have PP2014 installed and working. I'll do a quick render of our test cylinder in that to see if anything different happens. Yes, using quality setting of .2 (default) because I have a slow i5 and don't want to wait three years for a render.



  • @3dcheapskate here is the render. Looks just fine in PP2014. Same material, same render settings as before. The difference is that I am using Bagginsbill's Envirosphere.

    https://sites.google.com/site/bagginsbill/free-stuff/environment-sphere
    0_1475643630844_cylinder 2014.jpg



  • @ghostship - Thank you ! :)

    I've already got BBs environmentSphere - I use my own for purely egotistal reasons... ;o)

    However, kicking my ego out the door - when I used BBs sphere the refraction seemed to work as it should:

    0_1475651408490_bb.jpg

    Sooo... time to experiment and see why my worldball screws it up !
    (and also time to nurse my wounded ego! ;o) LOL )



  • @ghostship - Got it ! It's simply the "Filtering" setting of the environment image. My worldball's using 'Quality' whereas BBs envSphere is using 'None'.

    I changed mine to 'None' and Bob's your uncle! :) Big thank you!



  • Glad you got it worked out!



  • Final test with the setup from the OP (well, similar). Simply changing the Filtering on the lettered bacdrop image fixes it.

    0_1475681155890_result.jpg

    Now I'm just left with the query about whether PP2014 does total internal reflection correctly that cropped up while I was messing around here...



  • @3dcheapskate said in PP2014: Odd refraction in material for drinking glass.:

    @ghostship - Got it ! It's simply the "Filtering" setting of the environment image. My worldball's using 'Quality' whereas BBs envSphere is using 'None'.

    I changed mine to 'None' and Bob's your uncle! :) Big thank you!

    AHA!

    I wondered what the heck I was doing wrong! I couldn't reproduce your results. I even started measuring stuffs... I duped your settings... nothing.

    But, I always render with no texture filtering on anything! Always. Why? Because... I just do. :) So, thanks for that explanation! Now I know I'm not a complete idiot, just mostly one. :)

    Now I'm just left with the query about whether PP2014 does total internal reflection correctly that cropped up while I was messing around here...

    And the mystery deepens. Just when we though it was safe to go back into the Material Room.... ;)



  • Looking through this thread I've noticed several stupid mistakes in my tests, e.g. plugging a Refract node into the Reflection_Color input of PoserSurface!

    Since the main problem that caused me to start this thread turned out to be the Filtering setting on an image, and the other oddity (oddities?) thrown up while investigating appear to be related to total internal reflection and/or back-facing polygons, for which I already started a separate thread, my stupid mistakes here can be brushed under the carpet... can't they? ;o)