POV-Ray : Newsgroups : povray.text.scene-files : Re: [p.b.i] Radiosity artifact cleaning? Server Time
31 Oct 2024 21:29:19 EDT (-0400)
  Re: [p.b.i] Radiosity artifact cleaning? (Message 1 to 1 of 1)  
From: Jaime Vives Piqueres
Subject: Re: [p.b.i] Radiosity artifact cleaning?
Date: 19 Mar 2004 13:36:42
Message: <405b3dba@news.povray.org>
#version 3.5;

#declare use_cleaner=0;
#declare use_radiosity=2; // 1=load, 2=save

global_settings{
  radiosity{
   #if (use_radiosity=2)
   // save settigns
   pretrace_start .04 pretrace_end .01
   count 150
   nearest_count 20 error_bound .25
   recursion_limit 1
   save_file "data.rad"
   #else
   // load settings
   pretrace_start 1 pretrace_end 1
   always_sample off
   error_bound .25
   recursion_limit 2
   load_file "data.rad"
   #end
  }
}
#default{texture{finish{ambient 0}}}


// textures
#if (use_cleaner)

#declare t_cleaner=
texture{pigment{rgbt .95}}     // this is the bug/feature
#declare White_Paint=
texture{pigment{rgb 1}}
texture{t_cleaner}
#declare Red_Paint=
texture{pigment{rgb <1,0,0>}}
texture{t_cleaner}
#declare Green_Paint=
texture{pigment{rgb <0,1,0>}}
texture{t_cleaner}

#else

#declare White_Paint=
texture{pigment{rgb 1}}
#declare Red_Paint=
texture{pigment{rgb <1,0,0>}}
#declare Green_Paint=
texture{pigment{rgb <0,1,0>}}

#end


// test room
box{-.5,.5 hollow
  scale <500,250,500>
  texture{White_Paint}
  translate 125*y
}

// test objects
sphere{0,50
  texture{Red_Paint}
  translate <63,50,99>
}
cylinder{0,100*y,30
  texture{Green_Paint}
  translate <-73,0,120>
}


// ambient lights
box{-.5,.5
  scale <100,5,25>
  pigment{rgb 1}
  finish{ambient sqrt(100*25)}
  translate <0,247.5,50>
}
box{-.5,.5
  scale <100,5,25>
  pigment{rgb 1}
  finish{ambient sqrt(100*25)}
  translate <0,247.5,-50>
}


camera{
  location <100,160,-240>
  direction 1.8*z
  look_at <0,40,250>
}


Post a reply to this message

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