POV-Ray : Newsgroups : povray.binaries.images : 2D function needs 3rd dimension : Re: 2D function needs 3rd dimension Server Time
15 Aug 2024 16:25:33 EDT (-0400)
  Re: 2D function needs 3rd dimension  
From: Kevin Loney
Date: 27 May 2002 00:59:14
Message: <3cf1bd22@news.povray.org>
you might try this

camera {
 location <20, 16, 12>
 look_at <0, 0, 0>
}

light_source {
 <500, 1500, 750>
 rgb 1
}

#declare fn_llama = function (x,y,z,A,B,C,D,E,F,I,J,K,L) {
 E*sin(A*sin(I*x*.01) + B*cos(J*z)) + F*cos(C*cos(K*x) + D*sin(L*z)) - y
}

isosurface {
 function {
  -fn_llama(x,y,z,1,1,1,1,1,1,1,1,1,1)
 }
 contained_by {
  box {
   <-16, -2, -16>, <16, 2, 16>
  }
 }
 accuracy .001
 max_gradient 4
 pigment {
  rgb 1
 }
}


--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

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