|
|
Source Code:
// Persistence of Vision Ray Tracer Scene Description File
// File: .pov
// Vers: 3.5
// Desc:
// Date:
// Auth:
// place all settings of globally influenced features here
global_settings {
ambient_light rgb 0
}
sky_sphere {
pigment {
gradient y
color_map { [0.0 color rgb .85] [1.0 color blue 0.95] }
}
}
camera {
location <0, 0, -5>
look_at <0, 0, 0>
right 4/3*x // aspect
}
#declare MediaFactor = 0.00125;
#declare InnerRadius=1;
#declare OuterRadius=InnerRadius+2;
#declare OuterTexture=texture {
pigment {
color rgb 0
}
finish {
ambient 0
diffuse 0.09
reflection 0.04
}
}
#declare InnerTexture=texture {
pigment {
color rgb 1
}
finish {
ambient 0
diffuse 0.78
reflection 0.22
}
}
light_source { 0*x color rgb <1,1,1>*2 translate <0, 40, -40> }
#declare Source = light_source {
0
color rgb <1,1,1>*10
cylinder
radius degrees(atan2(InnerRadius,OuterRadius)*1.25)
falloff degrees(atan2(InnerRadius,OuterRadius)*1.25)
tightness 100
point_at -1*x
}
difference {
union {
light_source{Source}
cylinder {
-x, 0*x, 1.1
pigment {color rgb <0.5,0.5,1>}
}
sphere {
0, 1.1
pigment {color rgb <0.5,1,0.5>}
}
}
sphere {
0, 1.1
pigment {color rgb 1}
}
cylinder {
-2*x,0.25*x,.5
pigment {color rgb <1,0.5,0.5>}
}
rotate -40*y
}
sphere {
0,100
material {
texture {
pigment {rgbf 1}
}
interior {
ior 1
media {
scattering {
1, //1-5
color rgb 1*MediaFactor
}
}
}
}
hollow
}
Post a reply to this message
Attachments:
Download 'POV-Ray 3.5 Media Sphere.png' (3 KB)
Download 'POV-Ray 3.1g Media Sphere.png' (51 KB)
Download 'POV-Ray 3.5 No Media Sphere.png' (28 KB)
Download 'POV-Ray 3.1g No Media Sphere.png' (29 KB)
Preview of image 'POV-Ray 3.5 Media Sphere.png'
Preview of image 'POV-Ray 3.1g Media Sphere.png'
Preview of image 'POV-Ray 3.5 No Media Sphere.png'
Preview of image 'POV-Ray 3.1g No Media Sphere.png'
|
|