-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewshed_no_trees.pov
61 lines (48 loc) · 1.34 KB
/
viewshed_no_trees.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
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
// 10 light positions with follow a road in the southeast corner
#include "light_posits.inc"
/*
Orthographic Camera-- Allows us to avoid geographic distortion
Which means I can just add a world file to my output, e.g. if I render
this at 5000 x 5000 pixels, I have a 1 foot pixel and I can put the following
in a txt file *.pgw, for a png output, or *.tfw for a tiff output):
1
0
0
-1
2224868
630008
*/
camera {
orthographic
// what's the +130 for below? I don't know. Probably
// an error in my tree locations. This is the quick fix.
location <2227368+130, 6000, 627508>
look_at <2227368+130, 0, 627508>
right 5000*x // horizontal size of view
up 5000*y // vertical size of view
}
height_field {
png "dem.png"
water_level 0.0
texture {
pigment {
rgb <1, 1, 1>
}
}
scale <5000, 309, 5000> // Scale to real world size
translate <2224868+130,0+686,625008> // Move to state plane coordinates
}
// Loop though our light positions
#declare LastIndex = dimension_size(lightPosits, 1)-1;
#declare Index = 0;
#while(Index <= LastIndex)
light_source {
0*x
color rgb <2,2,2>
translate lightPosits[Index]
}
#declare Index = Index + 1;
#end