POV-Ray : Newsgroups : povray.binaries.images : Cornell box, take 2 + source (30k) : Cornell box, take 2 + source (30k) Server Time
2 Oct 2024 06:26:09 EDT (-0400)
  Cornell box, take 2 + source (30k)  
From: Kari Kivisalo
Date: 2 Jun 2000 15:54:26
Message: <39381152.4238DD3D@kivisalo.net>
I cancelled the previous post because I just noticed that
the image I used as reference is synthetic and not from a
CCD camera. Oh well, I guess it's close enough to a real photo.


#version unofficial megapov 0.5;

/* This scene produces image that, with gamma 2.2, matches the synthetic image of the
   Cornell box available at http://www.graphics.cornell.edu/online/box/box.jpg.
   The scene and colors are not 100% accurate and can be used for
   qualitative/artistic purposes only.
  
   June 01 2000 kar### [at] kivisalonet

*/

#declare Diffuse=1.2; // With this value brihtness=1
#declare RadQuality=2; // 1=good enough

global_settings{
  assumed_gamma 1.0
  ini_option "+qr"
  radiosity{
    pretrace_start 0.04
    pretrace_end 0.02/RadQuality
    count 100*RadQuality
    recursion_limit 3+RadQuality 
    adc_bailout 0.001
    nearest_count 4*RadQuality
    error_bound 1/RadQuality
    brightness 1.2/Diffuse
    gray_threshold 0.5     
  }
} 

#declare Finish=finish{diffuse Diffuse brilliance 0.6 ambient 0}

light_source{
  0.999*y color 4.5/Diffuse
  spotlight radius 1 falloff 90 tightness -0.6 point_at 0
  area_light <0.45, 0, 0>,<0, 0, 0.4>,20,20 adaptive 0
  fade_power 2
  fade_distance 0.45
}

#declare BaseTex=texture{pigment{rgb<0.891,0.6,0.21>}finish{Finish}}
#declare RedTex=texture{pigment{rgb<0.442,0,0>}finish{Finish}}
#declare GreenTex=texture{pigment{rgb<0.02,0.15,0.002>}finish{Finish}}

camera{
  location<0,0,-3.82>
  right x
  direction 1.365*z
  look_at <0,0,0>
}

#declare Box=box{-1,1 scale 0.001*y translate -y}

object{Box texture{BaseTex}}
object{Box rotate 90*z texture{GreenTex}}
object{Box rotate 180*z texture{BaseTex}}
object{Box rotate 270*z texture{RedTex}}
object{Box rotate -90*x texture{BaseTex}}

box{
  -0.5,0.5 translate 0.5*y scale 0.61
  rotate 17*y translate<0.32,-1,-0.38> texture{BaseTex}
}

box{
  -0.5,0.5 translate 0.5*y scale <1,2,1>*0.61
  rotate -17*y translate<-0.35,-1,0.27> texture{BaseTex}
}

box{
  -0.5,0.5 scale<0.45,0.001,0.4> translate 0.999*y
  pigment{rgb<1,1,1>} finish{ambient 1 diffuse 0} 
  no_shadow
}


-----------------------------------------------------------------------
Kari Kivisalo                                          www.kivisalo.net


Post a reply to this message


Attachments:
Download 'cornell4.jpg' (31 KB)

Preview of image 'cornell4.jpg'
cornell4.jpg


 

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