|
|
On 1/9/19 3:04 AM, hjkqed wrote:
> 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}
> }
>
>
>
well i see at /least/ two issues ... no value for reflection and hollow
is missing from the boxes
http://wiki.povray.org/content/Reference:Finish#Specular_Reflection
http://wiki.povray.org/content/Reference:Hollow_Object_Modifier
Post a reply to this message
|
|