POV-Ray : Newsgroups : povray.general : height field question : Re: height field question Server Time
5 Nov 2024 05:26:37 EST (-0500)
  Re: height field question  
From: Mick Hazelgrove
Date: 22 Jun 2003 16:19:18
Message: <3ef60f46@news.povray.org>
The tutorial was writen long ago! I now use trace exclusively.

example:

#declare Norm = <0,0,0>;
#declare Xpos = -4;
#declare Zpos = -4;
#declare C = 0;

#while (Xpos<2)
   #while (Zpos<18)

       #declare TestPos = <Xpos,0,Zpos>
       #declare Inter = trace ( Rocks,TestPos,<0,-10,0>, Norm);

          #if (vlength(Norm)!=0)
            object{ any object you wish to place}
         #end

       mAlign(Inter,Inter+Norm)translate y*.000125
      }// end object

 #declare C=C+1;
  #declare Zpos = Zpos + 0.0238;//0.01368;
#end
  #declare Zpos = -4;
  #declare Xpos = Xpos + 0.0238;//0.01368;
#end

Hope this helps

Mick


Post a reply to this message

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