Sei sulla pagina 1di 19




    "
 !$#&% ')(*!+ , -. +
/1032465587:9; <:;>=@?A5BDC
EGFIHKJ ;MLAL EONH LAL J ;P?RQ JTS 7
U3V H BW?X:YTZ[6Y\Y\]

^`_.acbedfagbTh
i jlk+monpkrqtsvuxwyntzT{W|cwek~}Trs:In

 T*c w .......
k s:


+ xA*,g.......
q|ns+" unt}z

++IK+ .........
,.........
~1K*K1*.......
,c........
p:c, ........
, ........
+,@+,x*O:*: 3:x*O+O*..
 :........K
 :*.......,
p , :)g ...,
>
:* .......,
tx,AR.........p
p+1*1p..........p
ru6s:|
i:
 1:*..........K

eG v  
,  

+ :, ::*
Wp  .......K

_  be_ d!#" b%$'&h("_*),+ - dfagb



:v** .vx,g v s: 0/ ,
* \K, DO*, *, 1.v g,\
s: f)I ,f,#2 g3A~4 3+D3
* ,O* ,*.I+ fxf ,g,
/.,3xg,c,** :,c$A,c , w
,K,c  6 5x /+*  ,,
A,,8f*c*x, , * f* w vf8 7I
\ rv , * IK+.,"f"c8 7II1
*,3x,


9;:<9

+3

=>?A@ BDCE>FHG FH@ IKJLMJN?POQCR STB

w c* , ,$x,,gg,* ,>*" ,


*f*1: : DU/3f*Oy*r, ,
*, 1.v *ef K\c*l :
V p 16*c1D *c w vf** +x@f@Dtf. 
*,X W
Z Y[D[]\_^
:1 Dfl,v` 
a+ Dff*31 bvx,*,`.
 Y[c[ed
:1 A*+*,,*` 
Z Y[D[gfihj6k
*
a+ Dff*3*` .,` l ,,*
Z Y[D[eminXoqpik **
Df3O**r 
f*ts:x@1WDuvxwK1ZY[D[$cvxwK1xfhj:yK,x@1WDu{zx
| 1 ~}:x1 HZYi[c[z, {zx A p16 Ax6 *`~ {zx~ 1.1u:H{zx
vxwK1Gzx | *1
i1 H3xfhj:{zx  W p16 Ax *`~)zx }x1.1u:
H{ zx) vxwK1
/g:g,,
*", *,)Z Yi[c[r
,)*1x fihjv
Df ,)I.*)1 * 1 $+
,x,1*),i *f,x fhjv ,i 1 ,Z Yi[c[6 w ,,tf
*8f1*, A,8* ,*8 Ki 1,:Kp,
*fv$Z Y[D[)*Kg*cv x fhj:6
_#dfa
A  3, I, ,.*

5W* Z Yi[c[* x fhj:


:<9

SOS >BNFH@CR STBE`?6OQRBE<:E: :

 .vf ** 
Abv* ,g*x f8f,@
Kf l\ +1
8,\ ++ f3 x,+ ,
A *r1 a,f .vf** + ,* A\
K,c ,x,, +` V t ,8 , ,g*Kf3:1
.  K*,,*,1*xI  A,*r,* :1 fxp:
 3**,I1 3* lK*g,*,:10A: A,
*K K3Ic,4 1,,K@8 ,T*v O,
+,1* x,3 K
A8 ., s: \,:1* ,K K,
*1. O* + A, }+x.3{ zxfp11D   /O*,* ,
,"$Kf,$ / ! s y.\,"
, .vp:f  1*: !M fA*,) ,,\
,x*xfK,g  x,8,fc,gfl,3,q sO y

hbod!-

 b%)6$

 *f,   1f,T:1* *f,


,x* + p: )l :K)\.
*0 sG,y :*x* I**  **)
V p 1 :1*D Wx,,*x xKg
cp ,1 P1vxwK1D1u:1zx1 *f*.lK, ,,f+
Tkxn .,  *g :1 We*1c, ,*,x
:1*
:<9

`6,i%

g:*K, T|n l $ .,c ,1.r


fl++IK+6
+\K+ ,.*
,lxW x,K3K6*x
D: *, 1f **
p: ft
s fp
y
T K)" fp p, *r 1 j+c hP k ,
++\p+6 TcO*t fpO  + Dji[6k,,
>,v*,xg1 *P fp
Ax3
s y<
*\,**Kfl* fp /K, ff~*,
fxg v1` z: fp
Df>,
bv* *c 1 vg
, s,~ y:,,
s` .y*
T p1*,*f fptcxK *g
g,>I, "
1\k*$++\K+\r8$P 7
,,t$
k
 *
/fK,$ .),tf"
axc+ /f
 Kc,` .fp6,f:1*,.3*g. ,
create
destroy

gemwin

5,DW*,x

,Of,, *
 K,$,$@If$*, ,K,+)* 
fpP/x,cO*t.*  fp f 8

7 , *,
/, , x,. ,* ftx,$K$
vr *,,*$ +\K+65x*,P,>x*
*x K)*** ,+vy\i(Q~pQ~oqck1
K,T*
,Z6x,rpcQEk18, ,*1[YcYi,
dqk1 ,e* fp6
** ,)xK,g)*,, ,
*ft  K,, D cs k6qts ,x,K* fp 
K,, , p,l1+* ft f*3,
,*f,*x
,  *  ftP!
 i } v
