POV-Ray : Newsgroups : povray.advanced-users : 3D Sinewave : Re: 3D Sinewave Server Time
2 Nov 2024 11:27:36 EDT (-0400)
  Re: 3D Sinewave  
From: Peter Popov
Date: 12 Oct 1999 20:36:00
Message: <dtMDOPlEzW7Ut5Dv2DTMhryV1vVm@4ax.com>
On Wed, 13 Oct 1999 03:19:37 +0300, Peter Popov <pet### [at] usanet>
wrote:

>POV finished rendering (maybe I should post the result? Haven't posted
>a pic in a #while...) so I will check my formula and post a bit later
>(half an hour?)

Here you go:

#declare X=-100;
#while (X<100)
  #declare Z=-100;
  #while (Z<100)
    #declare Y=5*sin(X/10)+5*sin(Z/6);
    sphere { <X,Y,Z>, 2 pigment { blue 1 green (10+Y)/20 } }
    #declare Z=Z+2;
  #end
  #declare X=X+2;
#end

light_source { 1000*y color rgb 1 }

camera 
{ location <20,60,-80> up y right x sky <3,10,0> look_at -35*z }

Render a swuare image. Enjoy the dive :)


Peter Popov
ICQ: 15002700


Post a reply to this message

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