examples
This commit is contained in:
parent
dd83ff2c9e
commit
da58ee9824
8 changed files with 34 additions and 1201 deletions
|
@ -1,17 +0,0 @@
|
|||
eye 0 0 0
|
||||
viewdir 0 0 -1
|
||||
updir 0 1 0
|
||||
hfov 60
|
||||
imsize 512 256
|
||||
bkgcolor 0.1 0.1 0.1
|
||||
light -2 1 0 1 1 1 1
|
||||
mtlcolor 1 0 1 1 1 1 0.1 0.4 0.4 20
|
||||
|
||||
|
||||
v -2 1 -5
|
||||
v -1 -1 -4
|
||||
v 1 -1 -4
|
||||
v 2 1 -6
|
||||
|
||||
f 1 2 3
|
||||
f 1 3 4
|
|
@ -1,21 +0,0 @@
|
|||
eye 0 0 0
|
||||
viewdir 0 0 -1
|
||||
updir 0 1 0
|
||||
hfov 60
|
||||
imsize 512 256
|
||||
bkgcolor 0.1 0.1 0.1
|
||||
light -2 1 0 1 1 1 1
|
||||
mtlcolor 1 0 1 1 1 1 0.1 0.4 0.4 20
|
||||
|
||||
|
||||
v -2 1 -5
|
||||
v -1 -1 -4
|
||||
v 1 -1 -4
|
||||
v 2 1 -6
|
||||
|
||||
vn -2 1 1
|
||||
vn -1 -1 1
|
||||
vn 2 1 1
|
||||
|
||||
f 1//1 2//2 3//3
|
||||
f 1 3 4
|
|
@ -1,10 +0,0 @@
|
|||
eye 2 -6 1
|
||||
viewdir -1 3 -0.5
|
||||
updir 0 0 1
|
||||
hfov 50
|
||||
imsize 512 512
|
||||
bkgcolor 0.5 0.7 0.9
|
||||
light 0 1 -1 0 1 1 1
|
||||
mtlcolor 0 1 0 1 1 1 0.2 0.8 0.1 20
|
||||
texture earthtexture.ppm
|
||||
sphere 0 0 0 2
|
22
assignment-1d/examples/Hw1dSample1.txt
Normal file
22
assignment-1d/examples/Hw1dSample1.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
eye 0 5 0
|
||||
viewdir 0 0 1
|
||||
updir 0 1 0
|
||||
hfov 45
|
||||
imsize 1080 1080
|
||||
bkgcolor 0.5 0.7 0.9 1
|
||||
light 0 -1 0 0 1 1 1
|
||||
mtlcolor 1 1 1 1 1 1 0.2 0.4 0.6 60 0.2 1.5
|
||||
sphere 1.25 8 15 1
|
||||
sphere 0 6 15 1
|
||||
sphere 1.5 4 15 1
|
||||
mtlcolor 1 1 1 1 1 1 0.2 0.4 0.6 60 1 0
|
||||
sphere -1.5 4 15 1
|
||||
|
||||
mtlcolor 1 1 1 1 1 1 0.2 0.8 0 20 1 0
|
||||
v 10 0 5
|
||||
v -10 0 5
|
||||
v -10 0 25
|
||||
v 10 0 25
|
||||
|
||||
f 1 2 3
|
||||
f 1 3 4
|
12
assignment-1d/examples/Hw1dSample2.txt
Normal file
12
assignment-1d/examples/Hw1dSample2.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
eye 0 0 0
|
||||
viewdir 1 0 0
|
||||
updir 0 0 1
|
||||
hfov 60
|
||||
imsize 1080 1080
|
||||
bkgcolor 0.5 0.7 0.9 1
|
||||
light 0 94820000 -28450000 1 0 0 0
|
||||
mtlcolor 1 1 1 1 1 1 0 0.05 0.1 80 1 30
|
||||
sphere 3 0 0 1
|
||||
mtlcolor 0 1 0 1 1 1 1 0 0 1 1 0
|
||||
texture harbor.ppm
|
||||
sphere 0 0 0 100000000
|
File diff suppressed because one or more lines are too long
|
@ -1,27 +0,0 @@
|
|||
eye 0 0 4
|
||||
viewdir 0 0 -1
|
||||
updir 1 1 0
|
||||
hfov 60
|
||||
imsize 640 480
|
||||
|
||||
bkgcolor 0.4 0.4 0.4
|
||||
light -2 1 0 1 1 1 1
|
||||
mtlcolor 1 0.6 1 1 1 1 0.1 0.4 0.4 20
|
||||
|
||||
|
||||
v 0 0 0
|
||||
v 1 0 -1
|
||||
v 0 1 -1
|
||||
v -1 0 -1
|
||||
v 0 -1 -1
|
||||
|
||||
vn 0 0 1
|
||||
vn 1 0 1
|
||||
vn 0 1 1
|
||||
vn -1 0 1
|
||||
vn 0 -1 1
|
||||
|
||||
f 1//1 2//2 3//3
|
||||
f 1//1 3//3 4//4
|
||||
f 1//1 4//4 5//5
|
||||
f 1//1 5//5 2//2
|
|
@ -1,45 +0,0 @@
|
|||
imsize 1024 768
|
||||
eye 0 0 15
|
||||
viewdir 0 0 -1
|
||||
hfov 60
|
||||
updir 0 1 0
|
||||
bkgcolor 0.5 0.5 0.5
|
||||
|
||||
depthcueing 0.5 0.5 0.5 1 0.4 60 0
|
||||
|
||||
light 10 10 -10 1 1 1 1
|
||||
|
||||
mtlcolor 0.5 1 0.5 1 1 1 0.2 1 0.1 5
|
||||
sphere 4.5 4.5 -20 4.5
|
||||
sphere -4.5 -4.5 -20 4.5
|
||||
|
||||
mtlcolor 1 0.5 0.5 1 1 1 0.2 0.8 0 5
|
||||
sphere -10 0 -30 4
|
||||
sphere -20 0 -30 4
|
||||
sphere -30 0 -30 4
|
||||
sphere -40 0 -30 4
|
||||
sphere 0 0 -30 4
|
||||
sphere 10 0 -30 4
|
||||
sphere 20 0 -30 4
|
||||
sphere 30 0 -30 4
|
||||
sphere 40 0 -30 4
|
||||
|
||||
sphere -10 -10 -30 4
|
||||
sphere -20 -10 -30 4
|
||||
sphere -30 -10 -30 4
|
||||
sphere -40 -10 -30 4
|
||||
sphere 0 -10 -30 4
|
||||
sphere 10 -10 -30 4
|
||||
sphere 20 -10 -30 4
|
||||
sphere 30 -10 -30 4
|
||||
sphere 40 -10 -30 4
|
||||
|
||||
sphere -10 10 -30 4
|
||||
sphere -20 10 -30 4
|
||||
sphere -30 10 -30 4
|
||||
sphere -40 10 -30 4
|
||||
sphere 0 10 -30 4
|
||||
sphere 10 10 -30 4
|
||||
sphere 20 10 -30 4
|
||||
sphere 30 10 -30 4
|
||||
sphere 40 10 -30 4
|
Loading…
Reference in a new issue