c*fp ,x,**f #
:p1
/v, ,~*fxK 
}D{p1*1, +e,)K,K,e3Z YrDDc~j+:
\ kA\Dg**0
sfp y<1 ,*xg*,8*@
 , I,,v6, : vvD *,
l , I,*c*. fpM,,
W,lKKD
:  3K,l*,D : Z YrDDc~j+:
k1
fpfP,

fp,\  l*Df* *
* : ,IfO,f, r cK, ,
, +\K+v
 qA` xf*1l,\f7I1*, fp
,*  e 8  ftf
DK,g,l f ,g, \ fpfg>
.v )I*.  ,
,+ KI,/HAA p, .
c*gK :  *c,,pf*1K
enpTqts"T|K{A}

/e

{IASqR ST?AL!

 P+\K* fp fg*3,.+Qchv


*,:1xf,1*g, :* g* 1:K
, :f* , p, ,+*,
:1* ,.* sG,< ygly QhD$p'* :
xKrI1*y*+D c h:6 *,Oy*Z QhD \*
+D D hv f,*,O:1 * .6\f* axx,exT,+` 16+
* 8q|1n v *,,f*. *4 1
,g:
A,*D*, pf 2, *,
, 4 +Q c hv*, ,  Kv*,
1  1W  
O g , .:l,*,,,*f *::)) v

1@1{1vxwK10
{{{ 4Q*DW"~7@ f Kf
* c fp ,)i 31 1 p1x  | *1
Z W p1ci1A
D1 v xK,
D c  D
TO,` .>,* v
D*"c*g 7@* 1 K,
:1,f,f D1*`  +x ,f*,3. K
SOBUL>?

BQ;SOQR FH@I

 r3,r ,:1*), x,* , p1f,


s *yx y $, , vX.*x *l*sGp
O, x y.,8**K  1hj+6@*ff;D 
*Kc1 bvx,
create

gemhead

destroy

0
square

gemwin

5W
*Kfb:,

 $fT,@** 4hjx* axOg


D*
 OKP l ,lK, Il ,*1* D
,*1**xK,"\1D"1hj+$g,, K ,
A,3x,,  vv\ g*,)1KP/*,*
s y*  t,l+c
a,K .M1hj+^ \p6

 , , .cZjh n 6Qj6h+i pEp \


4cf pp 64:jinoqpQp
q cp~t6
Z6 (  p

nDQDq~ cpmcmp

ncQ Dt6
4~+K+j QnXoqpQp
~rpcE 1c[tQnoqpp
~pcQE 1cxj+KQno%pQp
x
:

3H >FH@ I?  ST

/g.ax*)$xK3,+g.: \\8f,
>,
 x.f , T , O**),x*.,K,
! xW*~ ,:1*x,pM *c\px

*,,+*, ,:1* ,K cs k6qts 


 \K,e*
6 ,*,fc**,,
 : ) * x,)$ *3** 5x
O,,T*4[cc[j: :f*
*s*3., rf
 y*N v*x*Kf"* ,f~I,)f\*
,,)1 [Dc[jv: ,T*
 "xKc* *c," vD **M1[Dc[jv",1*,
,K>*,,)I1 , ,>\ 
v :*,e,*W$1[cD[j#
rpg$
rpcpmp /,"
,$,*6 \ \e\,IK* sf yfTx,*,
*,KcfOT,* ,, W,. * I 
f,1 c[cc[jv\

" rlrl

create

gemhead

0 1 0

destroy
1

0.5 0.5 0.5


0

green
grey

color 1 1 0

gemwin
cube

5W
,c
,*x,$1[cD[j&%$')(+

f ,pf l*,D,
   * ++*x
:-,

/.FH@I?A>  @ L

 M  +Dxchv633pfM* $*


, x,K\{,xxef*$,
*x D
 c**
,*,+ D** v8D
 x `  3* **cp f *
,, , *,"g$,*g,x*, *c  
sGK*~ y* ., *xg,  K * fp
,3*D+,)* s  Q y,. , :,g,
 K, * c,f* K,>p3, v
D*
x * v`  f DjQhE h3 DjQhE h& 0&1326

Z DjQh
ch) 0 132 4
nmD)5 4
n~mQ76 
n~mD 8 *.,,,*, **,
***y*$*">+:9 D 1 *>`1 DD
Ip *  ,<
;UD D T3*r1  ,,
*** , c\f:gv\ *g*gf
Z DjQhch>= n3 Q
>?p 5>?p@ 6A?Ep 8t *
 *,P,CB ,$D,E
K,:1
*g1 **** v ,K,3 *1*,
, **,_Dr1* D *,, *,
A ` 1

create

gemhead

0.91

destroy
1

translate 0 2 1 0

gemwin

cube

5,DW***,
:GF

O3>@F<@IK?A>  @ L

)cK,lI,l,3

, v

 j[~h)0&132H
iI5J
r36K
i48 ,**qa ,"*L9 +
v *MB x*$l + *ND ax,,l*O; + v
 E

 j[~h) 0&132 noq cmP?p 5>?p@ 6A?Ep 8t ,*** g, ~}+x ,


* axl*1* ,1*,CB,$D,Ee

:RQ

<CE? CEA>L FH@ ?POQS B@SBcOQSq


OSq

.BE:T3A>3HL

C6>LF<@?POS

B SBM

Z DjQh
ch
, DjQh, h) 0&132   j[~h,Zj[h)0 132Q , 
*gK, p~p1,\,t11* *x *0 p,\,p
G1g6 W, ,*,* +,6:xf: *, ,K
*,,**f+*:l K,*,
` .,rW, , ,*R,G **D *, V U svq Wy{W k6qpnpux\n

create

gemhead

46

destroy
0

rotateXYZ 0 45 10
draw line

gemwin
sphere

5,W
,*c

ux \[ s \,xx *,* a, * ,,


/v tox@* f\ \$*
,**l,K , O+.a+ */ *g*,OD*
,  D ,**xa O
,O ,8*,*c1 px* ,
XZY

,, f@ 3gI*f ,*g,,*,, T


A *)axc,)  ax

