|
|
Ken wrote:
>
> Greetings !
>
> Could someone please provide me an example of how to create
> a sine wave using a while loop to translate/rotate(?) a sphere.
>
> Example:
>
> -- -- --
> / \ / \ / \
> ___/ \___/ \___/ \___
>
> Appreciate any help and thanks !
>
> --
> Ken Tyler
>
> tyl### [at] pacbellnet
I tried this one in v3.02
-------
camera {
rotate <0,180,0>
location <45,0,-40>
look_at <45,0,0>
angle 60
}
#declare i=0;
#while (i<90)
sphere {0,1
pigment {rgb <1,0,0>}
finish {ambient 1.0}
translate <i,10*sin(i*pi/30),0>}
#declare i = i + 1;
#end;
-----
Marc
--
Marc Schimmler
Post a reply to this message
|
|