POV-Ray : Newsgroups : povray.unofficial.patches : Media Photons??? Help! Server Time
1 Nov 2024 21:22:08 EDT (-0400)
  Media Photons??? Help! (Message 1 to 1 of 1)  
From: Adrian A  Baumann
Subject: Media Photons??? Help!
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.