-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
104 lines (85 loc) · 2.74 KB
/
config.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Configuration file - standing
string:
# Number of segments in the string.
num_components: 100
# Temporal frequency.
temporal_freq_hz: 0.6
# Spatial frequency.
spatial_freq_waves_per_unit: 1.5
# Amplitude of waves (before model transformation).
amplitude: 1.0
polygon:
# Cross-section polygon of the string, as (p,q).
component_pqs:
- [0.0, 0.0]
- [1.0, 0.0]
- [1.0, 1.0]
- [0.0, 1.0]
# [(0.0, 0.0), (1.0, 0.0), (1.0, 0.4), (1.5, 0.5), (1.0, 0.6), (1.0, 1.0), (0.0, 1.0)];
# P vector for cross-section.
pv: [ 0.0, 0.2, 0.0 ]
# Q vector for cross-section.
qv: [ 0.0, 0.0, -2.5 ]
scene:
background:
# Background colour.
colour: [ 0.1, 0.1, 0.3, 1.0]
strings:
# For each string:
# String colour.
# String position.
# String scale (non-uniform).
# Initially x goes from -0.5 to 0.5, y from +/-AMPLITUDE, z small; plus PQ. This allows those
# to be adjusted.
# Two waves that are summed to make up this string.
# Factor to apply to spatial frequency of this wave.
# (setting this to 1.0 makes it move left, -1.0 moves right)
# Offset to apply to spatial origin of this wave (positive moves wave right).
# (setting this to -0.5 corresponds to a reflection on left edge)
# Amplitude factor to apply to this wave.
# (setting this to 1.0 is an open reflection, -1.0 is a closed reflection)
- colour: [ 1.0, 0.0, 0.0, 1.0 ]
pos: [ 0.0, 0.8, 0.0 ]
scale: [ 4.0, 0.2, 1.0 ]
waves:
- spatial_freq_factor: 1.0
spatial_offset: -0.5
amplitude: 1.0
- spatial_freq_factor: 0.0
spatial_offset: 0.0
amplitude: 0.0
- colour: [ 0.0, 1.0, 0.0, 1.0 ]
pos: [ 0.0, 0, 0.0 ]
scale: [ 4.0, 0.2, 1.0 ]
waves:
- spatial_freq_factor: -1.0
spatial_offset: -0.5
amplitude: -1.0
- spatial_freq_factor: 0.0
spatial_offset: 0.0
amplitude: 0.0
- colour: [ 1.0, 1.0, 0.0, 1.0 ]
pos: [0.0, -0.8, 0.0]
scale: [4.0, 0.2, 1.0]
waves:
- spatial_freq_factor: 1.0
spatial_offset: -0.5
amplitude: 1.0
- spatial_freq_factor: -1.0
spatial_offset: -0.5
amplitude: -1.0
light:
# Light source location (actually this sets the direction only: from here toward origin).
pos: [-10.0, 10.0, 20.0]
camera:
# Location of the (perspective) camera.
pos: [0.0, 0.15, 10.0]
# Field of view of camera.
fov_deg: 15.0
# Near distance (for depth calculations).
near: 1.0
# Far distance (for depth calculations).
far: 20.0
console:
# Reporting interval (for console reporting of FPS etc).
report_interval_sec: 1.0