POV-Ray : Newsgroups : povray.general : HeightField Glass : Re: HeightField Glass Server Time
31 Jul 2024 10:18:14 EDT (-0400)
  Re: HeightField Glass  
From: flame-mike
Date: 12 May 2007 08:05:01
Message: <web.4645acbfb8b26c1a1d1bbab40@news.povray.org>
Hey, All!
That is my result -> http://www.geocities.com/gplflame/demo3.html
Is it a bug in povray? Or in me.

global_settings
{
  max_trace_level 100 /*or another high number*/
  adc_bailout 1/127 /*decrease the denominator for faster but less exact
  results*/
}

#include "colors"
light_source {
   <45, 33, -50>, rgb <1, 1, 1>
}
#include "glass.inc"
sky_sphere {
  pigment {
    gradient y
    color_map {
       [0.0 White]
       [0.25 Orange]
       [0.5 White]
       [0.75 NavyBlue]
       [1.0 White]
    }
  }
}

#declare myglass =  material{
   texture {
      pigment {Col_Glass_Orange}
      finish{F_Glass5}
   }
   interior{I_Glass1}
};
#declare flhf = height_field {
   png "povray-test.png"
   smooth
};
#declare flhf2 = difference{
   object {flhf}
   box{<0,0.35,0>,<1,1,1> inverse}
   translate <-0.5,-0.35,-0.5>
};
#declare flhf3 = merge{
   object{flhf2}
   object{flhf2 scale -y translate 0.001*y}
};
object{flhf3
   material{myglass}
   rotate <-90,0,0>
}

/*
box {
   <-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5>
   scale 1

   pigment {
       image_map { png "povray-test-color.png"}
       translate <-0.5, -0.5, -0.5>
   }
   rotate <0, 0, 0>
   translate z*0.5
}
*/

camera {
   location <0, 0, -2>
   //sky <0, 1, 0>
   //direction <0, 0, -1>
   right <1.3333, 0, 0>
   up <0, 1, 0>
   look_at <0, 0, 1>
}


Post a reply to this message

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