|
![](/i/fill.gif) |
//use mc-pov
global_settings {
assumed_gamma 1.35
}
camera {
location <0,15,-40>
look_at <0,4,0>
right x*image_width/image_height
angle 35
rotate y*-33
}
light_source {
<-50,80,-90>
color rgb 1.5
fade_distance 100 fade_power 7.5
rotate y*-45/2
}
sphere {
0,1
pigment {
image_map {
png "sky01.png"
map_type 1
interpolate 2
}
}
finish {
ambient 0 diffuse 1
}
scale 225
}
#declare Balls=true;
#declare Plane=true;
#declare F=seed(213846);
#if (Balls)
#declare Y=-5;
#while (Y<5)
#declare X=-5;
#while (X<5)
#declare Z=-5;
#while (Z<5)
sphere {
0,0.5
material {
texture {
pigment {
color rgb 0
}
finish {
ambient 0
diffuse 0
specular 1.25
roughness 0.01
reflection 1
conserve_energy
montecarlo {
mc_reflect {
1 1 1 500
}
}
}
normal {
//agate .1
granite 1/20
scale .5
translate <rand(F),rand(F),rand(F)>
}
}
}
translate <X,Y,Z>
translate y*5.5
}
#declare Z=Z+1;
#end
#declare X=X+1;
#end
#declare Y=Y+1;
#end
#end
#if (Plane)
#declare G=transform {
scale <0.5,0.5,8>/2
}
plane {
y,0
material {
texture {
pigment {
granite color_map {
[0 color rgb 0]
[1 color rgb .01]
}
turbulence 1 transform {
G
}
}
finish {
ambient 0 diffuse 1 reflection {
0,1
}
montecarlo {
mc_reflect {
1 1 1 1000
}
}
}
normal {
granite 1 turbulence 1 transform {
G
}
}
}
}
}
Post a reply to this message
Attachments:
Download 'ballgrid.prev.png' (805 KB)
Preview of image 'ballgrid.prev.png'
![ballgrid.prev.png](/povray.text.scene-files/attachment/%3Cweb.4d5341167a17ae13a3bfeb720%40news.povray.org%3E/ballgrid.prev.png?ttop=441451&toff=150&preview=1)
|
![](/i/fill.gif) |