Made some minor changes for POVray 3.7 and added to the repository.
The scene files were originally created at or before Jun 12 2011.
This commit is contained in:
parent
20a544bebe
commit
a88e02d183
|
@ -0,0 +1,2 @@
|
||||||
|
test-wuerfeluhr.png: test-wuerfeluhr.pov wuerfeluhr.pov
|
||||||
|
povray -I$< +FN
|
|
@ -0,0 +1,5 @@
|
||||||
|
+A
|
||||||
|
+MB5
|
||||||
|
+fp +w800 +h600 +d1
|
||||||
|
display_gamma = 2.2
|
||||||
|
Library_Path=/usr/share/povray-3.7/include
|
|
@ -0,0 +1,66 @@
|
||||||
|
#include "colors.inc"
|
||||||
|
|
||||||
|
#declare stunde = 10;
|
||||||
|
#declare minute = 16;
|
||||||
|
|
||||||
|
#include "wuerfeluhr.pov"
|
||||||
|
|
||||||
|
global_settings {
|
||||||
|
assumed_gamma 1.0
|
||||||
|
ambient_light rgb<0.2, 0.2, 0.2>
|
||||||
|
radiosity {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
background { color rgb<0.2, 0.4, 0.8> }
|
||||||
|
light_source {
|
||||||
|
<-200, 200, -200>
|
||||||
|
color 0.1
|
||||||
|
}
|
||||||
|
camera {
|
||||||
|
location <5, 3, 3>
|
||||||
|
look_at <0, 0, 0>
|
||||||
|
angle 45
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
wuerfeluhr
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (0)
|
||||||
|
cylinder {
|
||||||
|
<-2, 0, 0>, <2, 0, 0>, 0.01
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <1, 0, 0>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cylinder {
|
||||||
|
<0, -2, 0>, <0, 2, 0>, 0.01
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0, 1, 0>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cylinder {
|
||||||
|
<0, 0, -2>, <0, 0, 2>, 0.01
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0, 0, 1>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
plane {
|
||||||
|
<0, 1, 0>, -2
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
checker
|
||||||
|
color 1
|
||||||
|
color 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,219 @@
|
||||||
|
#include "metals.inc"
|
||||||
|
|
||||||
|
// Distanz der Schrägflächen vom Mittelpunkt
|
||||||
|
#declare d = sqrt(pow(((1 + 2 * sqrt(0.5)) / 3), 2) * 3);
|
||||||
|
|
||||||
|
#declare oktaeder =
|
||||||
|
intersection {
|
||||||
|
plane {
|
||||||
|
<1, 1, 1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<1, 1, -1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<1, -1, 1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<1, -1, -1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<-1, 1, 1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<-1, 1, -1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<-1, -1, 1>, d
|
||||||
|
}
|
||||||
|
plane {
|
||||||
|
<-1, -1, -1>, d
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#declare ziffernblatt =
|
||||||
|
union {
|
||||||
|
cylinder {
|
||||||
|
<0.99, 0, 0>, <0.98, 0, 0> 0.86
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <1, 1, 1, 0.0>
|
||||||
|
}
|
||||||
|
//normal {granite 0.4 scale 0.000001}
|
||||||
|
finish {
|
||||||
|
ambient 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
interior {
|
||||||
|
ior 1.5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#local m = 0;
|
||||||
|
#while (m < 60)
|
||||||
|
#if (mod(m, 15) = 0)
|
||||||
|
prism {
|
||||||
|
linear_spline linear_sweep
|
||||||
|
0.99, 1.00,
|
||||||
|
5,
|
||||||
|
<-0.84, 0.00>,
|
||||||
|
<-0.64, 0.05>,
|
||||||
|
<-0.59, 0.00>,
|
||||||
|
<-0.64, -0.05>
|
||||||
|
<-0.84, 0.00>
|
||||||
|
rotate <0, 0, -90>
|
||||||
|
rotate <m * 6, 0, 0>
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#if (mod(m, 5) = 0)
|
||||||
|
prism {
|
||||||
|
linear_spline linear_sweep
|
||||||
|
0.99, 1.00,
|
||||||
|
5,
|
||||||
|
<-0.84, 0.00>,
|
||||||
|
<-0.70, 0.03>,
|
||||||
|
<-0.67, 0.00>,
|
||||||
|
<-0.70, -0.03>
|
||||||
|
<-0.84, 0.00>
|
||||||
|
rotate <0, 0, -90>
|
||||||
|
rotate <m * 6, 0, 0>
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
cylinder {
|
||||||
|
<0.99, 0.82, 0>, <1.00, 0.82, 0>, 0.02
|
||||||
|
rotate <m * 6, 0, 0>
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
#local m = m + 1;
|
||||||
|
#end
|
||||||
|
|
||||||
|
prism {
|
||||||
|
linear_spline linear_sweep
|
||||||
|
1.01, 1.02,
|
||||||
|
13,
|
||||||
|
<-0.84, 0.00>,
|
||||||
|
<-0.60, 0.07>,
|
||||||
|
<-0.03, 0.03>,
|
||||||
|
<+0.00, 0.04>,
|
||||||
|
<+0.03, 0.03>,
|
||||||
|
<+0.20, 0.05>
|
||||||
|
<+0.30, 0.00>
|
||||||
|
<+0.20, -0.05>
|
||||||
|
<+0.03, -0.03>,
|
||||||
|
<+0.00, -0.04>,
|
||||||
|
<-0.03, -0.03>,
|
||||||
|
<-0.60, -0.07>,
|
||||||
|
<-0.84, 0.00>
|
||||||
|
rotate <0, 0, -90>
|
||||||
|
rotate <minute * 6, 0, 0>
|
||||||
|
}
|
||||||
|
|
||||||
|
prism {
|
||||||
|
linear_spline linear_sweep
|
||||||
|
1.00, 1.01,
|
||||||
|
8,
|
||||||
|
<-0.60, 0.00>,
|
||||||
|
<-0.35, 0.10>,
|
||||||
|
<-0.00, 0.04>,
|
||||||
|
<+0.15, 0.06>
|
||||||
|
<+0.15, -0.06>
|
||||||
|
<-0.00, -0.04>,
|
||||||
|
<-0.35, -0.10>,
|
||||||
|
<-0.60, 0.00>
|
||||||
|
rotate <0, 0, -90>
|
||||||
|
rotate <(stunde + minute / 60) * 30, 0, 0>
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#declare wuerfeluhr =
|
||||||
|
union {
|
||||||
|
difference {
|
||||||
|
union {
|
||||||
|
intersection {
|
||||||
|
box {
|
||||||
|
<-1, -1, -1>, <1, 1, 1>
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
oktaeder
|
||||||
|
}
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0.8, 0.8, 0.8>
|
||||||
|
}
|
||||||
|
finish {
|
||||||
|
F_MetalA
|
||||||
|
reflection 0.05
|
||||||
|
}
|
||||||
|
//normal {granite 0.4 scale 0.000001}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cylinder {
|
||||||
|
<-1.02, 0, 0>, <1.02, 0, 0>, 0.93
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0.9, 0.9, 0.9>
|
||||||
|
}
|
||||||
|
finish {
|
||||||
|
F_MetalA
|
||||||
|
reflection 0.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cylinder {
|
||||||
|
<0, 0, -1.02>, <0, 0, 1.02>, 0.93
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0.9, 0.9, 0.9>
|
||||||
|
}
|
||||||
|
finish {
|
||||||
|
F_MetalA
|
||||||
|
reflection 0.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cylinder {
|
||||||
|
<-2, 0, 0>, <2, 0, 0>, 0.86
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0.8, 0.8, 0.8>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cylinder {
|
||||||
|
<0, 0, -2>, <0, 0, 2>, 0.86
|
||||||
|
texture {
|
||||||
|
pigment {
|
||||||
|
color <0.8, 0.8, 0.8>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
ziffernblatt
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
ziffernblatt
|
||||||
|
rotate <0, 90, 0>
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
ziffernblatt
|
||||||
|
rotate <0, 180, 0>
|
||||||
|
}
|
||||||
|
object {
|
||||||
|
ziffernblatt
|
||||||
|
rotate <0, 270, 0>
|
||||||
|
}
|
||||||
|
// sphere {
|
||||||
|
// <0, 0, 0>, 0.1
|
||||||
|
// texture {
|
||||||
|
// pigment {
|
||||||
|
// color <1, 1, 1>
|
||||||
|
// }
|
||||||
|
// finish {
|
||||||
|
// ambient 100
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
Loading…
Reference in New Issue