POV-Ray : Newsgroups : povray.general : Help:how to build underwater images : Re: Help:how to build underwater images Server Time
5 May 2024 13:55:40 EDT (-0400)
  Re: Help:how to build underwater images  
From: Lsq
Date: 24 Mar 2016 23:30:00
Message: <web.56f4b0877cad17313fdf54d50@news.povray.org>
"Koppi" <jak### [at] gmailcom> wrote:
> 'Rays' by Jeff Reifel - http://paulbourke.net/exhibition/scc5/final.html
Hi Koppi,I have a question about Jeff Reifel's code and the code is following:
// Entry code: mpszaw
// Name      : Jeff Reifel
// Frame rate: 10
#local C=clock*pi;
#macro
 B(N,F)        // blob elements for wings and tail
 sphere{0,F/7,1
 scale 1-pow(I.5)
 translate-I*F*x
 rotate y*N*90
 rotate-N*x*pow(5,I)*10*sin(I*2-C*8+i) // shapes and flaps wings
 scale.2+x*.8
 translate-x}
 #end
 #local i=C;
 #while(i<2*pi+C) // spaces and moves rays
 #local I=0;
 blob{
 #while(I<1)
 B(1,7)  // wing
 B(-1,7) //wing
 B(0,3)  // tail
 #local I=I+.01;
 #end
 rotate<-90,cos(i*3)*-45,i*pi*36> //orients ray on knot
 translate<sin(i)+2*sin(2*i),5+cos(i)-2*cos(2*i),3*sin(3*i)+7>*2   //knot
 rotate x*37
 pigment{slope y}}
 #local i=i+pi/8;
 #end
 light_source{<0,60,99> 1 spotlight}
 media{
 intervals 6
 scattering{
 2
 rgb<0.1,0.2,1>/99}
 }


question:I cannot find the keyword camera{}in the source code,can you tell me
which codes act as the function of camera? Thanks!


Post a reply to this message

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