-
Notifications
You must be signed in to change notification settings - Fork 3
/
exp-PovWaveGraph-AUX.pov
113 lines (95 loc) · 3.14 KB
/
exp-PovWaveGraph-AUX.pov
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
105
106
107
108
109
110
111
112
113
#version 3.7;
#include "colors.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "skies.inc"
global_settings { assumed_gamma 2.2 }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Global Contenxt & Camera
#declare cx = 0; // X Center of rotation
#declare cy = 0; // Y Center of rotation
#declare h = 7; // Height of camera
#declare r = 15; // Distance form center of rotation
camera {
location <cos(clock*2*pi)*r+cx,sin(clock*2*pi)*r+cy,h>
look_at <cx,cy,0>
sky <0,0,1>
up <0,0,1>
right <0,16/9,0> // Use for: 2048x1536...........1600x1200.1440x1080.1024x768.960x720.800x600.640x480.320x240.............
}
light_source { < 0, 0,30> color 0.2*White }
light_source { <-10, 10,20> color 0.2*White }
light_source { < 10,-10,20> color 0.2*White }
light_source { < 10, 10,20> color 0.2*White }
light_source { <-10,-10,20> color 0.2*White }
background { color Black }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Coordinate Axis
#declare axDiam=0.1;
#declare maxx=9;
#declare maxy=9;
#declare maxz=5;
#declare axOrig=<-0,-0,-0>;
#declare coordAxisTex=texture {
pigment { color Gold }
finish {
ambient .50
diffuse 0.05
reflection 0.07
specular 0.9
roughness 0.003
phong 1
phong_size 600
}
}
// X
cylinder { axOrig, axOrig+<maxx,0,0> axDiam texture { coordAxisTex } }
cone {axOrig+<2.5*axDiam+maxx,0,0>, 0.0, axOrig+<maxx,0,0>, 2.0*axDiam texture { coordAxisTex } }
// Y
cylinder { axOrig, axOrig+<0,maxy,0> axDiam texture { coordAxisTex } }
cone {axOrig+<0,2.5*axDiam+maxy,0>, 0.0, axOrig+<0,maxy,0>, 2.0*axDiam texture { coordAxisTex } }
// Z
cylinder { axOrig, axOrig+<0,0,maxz> axDiam texture { coordAxisTex } }
cone {axOrig+<0,0,2.5*axDiam+maxz>, 0.0, axOrig+<0,0,maxz>, 2.0*axDiam texture { coordAxisTex } }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Coordinate Planes
#declare coordPlnTex=texture {
pigment { checker color Gray color Pink }
// finish { ambient .20 }
}
// X
plane { x, -11 texture { coordPlnTex } }
// Y
plane { y, -11 texture { coordPlnTex } }
// Z
plane { z, -2 texture { coordPlnTex } }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Content
#declare triTex=texture {
pigment { color Red }
finish {
ambient 0.50
diffuse 0.05
reflection 0.07
specular 1.9
roughness 0.03
phong 1
phong_size 600
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Inclue a HF called exPovWaveGraph-h.tga with an image map exPovWaveGraph-i.tga
height_field {
tga "exp-PovWaveGraph-OUT-h.tga"
smooth
pigment {
image_map {
tga "exp-PovWaveGraph-OUT-i.tga"
}
rotate <90,0,0>
}
translate <-0.5, -0.5, -0.5>
scale <12, 4, 12>
rotate <90,0,0>
}