POV-Ray : Newsgroups : povray.unofficial.patches : Media Photons??? Help! : Media Photons??? Help! Server Time
2 Sep 2024 06:16:58 EDT (-0400)
  Media Photons??? Help!  
From: Adrian A  Baumann
Date: 7 May 2000 13:21:03
Message: <3915a5ff@news.povray.org>
Tried this source, but the media-photons don't show up. Can anybody spot the
mistake? I couldnt...

BTW, I'm using MegaPov 0.4 on Windows 98...

Thanks,
Ade

-------Source here--------

#version 3.1
#include "colors.inc"
#include "metals.inc"
#include "glass.inc"
#version unofficial MegaPov 0.4;
global_settings
{
  assumed_gamma 1.0
  photons {
    spacing .01
   media 100
   max_trace_level 20
 }
}

// ----------------------------------------
camera
{
  location  <0, 2, -5>
  direction 2.5*z
  right     4/3*x
  look_at   <0.0, 0.5,  0.0>

}

#default
{
  texture { pigment {color red 1} finish{ambient 0.2} }
}

light_source
{
  <-5,5,-1> // light's position (translated below)
  color rgb 5  // light's color
  spotlight
  radius 4
  falloff 4
  point_at <0,.6,0>
  photons {reflection on refraction on}
}

box {<-1,-1,-1>,<1,0,1> texture {pigment {color rgb .5}}}

$squash=.36
sphere {0,.5 scale <squash,1,1>
 texture {T_Glass3}
 interior {I_Glass}
 photons {
  target
  reflection on
  refraction on
  ignore_photons

 }
 hollow
 rotate -40*z
 translate .6*y

}

media {
 scattering {
  1,
  rgb .4
 }
 samples 10,10

}


Post a reply to this message

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