1// cracknet_bumptest.pov, from Geomorph
2// Patrice St-Gelais, 2006-11-15
3
4// Use with that camera (settings in the preview dialog, in that order):
5// Rotate Y: 0
6// Rotate X: 10
7// Distance Z: 1.00
8// Distance Y (height): 0.05
9// Distance X: 0.0
10// Angle: 60
11
12#include "colors.inc"	// Standard Color definitions
13#include "textures.inc"	// Standard Texture definitions
14#include "skies.inc"
15
16#declare mud_color = <0.9,0.8,0.6>; // for maprock_redmud.inc, called in geomorph.inc
17// #declare mud_color = <0.9,0.7,0.7>;
18#declare rock_color = mud_color;
19#declare sand_color = rock_color;
20#declare rock_turbulence = 0.2;
21#declare rock_normal = 0.75;
22#declare mud_strength = 300; // 20 ... 500 - ex. try 300 for an edge raising of 25
23// #declare mud_strength = 70; // 20 ... 500 - ex. try 300 for an edge raising of 25
24#declare global_ambient = 0.2;
25
26#include "geomorph.inc"
27
28#declare light=<1,0.97,0.94>;
29
30#declare sun= sphere {<0,1,0>,100
31         pigment{rgb 3*light}
32         finish {ambient 1}
33         }
34
35global_settings {ambient_light light}
36
37#declare maincamera =
38camera
39{
40	location	<0,  0, -0.1>	// <X Y Z>
41	angle 	gl_angle
42	up		y              	// which way is +up <X Y Z>
43	right		aspect_ratio*x         	// which way is +right <X Y Z> and aspect ratio
44	look_at	<0, 0, 0> 	// point center of view at this point <X Y Z>
45}
46
47
48sky_sphere {
49 pigment {
50      gradient y
51      color_map {
52        [0 color rgb <0.8,0.8,1.0>]
53        [0.15 color rgb <0.5,0.6,1.0>]
54        [0.3 color <0.2,0.4,1.0>]
55        [1 color <0.2,0.4,1.0>]
56      }
57    }
58  }
59
60// Clouds - sky_sphere is the background
61
62plane { y,1000
63    texture {
64
65        pigment {
66                granite
67                turbulence 0.5
68    	    octaves 6
69 	    omega 0.1
70	    lambda 2
71                color_map {
72                [0.6 rgbt <0,0,0,1>]
73                [1.0 rgb 1]
74                }
75        }
76	translate z*0.1
77        finish {ambient 1}
78        scale 18000
79        rotate -25*y
80    }
81    no_shadow
82    hollow
83}
84
85#declare Sun =
86light_source
87{
88  0 // light's position (translated below)
89  color rgb light  // light's color
90  looks_like {sun}
91}
92
93#declare hf_map =
94normal {
95	bump_map
96		{
97		png main_terrain
98		map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
99		interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized distance
100		bump_size mud_strength // 0...3
101		} // bump_map
102		rotate <90,0,0>
103		scale <1,1,1>
104	}
105
106#declare Fog =
107fog
108{
109  fog_type   2
110  distance 3
111  color      rgbt <0.7,0.7,0.7,0.01 >
112  fog_offset 0.01
113  fog_alt 0.1
114  turbulence 0.8
115}
116
117#declare norm_hf =
118	normal {
119		average
120		normal_map {
121		[1.0 hf_map]
122		[0.2 granite 0.2 scale <0.05,0.1,0.05>]
123		}
124		rotate x*-90
125	}
126
127#declare mud =
128texture {
129
130	image_pattern {png main_terrain}
131	texture_map {
132	[0 pigment {color 0.05*mud_color} normal {norm_hf} finish {ambient global_ambient}]
133	[0.0001 pigment {color mud_color} normal {norm_hf} finish {ambient global_ambient}]
134	[1 pigment {color mud_color} normal {norm_hf} finish {ambient global_ambient}]
135	}
136	rotate x*90
137  } // texture
138
139/**********************************************************************************************/
140
141plane {y,0 texture {mud rotate 0*y translate <-0.3,0,-0.5> scale <0.5,1,0.5> } }
142
143fog {Fog}
144
145light_source {Sun  translate <1000,5000,-8000>   rotate y*rot_y}
146
147camera {maincamera
148		translate <0+tr_x,0.05+tr_y,tr_z>
149		rotate <rot_x,0+rot_y,0+rot_z> }
150