POV-Ray : Newsgroups : povray.general : Reflection of light due to difference in the index of refraction : Reflection of light due to difference in the index of refraction Server Time
2 Jun 2024 03:07:21 EDT (-0400)
  Reflection of light due to difference in the index of refraction  
From: hjkqed
Date: 9 Jan 2019 03:05:00
Message: <web.5c35aac4892c9dda5e43241e0@news.povray.org>
Hello.

I've been trying to simulate a rather simple phenomenon in physics wherein some
light will be reflected and transmitted when passing through two media of
different indices of refraction, where the intensities of the
reflection/transmission depend on the how much the difference is. (pg. 405,
Introduction to Electrodynamics, Griffiths. Fourth Edition).

So, technically, if we have a glass box placed in air with an ior != 1 (say, ior
= 2) then, when we shine light on the box, we should get some reflection of
light.

I've been trying to recreate this phenomenon using the source code below, but I
could not get any sort of reflection. Could anyone please help me why it doesn't
work? Thank you so much in advance.

--- code ---
#include "colors.inc"
#include "Glass.inc"
#include "textures.inc"

global_settings {
 assumed_gamma 1.0
 photons
  { count 2000 }
}

camera {location <0,0,-9> look_at <0,0,1> }
light_source {
 <0,0,-10>
 color White
}
background { Black }

box {
 <-3,-3,0>, <3,3,3>
 pigment { Col_Glass_Clear } interior {ior 2}
 finish { reflection { fresnel on }}
 photons { target reflection on refraction on}
}

box {
 <-3,-3,3>, <3,3,6>
 pigment { Col_Glass_Clear } interior {ior 1}
 finish { reflection { fresnel on }}
 photons { target reflection on refraction on}
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.