POV-Ray : Newsgroups : povray.binaries.images : My version of the reflecting sphere on checkered plane : Source code (Was: My version of the reflecting sphere on checkered plane) Server Time
3 Oct 2024 00:27:59 EDT (-0400)
  Source code (Was: My version of the reflecting sphere on checkered plane)  
From: Nieminen Juha
Date: 2 Mar 2000 09:13:51
Message: <38be771f@news.povray.org>
#version unofficial MegaPov 0.4;

global_settings
{ max_trace_level 3
  reflection_blur_max 2
  post_process { soft_glow {1, 8}  }
  photons { count 10000 jitter .5 }
  ambient_light 0.01
  ini_option "+QR"
  radiosity
  { pretrace_start 0.08
    pretrace_end   0.02
    count 50             // CHANGE range from 20 to 150
    nearest_count 5      // CHANGE range from 3 to 10
    error_bound 1        // CHANGE - range from 1 to 3 - should correspond with
pretrace_end
                         //   1 : pretrace_end = 0.02
                         //   3 : pretrace_end = 0.08
                         //   use pretrace_start = 0.08
                         // you can go lower than 1, but then you probably will want
to set
                         // pretrace_end to 0.01, which is really slow
    recursion_limit 3    // CHANGE
    
    low_error_factor .5  // leave this
    gray_threshold 0.0   // leave this
    minimum_reuse 0.015  // leave this
    brightness 1         // leave this
    
    adc_bailout 0.01/2   // CHANGE - use adc_bailout = 0.01 / brightest_ambient_object
    normal on
  }
}

camera { location <-5,2,-4>*1.2 look_at 0 angle 35 }
light_source
{ -z*20, 1
  spotlight point_at 0 radius 7 falloff 10
  area_light x*5,y*5,10,10 adaptive 0
  rotate <45,-20>
  photons { reflection on area_light }
}
light_source
{ -z*20, <1,.7,.2>*.5
  spotlight point_at 0 radius 5 falloff 7
  area_light x*5,y*5,10,10 adaptive 0
  rotate <30,90>
  photons { reflection on area_light }
}

box { -20,20 inverse pigment { rgb x+y*.5 } finish { ambient 10 } }

sphere
{ 0,1
  pigment { rgb <.5,.75,1> }
  finish
  { blinn 2 metallic
    reflection_min .3 reflection_max 1
    reflection_blur .03 reflection_samples 50
  }
  interior { ior 4 }
  photons { target reflection on }
}

#declare Marble1=
  pigment { marble color_map { [0 rgb .5][1 rgb .6] } turbulence .6 scale .3 }
#declare Marble2=
  pigment { marble color_map { [0 rgb .9][1 rgb 1] } turbulence .8 scale .3 }
#declare TileNormal=
  normal
  { gradient x 1 slope_map { [0 <0,1>][.03 <1,0>][.97 <1,0>][1 <0,-1>] }
  }
plane
{ y,-1
  texture
  { pigment { checker pigment { Marble1 }, pigment { Marble2 rotate <30,50> } }
    normal
    { average normal_map
      { [1 TileNormal]
        [1 TileNormal rotate y*90]
        [.4 bumps .5 scale .03]
      }
    }
    finish
    { specular .75
      reflection .5 reflection_blur .05 reflection_samples 20
    }
    scale 2
  }
}


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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