POV-Ray : Newsgroups : povray.newusers : Can't get glass to look right : Can't get glass to look right Server Time
30 Jul 2024 02:15:16 EDT (-0400)
  Can't get glass to look right  
From: Sleazy Saint
Date: 29 Oct 2004 18:50:00
Message: <web.4182c808a26689fe46d22db00@news.povray.org>
I've been trying to make a simple glass ball, and so far I've only produced
a jet black ball. I can't get it to look like glass. Here is a simplified
scene file, any help would be appreciated:

#include "colors.inc"

camera{
  location <0,6,-6>
  look_at <0,1.5,0>
}

light_source{
  <-3, 10, -2>
  color White
  spotlight
  radius 15
  falloff 20
  tightness 10
  point_at <0,0,0>
}

light_source{
  35*y
  color White
  area_light <10,0,0>, <0,0,10>, 10, 10
  adaptive 1
  jitter
}

plane{
  y, 0
  texture{
    pigment{ color White }
  }
}

sphere{
  <0, 2.005, 0>, 2
  texture{
    pigment{
      color rgbf <0.96, 0.97, 0.98, 0.1>
    }
    finish{
      specular 0.7
      roughness 0.001
      ambient 0.2
      diffuse 0.1
      reflection{ 0.03, 0.51
        fresnel on}
      conserve_energy
    }
  }
  interior{  ior 1.45
    fade_distance 0.50
    fade_power 1
  }
}


Post a reply to this message

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