-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_scene.txt
34 lines (25 loc) · 1.24 KB
/
sample_scene.txt
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
// Lines starting with "//" are comments. The rest are directives to build the scene.
// At least one camera directive is required. Otherwise you might encounter crashes.
// Color format: (r, g, b) where each component is between 0 (darkest) and 1 (brightest).
// !REQUIRED! camera (eye_origin) (viewplane_origin) (viewplane_width) (viewplane_height)
camera (0, 0, 10) (0, 16, 0) 18 12
// ambient (ambient_color)
ambient (1, 1, 1)
// light (origin) (color) intensity radius
light (2.5, 10, 5) (1, 1, 1) 7 0.2
// material material_name (diffuse_color) (reflection_color) (specular_color) kAmbient kDiffuse kOcclusion kReflection kSpecular shininess
material mat (1, 1, 1) (1, 1, 1) (1, 1, 1) 0.01 1.0 0.02 0.3 1.0 50
// sphere (origin) radius material_name
sphere (-5, 10, 1) 1 mat
sphere (-2.5, 10, 1) 1 mat
sphere (0, 15, 1) 1 mat
sphere (4.5, 13.5, 1) 1 mat
sphere (5, 10, 1) 1 mat
// plane (origin) (normal_unit_vector) material_name
plane (0, 0, 0) (0, 0, 1) mat
// triangle (point0) (point1) (point2) material_name
triangle (0.8, 14, 3) (1.5, 13, 0) (3, 14, 1.5) mat
// qualityparams max_reflections softlight_quality occlusion_quality
qualityparams 5 22 100
// render width height outfile
render 900 600 sample_scene.png