IxK:8IK,x, f sG1O:xK


:K,8:x:O*<y*5x*,e,*x, ,gO,3
,] 9+ .:$O**gDO , gx ,f *yp:
  f1*,"*  90 , , .p .,," , .
pg* ,K
ax,3*3*) 90

create
gemhead

destroy
1

151

translateXYZ 2 2 0

gemhead

rotateXYZ

gemwin

5QW*

rotateXYZ

translateXYZ 2 2 0

square 0.5

square 0.5

*,,T**D *, 

5fW W,,
\D*,
*c.x ,**,,K
pf
+A , *R,G\DW,, +.lx,*
A i

:G^

_`ZOFJZ<S6GacSTCrOB

 K *  *.OK ,*,D,*A.,
j[~hQg *OK, ,:1xg#sG\py *,D 
f~\.7@$lb:1*x,NsOIpy**,OD*f
I 7I1*l3
gemhead

rotateXYZ 0 0 0

create

color 0 0 1

destroy
1

rotate cone
and cube

31

cone
translateXYZ 2 2.5 0

gemwin

rotateXYZ

rotate only
the cube

22

cube 0.5

5W*

, 3
 ,33,v,K\,ff,pf , 
c:*x,g*g\ ,,,$
, *x,:*.Ip l~p :,r*)Is ,<y
, :*2 8.,, ax, f,T, WT,)p
x,ax,cp@
K

:Gd

F<@L S J0ST@ LST@O6GacSTCOQB

+*

,  v *g,v@  ,eK,3,
,
 , , * **,OKfe,f*, M
f* ,* +Qchv\  :**x3,sGHyUDIp87I
+DDhvvIc,*Df3K,),*Daxp
create

gemhead

destroy
1

43

gemhead

46

translateXYZ 2 0 0

translateXYZ 2 1 0

rotateXYZ 0 0 0

rotateXYZ 0 0 0

color 0 0 1

color 1 0 0

sphere 1

cube 1

gemwin

5pW

f3* 

:<9g

J ?6>QO$hS

:<9A9

i>SOcOFHjSFH@IOQRS ODJk!O

+*,

FH@ L S J0ST@ LST@O6GacSTCOQBFH@?BDFH@ I HSIASq#<FHBO

, ,$ ,v
p, :1*56,
., ,*$*:Tcv \+,\, ,vf , t,
* f \: Df*, ,O*8., fK,\**Dg*:c ,
,*c\,g*3K ,l*,  *8c f
 vc v ,O* ,),l*,:1$1,hjQhi[j:6
v*c\p *"1  hjQhi[jv , D ,  *
,l1 , hjQhi[j:v A axt 
,gxK, g*f,:.bv
I1 >@7 ., r:8

,. ,gK,,

1*l , 
,v,8
T.,,e*, xK  , *. 
axOK
i[j3lQ+tQ: ) ,ax*A, p K D8.,r
:T,K, *
:
, *Ri[ji$lQ+D:6
,

199

gemhead
rotateXYZ

create

colorRGB 0 1 0

destroy

square 0.3

separator

gemwin

30

translateXYZ 2 0 0
rotateXYZ 0 0 0
draw line

color 0 0 1
sphere 1

5gW

separator
24

translateXYZ 3 1 0
rotateXYZ 0 0 0
color 1 0 0
cube 1

, flg

1 +tD+  3*x K, I yfl+ *,


,l,**
5x

*,  8.K,lZ+fc+K\k,v ,


f3f Kc @* ** ,,
ntTqT{Wek\fm+kn ntzes [ {DIz\n 8*   *
,v /K,$,xK *D7; , ,\
c +D\K \kNA +D\K]k1 *$+\K6o.
*xf*,vfxK+3,$ ,I
f ,` .6
:<9

