POV-Ray : Newsgroups : povray.newusers : Light Source Maximum Brightness? : Light Source Maximum Brightness? Server Time
28 Jul 2024 14:25:53 EDT (-0400)
  Light Source Maximum Brightness?  
From: sam kim
Date: 14 Feb 2009 17:55:01
Message: <web.49974bb74c68a7e7b148ecf60@news.povray.org>
Hello,

I have two light_sources for each floor in a 2-story building.

I want to set a maximum illumination number (so an area that receives amount of

light past this number will not be brighter than this number) so that

the area of the building that receives light from both light_sources will not be

so bright compared to rest of the building.

Here's the code:

#include "colors.inc"


light_source {<30,96,50> White}
light_source {<30,49,50> White}

camera {location <50,90,-100> look_at <50,50,20>}

background {White}

//////////////// radiosity ////////////////////
 /*
  global_settings {
    radiosity {
      pretrace_start 0.08
      pretrace_end   0.01
      count 100

      nearest_count 5
      error_bound 1
      recursion_limit 1

      low_error_factor 0.5
      gray_threshold 0.0
      minimum_reuse 0.015
      brightness .5

      adc_bailout 0.01/2
    }
  }   */

////////////////////////////////////////// two - floor Building
/////////////////////////////////////////

               /// main frame///
#declare Main_Frame =

difference{

box {<0,0,0><100,100,100>}

box {<3,3,3><97,97,97>}

}

            /// floor separator  or just 2nd floor///

#declare Second =

difference {

box {<0,50,0><100,53,100>}

box {<50,49,100/3><90,54,90>}

}

          ///////// Main Frame + 2nd Floor /////////

#declare Building =

merge {object{Main_Frame} object{Second}}

          ////////// Cross Section of the Building ///////////

difference {

object{Building}

box {<-1,-1,-1><101,101,4>}

texture { finish {ambient .5}
pigment {color Gray75} }

}


Post a reply to this message

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