POV-Ray : Newsgroups : povray.text.scene-files : Code to "Wierd media effect" Server Time
28 Jul 2024 18:15:14 EDT (-0400)
  Code to "Wierd media effect" (Message 1 to 1 of 1)  
From: Peter Popov
Subject: Code to "Wierd media effect"
Date: 14 Jun 1999 23:57:57
Message: <3766cdd3.36963128@news.povray.org>
OK, here's the code to my post "Weird media efect" in p.b.i. I see
nothing wrong in the code but the result is highly aliased (please see
the image). Before I write a bug report I want to make sure this is
not how Monte Carlo media sampling is supposed to work and it's just
me that can't use it.

// spotl.pov
// aspect is 11:5
// Peter Popov

#declare i=-50;
#while (i<=50)
  cylinder 
  { 0, 50*y, 4.9995 
    pigment { rgbf 1 }
    hollow
    interior
    {
      media
      {
        scattering { 1, 0.2 } }
        ratio 0.5 + 0.5*(i+50)/100
        intervals 30
        samples 3, 10
        confidence 0.9999
        variance 1/255
      }
    }
    
    translate x*i
  }
  
  light_source
  {
    50*y+x*i color rgb 1
    spotlight
    point_at x*i
    radius 2
    falloff 7
    tightness 75
  }
  
  #declare i=i+10;
#end

camera
{
  location <0, 25,-300>
  direction 300*z
  right 110*x
  up 50*y
  look_at 25*y
//  orthographic    // the aliasing gets even worse with it
}

// end code
Peter Popov
ICQ: 15002700


Post a reply to this message

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