Announcement

Collapse
No announcement yet.

Bug when using Sun&Sky in the Refraction Environment Override

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug when using Sun&Sky in the Refraction Environment Override

    Hey guys,
    I came across a little problem when using the Vray Sun and Sky in the refraction environment override. Scene is a teapot behind a pane of glass. Scene file attached at the end.

    This image is with the Sun and Sky instanced into the reflection/refraction environment slot. Of course, this means I will always see the Sun and Sky in the refractions of windows etc.

    Click image for larger version  Name:	Bug_Env_Override_01.JPG Views:	0 Size:	9.0 KB ID:	1101604

    This might be unwanted, so I check refraction environment and set it to black. While this gives the correct result for the refraction, the reflections in the teapot are killed as well. This seems weird!

    Click image for larger version  Name:	Bug_Env_Override_02.JPG Views:	0 Size:	6.8 KB ID:	1101605

    Just as a counter-check, the same situation with an HDRI texture. This is working fine! Here with the HDRI instanced into the reflection/refraction slot:

    Click image for larger version  Name:	Bug_Env_Override_03.JPG Views:	0 Size:	14.5 KB ID:	1101607

    And with the refraction slot enabled and set to black. Notice that the teapot stays exactly the same, contrary to the situation with the Sun and Sky.

    Click image for larger version  Name:	Bug_Env_Override_04.JPG Views:	0 Size:	17.1 KB ID:	1101606

    It feels like something is broken with the sun and sky texture when used together with black environment override. As a workaround, I can instance the Sun and Sky texture into the Domelight, but I feel this is not the right way to do it.

    Scene File:

    Env_Override_Refr_Bug_v01.zip

    Max 2021, V-Ray 4.30.02
    Attached Files
    https://www.behance.net/Oliver_Kossatz

  • #2
    Hey Oliver,

    Short answer - there is no bug here and the Dome Light way is the right way

    Long answer - once the camera ray goes through a refractive object it becomes a "refractive ray" and it's treated as such no matter what happens to it after that. So even if it's reflected somewhere it will always return the refraction environment override. Making it work the other way will eliminate the current behaviour which is wanted in some scenarios and there won't be a workaround.
    If it was that easy, it would have already been done

    Peter Matanov
    Chaos

    Comment


    • #3
      Okay. So placing the VraySky in the Domelight is not wrong? Are there any potential issues with that?
      https://www.behance.net/Oliver_Kossatz

      Comment


      • #4
        I don't think so, but I also don't know what is the end goal in your case Try it and if there are any issues - report back?
        If it was that easy, it would have already been done

        Peter Matanov
        Chaos

        Comment

        Working...
        X