POV-Ray : Newsgroups : povray.advanced-users : 3D Sinewave : Re: 3D Sinewave Server Time
2 Nov 2024 11:24:38 EDT (-0400)
  Re: 3D Sinewave  
From: Chris Huff
Date: 12 Oct 1999 20:40:24
Message: <3803D573.A275F98C@compuserve.com>
Note: I did not test this code, I actually made an isosurface with this
function:
function {y - 5*(sin(x/3) + sin(z/3))}
and a threshold of 0. Of course, this requires the Superpatch.
This has been tested:
union {
 #declare X=-50;
 #while (X<50)
   #declare Z=-50;
   #while (Z<50)
     sphere { <X,5*(sin(X/5) +sin(Z/5)),Z>,1 pigment {color Yellow}}
     #declare Z=Z+1;
   #end
   #declare X=X+1;
 #end
 scale 0.1
}


Post a reply to this message

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