POV-Ray : Newsgroups : povray.general : function height field (f_ridged_mf) : Re: function height field (f_ridged_mf) Server Time
6 Aug 2024 23:20:05 EDT (-0400)
  Re: function height field (f_ridged_mf)  
From: JRG
Date: 6 Jan 2002 09:10:52
Message: <3c385aec$1@news.povray.org>
Coded on the fly:

#include "functions.inc"

camera {
    location <0,5,-10>
    look_at 0}

light_source {<50,50,-50> rgb 1}

height_field {
    function 500,500 {
        pigment {function {
f_ridged_mf(x,y,z,
0.05,// H
2.8,// Lacunarity
6,// Octaves
0.7,// Offset
0.9,// Gain
3//P5
) } }}
pigment {rgb 1}
translate -0.5
scale <10,2,10>
    }


--
#local j=text{ttf"arial""JRG".2,0}#local J=0;#while(J<10)#local R=0;#while
(R<2)#local G=0;#while(G<1)#if(inside(j<R,G.1>))object{j scale.025translate
<R-1G-J/20J/-40+2>pigment{rgb<9J>}}#debug"O"#else#debug" "#end#local G=G+
.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG

Home: http://digilander.iol.it/jrgpov  //New: Kitchen scene WIP


Post a reply to this message

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