POV-Ray : Newsgroups : povray.newusers : removing some shadows Server Time
27 Nov 2024 19:39:43 EST (-0500)
  removing some shadows (Message 1 to 2 of 2)  
From: Wade
Subject: removing some shadows
Date: 6 Aug 2002 09:14:18
Message: <3d4fcbaa$1@news.povray.org>
How can I remove some shadows?  is it that I'm using an area light or using
radiosity?
Here's the code:

#include "colors.inc"

#declare Radiosity=on;

global_settings {
  assumed_gamma 1.0
  //max_trace_level 25
  #if (Radiosity)
    radiosity {
      pretrace_start 0.08           // start pretrace at this size
      pretrace_end   0.04           // end pretrace at this size
      count 35                      // higher -> higher quality (1..1600)
[35]
      nearest_count 5               // higher -> higher quality (1..10) [5]
      error_bound 1.8               // higher -> smoother, less accurate
[1.8]
      recursion_limit 3             // how much interreflections are
calculated (1..5+) [3]
      low_error_factor .5           // reduce error_bound during last
pretrace step
      gray_threshold 0.0            // increase for weakening colors (0..1)
[0]
      minimum_reuse 0.015           // reuse of old radiosity samples
[0.015]
      brightness 1                  // brightness of radiosity effects
(0..1) [1]

      adc_bailout 0.01/2
      //normal on                   // take surface normals into account
[off]
      //media on                    // take media into account [off]
      //save_file "file_name"       // save radiosity data
      //load_file "file_name"       // load saved radiosity data
      //always_sample off           // turn sampling in final trace off [on]
      //max_sample 1.0              // maximum brightness of samples
    }
  #end
}

#default {
  texture {
    pigment {rgb 1}
    #if (Radiosity)
      finish {
        ambient 0.0
        diffuse 0.6
        specular 0.3
      }
    #else
      finish {
        ambient 0.1
        diffuse 0.6
        specular 0.3
      }
    #end
  }
}

// ----------------------------------------

camera {
  right x*image_width/image_height
  location  <-1.5,.55,-6>
  look_at   <0,1,0>
}

light_source {
  <500,500,-500>       // light's position
  color rgb <1, 1, 1>  // light's color
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

// ----------------------------------------

plane {
  y, 0
  texture {
    pigment {
      checker
      color rgb <1.0, 0.8, 0.6>
      color rgb <1.0, 0.0, 0.0>
      scale 0.5
    }
  }
}
// An area light (creates soft shadows)
// WARNING: This special light can significantly slow down rendering times!
light_source {
  0*x                 // light's position (translated below)
  color rgb 1.0       // light's color
  area_light
  <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
  4, 4                // total number of lights in grid (4x*4z = 16 lights)
  adaptive 0          // 0,1,2,3...
  jitter              // adds random softening of light
  circular            // make the shape of the light circular
  orient              // orient light
  translate <40, 80, -40>   // <x y z> position of light
}

box {
  <-10, -10, 0>
  < 10,  10,  0>
 texture
 {
  pigment { color Khaki }
  normal { bumps 0.02 scale 0.01 }
  finish { phong 0.5 }
 }
 translate <0,0,5>
}
box {
  <-.50, -10, -10>
  < .50,  10,  10>
 texture
 {
  pigment { color Khaki }
  normal { bumps 0.02 scale 0.01 }
  finish { phong 0.5 }
 }
 translate <-3.5,0,0>
}
box {
  <-.50, -10, -10>
  < .50,  10,  10>
 texture
 {
  pigment { color Khaki }
  normal { bumps 0.02 scale 0.01 }
  finish { phong 0.5 }
 }
 translate <3.5,0,0>
}
__________________________________________________________________ Wade
Markham ICQ#: 44258048 Current ICQ status: + More ways to contact me i See
more about me:
__________________________________________________________________


Post a reply to this message

From: Philippe Debar
Subject: Re: removing some shadows
Date: 6 Aug 2002 16:43:13
Message: <3d5034e1$1@news.povray.org>
"Wade" <Zav### [at] aolcom> wrote in message
news:3d4fcbaa$1@news.povray.org...
> How can I remove some shadows?  is it that I'm using an area light or
using
> radiosity?

If you want to remove all the shadows created by a light_source, use the
"shadowless" keyword in the light_source declaration. If you want to remove
all the shadows created by an object, use the "no_shadow" keyword in the
object declaration.


Povingly,

Philippe


Post a reply to this message

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