pPqZrtsvufwNrIxyq

 o*x, , , ** V t ,,$,v


*  K*,,,)D,f ,

create
gemhead

destroy
1

lighting 0

(a)

lighting 1

(b)

gemhead

rotate 0 1 1 1

world_light

colorRGB 0 1 0

gemwin

sphere 2

A

Ar

58tQW
gcWNA

40

TAi

gemhead

42

252

create
translateXYZ

destroy
1

rotateXYZ

gemhead
lighting 1

world_light

gemwin

metro 50

colorRGB 0 1 0

sphere 1.5

t f f

+ 1

% 100

* 0.01

translateXYZ 1 0 0

tabread array1
color 1 0 0
array1

rotateXYZ 90 0 0
scaleXYZ 0.2 0.2 1
cylinder 1.5

5gpW,

*.* )

0.538

z|{}~@rt}

:<9q

31+W
W

+,g,O:*f*$Dpf ,

+


v

~x

 ,*,*sG:: +.vy<68, `l+,`lO, ,


*A  **f f ,*,O 41

dfh

8 K , x,)1,,:1* x)K,\  ,'s,


< y ), Dce; #l/H5P5 8p: ,
, +)A,*) +1 *,",, :1O,O
f* s~ @ $lyDp 3xf\f*Dx,
- I $lKih+ 8* O ,, ,%/f:,  * "
"K," )*axx g,.*,ax.,,K v
 [_=qrpminoqpikg*:

create
destroy

gemhead
1

gemwin

pix_image pics/fractal.JPG
pix_draw

5,W
*Kf,)


 p*$ K,>,c. I 3lcjQh,+6 f f
,g3,Pgx, 83v") ft /*
, *x*cf fp8 ,\  Kg 1*
-I $lDjQh,:  3  O*Mx, ,** 
K,Df .,.,p *, ,  z: u~zDcr,
/ IO*fK pg*K ,, **v*K
fv
f ),
:<9

OS,O3>FH@ I

, x  K@T 6  K*,
 ,g, *K
#
,  D8.,fI $lcjQh,: /K,), ,}+*
*. 3K,*.,81:*c, * , *.
- I $l)Qj lD  :* :*, fK, *x ,
,)**.O,,* ,!,*f*Kf
* , 1:* * , TfvxK *81:*

kxnprs  1D I$l)cQj+, I 3l)cQj+c^f"


*,
gemhead

create
destroy

rotateXYZ 25 25 0
1

pix_image pics/fractal.JPG

gemwin
pix_texture

cube
translateXYZ 1 1 1
cube

5tQW1:*,l,
Dx

A,)  ,
6  O**1:*f+*U
f , p g,A.,+tt, +` /, *Or  sf
Qy ,), r*1: f* I $l)j+,ff,v*
A8., 1:*, 1
Tp,* * I 3l) cQj+c ^ :\f pf
,f,,38 D ., +`  *c\*1:) 

RI]jyN4+CI- C ]4]c7t I]VNC


R-C -7bGV NfCIf+-jNI N4

Pk:

,:<9

 H?A>VSBcOQSq

v< $`

X!:9q

create
destroy

metro 50
0

gemhead
lighting 1

t b b b b

world_light

gemwin

+ 2

% 360

252

Sun
gemhead

Mercury
gemhead

% 360

Venus
69

color 1 1 0
sphere

+ 1

translateXYZ 1 0 0
color 0.8 0.4 0

Earth
gemhead

gemhead

320

rotateXYZ
rotateXYZ

% 360

translateXYZ 2 0 0
color 0 0.7 0.5

rotateXYZ
translateXYZ 3 0 0
color 0 0 1
sphere 0.3

sphere 0.2

sphere 0.1

i
Moon

rotateXYZ
translateXYZ 0.5 0 0
color 0.5 0.5 1
sphere 0.1

133

+ 4

% 360