-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene1.test
53 lines (38 loc) · 1.14 KB
/
scene1.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Test Scene 1
# A simple quad viewed from different camera positions
size 640 480
#size 500 500
# Now specify the camera. This is what you should implement.
# This file has 4 camera positions. Render your scene for all 4.
camera 0 0 7 0 0 0 0 1 0 30
#camera 0 -3 3 0 0 0 0 1 0 30
#camera -4 0 1 0 0 1 0 0 1 45
#camera -4 -4 4 1 0 0 0 1 0 30
#camera 0 0 2 0 0 0 0 1 0 30
# lighting/material definitions
# for initial testing, you should get the geometry right
# you may want to use dummy (constant) shading, ignoring these lines
#These are temporarily commented out
ambient .1 .1 .1
#directional 0 0 1 .5 .5 .5
point 4 0 4 .5 .5 .5
#point -3 3 6 0.5 0.5 0.5
#point 2 2 3 .5 .5 .5
diffuse 1 0 0
specular .75 .75 .75
shininess 64
sphere 0 0 0 1
sphere 1.2 0 1.2 0.2
#sphere 0.5 -0.5 2 0.5
# Now specify the geometry
# Again, for initial testing, maybe you want to implement a dummy
# ray-plane intersection routine, instead of reading this fully.
# Though it's probably simpler you just implement this, for later
# parts of the assignment.
#maxverts 4
#vertex -1 -1 0
#vertex +1 -1 0
#vertex +1 +1 0
#vertex -1 +1 0
#tri 0 1 2
#tri 0 2 3