#version unofficial MegaPov 0.7; camera { location <0,5,-5>*1.5 look_at 0 } light_source { <00,500,-500> rgb 1 } #declare Textuur=texture {pigment {rgb 1}finish {specular 1 roughness .01}} #declare ResX=50; #declare ResY=50; #declare Pig= pigment { bozo color_map { [0 rgb 0] [1 rgb 1] } scale .25 } height_field { pattern ResX, ResY { hf_gray_16 Pig } texture {Textuur} scale 2 translate <-1,0,-1> scale <3,1,3> translate -x*3.1 smooth } #declare locations=array[ResX+1][ResY+1] #declare X=0; #while (X<=ResX) #declare Y=0; #while (Y<=ResY) #declare locations[X][Y]=).x,Y/ResY>; #declare Y=Y+1; #end #declare X=X+1; #end #macro Normaal(XO,YO) #if (XO<0) #local XO=0; #end #if (XO>(ResX-1)) #local XO=ResX-1; #end #if (YO<0) #local YO=0; #end #if (YO>(ResY-1)) #local YO=ResY-1; #end vcross(locations[XO][YO]-locations[XO+1][YO],locations[XO][YO]-locations[XO][YO+1]) #end mesh { #declare X=0; #while (X scale <-3,1,3> translate x*3.1 }