POV-Ray : Newsgroups : povray.news-submissions : How to avoid the artifacts about height_map? : How to avoid the artifacts about height_map? Server Time
24 Apr 2024 22:07:12 EDT (-0400)
  How to avoid the artifacts about height_map?  
From: Terry  Chen
Date: 4 Jan 2013 02:55:01
Message: <web.50e68a3fa2e73d93c773fff20@news.povray.org>
I'm a rookie in pov-ray, and want to use height_map for water-simulation, I
tried to use "intersecion" on the height_map,box objects, but caused strange
artifacts, but I don't know how to solve it? Could someone help?

Here's the code:

#include "colors.inc"
camera {

location <-1,4,-2>
look_at <0.5,0,0.5>

angle 36
}

light_source { <-1, 1.30, -1> White }

plane { y, 0
texture {
//pigment {  White }
pigment {
image_map {jpeg "brick.jpg"}
    rotate <90,0,0>

 }
finish{
ambient .3
diffuse 0.7

}
}
}
plane { z, 1
texture {
pigment {  White }
finish{
ambient .2
diffuse 0.7
}
}
}
plane { x, 1
texture {
pigment {  White }
finish{
ambient .2
diffuse 0.7
}
}
}
/*
box{
 <0,0,0>,<1,1,1>
 pigment{Green}
 }      */
intersection{
height_field {
sys "Surface.bmp" //can be replaced by other images
smooth



 }
box{
// <0.000001,0.000001,0.000001>,<0.999,0.999,0.999>
// <0,0,0>,<1,1,1>
// <-0.000001,-0.000001 ,-0.000001>,<1.000001,1.000001,1.000001>
//<0,0,0>,<1.000001,1.000001,1.000001>
// <0.000001,0.000001,0.000001>,<1.000001,1.000001,1.000001>
 <-0.000001,-0.000001,-0.000001>,<1.000001,1.000001,1.000001>
 }
 texture
    {
        pigment {   color rgbt <1, 1, 1, 1> }
        finish
        {
            ambient 0.0
            diffuse 0.0  //
            reflection
            {
                0.02, 1.0
                fresnel on
            }
            specular 1
            roughness .003
        }
     }
interior {ior 1.333}
}


Post a reply to this message

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