Sample scenes
box_cyl_opaque_shadow.ray
box_cyl_reflect.ray
box_cyl_transp_shadow.ray
box_dist_atten.ray
cylinder_refract.ray
cyl_ambient.ray
cyl_diffuse.ray
cyl_diff_spec.ray
cyl_emissive.ray
recurse_depth.ray
sphere_refract.ray
texture_map.ray
Download as a group

box_cyl_opaque_shadow.ray

Purpose: Test opaque shadows

Settings:

Image:

Code:

SBT-raytracer 1.0

// box_cyl_opaque_shadow.ray
// purpose: Test opaque shadows

// This was rendered with the following attenuation
// settings:
// Distance scale: 0.000        OR   1.87
// Constant term:  0.25         OR   0.25
// Linear term:    0.0033724    OR   0.25
// Quadratic term: 0.00004592   OR   0.25

camera
{
  position = (15, 0, 5);
  viewdir = (-1, 0, -.3);
  updir = (0, 0, 1);
}

// This light should cast the shadow of the
// cylinder on the box.
point_light
{
  position = (3, 0, 6);
  color = (1, 1, 1);
}

translate( 0, 0, -2,
  scale( 15, 15, 1,
    square {
      material = {
        diffuse = (0.5, 0, 0);
      }
    } ) )

translate( 0, 0, 1,
  cylinder {
    material = {
      diffuse = (0, 0.9, 0);
      ambient = (0, 0.3, 0);
    }
  } )