POV-Ray : Newsgroups : povray.general : Weird image : Re: Weird image Server Time
29 Jul 2024 08:24:42 EDT (-0400)
  Re: Weird image  
From: Chaanakya
Date: 24 Jul 2012 16:05:01
Message: <web.500eff56df11dff27f523b7e0@news.povray.org>
"Chaanakya" <nomail@nomail> wrote:
> Hey guys!  I'm getting a puzzling image from POV-Ray and I thought you guys
> might be able to help:
>
> When I render the following POV-Ray source file, I get parts of the inner cube
> which are semi-transparent.  I don't think that should be happening.  Take a
> look:
>
> #version 3.6;
> #include "colors.inc"
>
> global_settings {
>   max_trace_level 256
>   ambient_light White
>   assumed_gamma 1.0
> }
>
> camera {
>   location <10,0,0>
>   look_at <0,0,0>
>   //rotate <0,0,-clock*90>
> }
>
> light_source {
>   <1000,1000,0>
>   color White
> }
>
> plane {
>   y, -10
>   pigment { hexagon Green, White, Blue }
> }
>
> box {
>   <-0.99,-0.99,-0.99>,<0.99,0.99,0.99>
>   pigment {
>     checker Red, Yellow
>   }
> }
>
> difference {
>   box { <-1.3,-1.3,-1.3>,<1.3,1.3,1.3> }
>   box { -1,1 }
>   pigment {
>     transmit 1
>   }
>   finish {
>     ambient 0
>     diffuse 0
>     conserve_energy
>     reflection {
>       1.0
>       fresnel on
>     }
>     specular 0
>     roughness 0.001
>   }
>   interior {
>     ior 1.5
>   }
> }
>
> The ior of the covering box is 1.5, which is that of glass if I'm not mistaken.
> So why is there transparency of the inner cube?
>
> Sincerely,
>
> Chaanakya

My main issue is the transparency of the solid box when the outer box has an IOR
of 1.5 - the solid box should not be even slightly transparent!  Is there
something I'm doing wrong?  Is this a bug?

- Chaanakya


Post a reply to this message

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