Search Unity

Question Can a front facing reflection be seen behind the mesh (Material reflection question)

Discussion in 'General Graphics' started by mattxreality, Aug 6, 2022.

  1. mattxreality

    mattxreality

    Joined:
    Dec 11, 2018
    Posts:
    57
    I've been experimenting with reflection for the interior of a curved visor for a VR astronaut experience. I want the reflection on the outside, convex surface to be visible on the inside of the visor model, since that's what we see in real life. In unity, the convex reflection appears in the correct orientation, but the concave reflection is inverted. It makes sense as the bottom of the concave surface would be reflecting things above the concave mesh.

    Is there a way to allow the convex reflection to be seen from the back of a mesh?

    upload_2022-8-6_15-41-22.png

    upload_2022-8-6_15-41-31.png
     
  2. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    666
  3. mattxreality

    mattxreality

    Joined:
    Dec 11, 2018
    Posts:
    57
    Thanks for the recommendations Code Monkey!

    I ended up using a Render Texture approach with a curved mesh and the results are what I was shooting for. I'll do some tweaking over the next few weeks as I finalize the VFX, but I'm pleased that today's efforts were productive. Here's the results which show a more accurate reflection projection than the Reflection Probe approach.


    upload_2022-8-7_10-3-57.png

    upload_2022-8-7_10-6-31.png
     
    c0d3_m0nk3y likes this.
  4. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    666
    That's pretty cool. Nice job!