POV-Ray : Newsgroups : povray.newusers : no_shadow and photons Server Time
25 Nov 2024 15:32:20 EST (-0500)
  no_shadow and photons (Message 1 to 1 of 1)  
From: Patrick
Subject: no_shadow and photons
Date: 24 Jul 2005 19:40:00
Message: <web.42e4262073a73829d554c4f80@news.povray.org>
I am having a little bit of a problem with photons and the no_shadow
keyword.  According to the POV documentation...

"If you use the no_shadow keyword, the object will be tagged as pass_through
automatically. You can then turn off pass_through if necessary by simply
using photons { pass_through off }."

However this does not seem to work.  In the following POV file if I comment
in the no_shadow then the box seems to stop being a photon target even
though pass_through is set to off.

#include "colors.inc"

global_settings {
    photons {
        count 150000
        max_trace_level 9
    }
}

camera {
  perspective
  location  <0, 5, 5>
  look_at   <0, 0,  0>
  right     x*image_width/image_height  // aspect
}

// create a regular point light source
light_source {
  0*x                  // light's position (translated below)
  color rgb <1,1,1>    // light's color
  photons {refraction on reflection on}
}

// Light the back of this guy with photon mapping
box {
  <.5, -1, 1 > <1.5, 1, 1.1>
  pigment { White }
}


box {
  <.5, -1, 2 > < -.5, 1, 2.1>

  texture {
    pigment {color White}
    finish {ambient 0 diffuse 0 reflection 1}
  }
  photons {
  target
  reflection on
  refraction on
  pass_through off
 }
 no_image
 //no_shadow
}


Post a reply to this message

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