-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-h.pov
More file actions
59 lines (53 loc) · 1.59 KB
/
Copy pathtemplate-h.pov
File metadata and controls
59 lines (53 loc) · 1.59 KB
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
#include "math.inc"
#include "finish.inc"
#include "transforms.inc"
background {color rgb 1}
#declare Min_ext = min_extent(m_body);
#declare Max_ext = max_extent(m_body);
#declare X_len = Max_ext.x - Min_ext.x;
#declare Y_len = Max_ext.y - Min_ext.y;
#declare Z_len = Max_ext.z - Min_ext.z;
#declare Radius_offset = abs(max(X_len, Y_len, Z_len) * tan( 45.0 / 2) / 2);
#declare Radius = max(abs((X_len + Radius_offset) / tan( 45.0 / 2)), abs((Y_len + Radius_offset) / tan( 45.0 / 2)), abs((Z_len + Radius_offset) / tan( 45.0 / 2)));
#declare Theta = - pi / 3;
#declare Phi = - pi / 4 + 0;
#declare X_offset = 0;
#declare Y_offset = 0;
#declare Z_offset = 0;
#declare X_pos = Radius * sin(Theta) * cos(Phi) + X_offset;
#declare Y_pos = Radius * sin(Theta) * sin(Phi) + Y_offset;
#declare Z_pos = Radius * cos(Theta) + Z_offset;
#declare X_pos_light = Radius * sin(Theta) * sin(Phi + 9 * pi / 8) + X_offset;
#declare Y_pos_light = Radius * sin(Theta) * cos(Phi + 9 * pi / 8) + Y_offset;
light_source {
<X_pos_light,(Y_pos*0.5)* -1,Z_pos>
rgb 1
parallel
point_at <X_offset,Y_offset,Z_offset>
}
global_settings {
assumed_gamma 2
ambient_light rgb 1
}
camera {
perspective
right x
up y
angle 45.0
location <X_pos,(Y_pos*0.25)* -1, Z_pos>
sky <0, 0, 1>
look_at <X_offset, Y_offset, Z_offset>
}
background { colour rgbt <1,1,1,1> }
object {
m_body
texture {
pigment {color <1,1,1>}
finish { ambient 0.2 diffuse 0.7 }
}
Center_Trans(m_body, x)
Center_Trans(m_body, y)
Center_Trans(m_body, z)
scale <-1,1,1>
Rotate_Around_Trans(<0, 0, 360*clock>, <X_offset, Y_offset, Z_offset>)
}