POV-Ray : Newsgroups : povray.general : Lights and photons glitches (possibly bug) : Re: Lights and photons glitches (possibly bug) Server Time
5 Aug 2024 20:22:52 EDT (-0400)
  Re: Lights and photons glitches (possibly bug)  
From: Rohan Bernett
Date: 1 Oct 2002 00:15:19
Message: <web.3d9920fa1466a06cc571aa6c0@news.povray.org>
Here is the source code for the first scene (the one with the two lasers).

Rohan _e_ii


global_settings {
  max_trace_level 10
  photons {
    count 20000
    autostop 0
    //media on
    jitter 0.4
    }

  }

// looking towards lasers
/*camera{
  location <-15,16,0>
  look_at <11,2,0>
  }*/

// looking in direction lasers point
/*camera{
  location <16,16,0>
  look_at <-1,2,0>
  }*/

// looking over at wall, laser2 visible
camera{
  location <11,16,-11>
  look_at <1,2,11>
  }

// looking over at wall, laser1 visible
/*camera{
  location <11,16,11>
  look_at <1,2,-11>
  }*/

light_source{<-20,30,40> rgb<1,1,1> media_interaction off photons{reflection
off refraction off}}

#declare glassblock =
box{<2,4,2> <-2,0,-2>
  pigment{rgbt<1,1,1,0.8>}
  finish{
    reflection 0.2
    }
  interior{ior 1.5}
  photons {
     target
     refraction on
     reflection on
     //collect off
     }
  }

#declare mirrorblock =
box{<0.25,4,2> <-0.25,0,-2>
  pigment{rgb<0,0,0>}
  finish{
    reflection 1.0
    ambient 0
    diffuse 0
    }
  photons {
    target
    reflection on
    collect off
    }
  }

// laser 1
light_source{
  <12,2,-7>, colour rgb<00,100,00>
  cylinder
  radius 1
  falloff 1.1
  tightness 1
  parallel
  point_at <-10,2,-7>
  media_interaction on

  }

// laser 2
light_source{
  <12,2,7>, colour rgb<00,00,100>
  cylinder
  radius 1
  falloff 1.1
  tightness 1
  parallel
  point_at <-10,2,7>
  media_interaction on
  }

#declare lasercase =
  difference{
    box{<2,2,4> <-2,-2,-4>
      pigment{rgb<0.4,0.5,1>}
      }
    cylinder{<0,0,-2> <0,0,4.1> 1
      pigment{rgb<0.2,0.2,0.2>}
      }
    }



object{mirrorblock scale<8,1,1> rotate<0,45,0> translate<1,0,0>}
//object{glassblock rotate<0,45,0> translate<1,0,0>}
object{mirrorblock rotate<0,-45,0> translate<0,0,-7>}
// mirror opposite laser 2
//object{mirrorblock rotate<0,45,0> translate<0,0,7>}

object{lasercase  rotate<0,-90,0> translate<12,2,-7>}
object{lasercase  rotate<0,-90,0> translate<12,2,7>}

box{<2,6,10> <-2,0,-10> pigment{rgb<0.5,0.5,0.5>} rotate<0,0,0>
translate<-8,0,0>}

box{<50,50,50> <-50,-0.0001,-50>
  pigment{checker rgb<0.3,0.3,0.3>, rgb<0.1,0.1,0.1> scale 2}
  hollow
  interior{
    media{
      scattering{
        2
        colour rgb<0.01,0.01,0.01>
        }
      }
    }
  }


Post a reply to this message

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