*** empty log message ***

This commit is contained in:
hjp 2000-01-30 13:11:47 +00:00
parent 992e59aa41
commit d3f272b889
9 changed files with 420 additions and 0 deletions

View File

@ -0,0 +1,35 @@
version 5.0
set nocompatible
let cpo_save=&cpo
set cpo=B
map! <xHome> <Home>
map! <xEnd> <End>
map! <S-xF4> <S-F4>
map! <S-xF3> <S-F3>
map! <S-xF2> <S-F2>
map! <S-xF1> <S-F1>
map! <xF4> <F4>
map! <xF3> <F3>
map! <xF2> <F2>
map! <xF1> <F1>
map <xHome> <Home>
map <xEnd> <End>
map <S-xF4> <S-F4>
map <S-xF3> <S-F3>
map <S-xF2> <S-F2>
map <S-xF1> <S-F1>
map <xF4> <F4>
map <xF3> <F3>
map <xF2> <F2>
map <xF1> <F1>
map!  }I\begin{yyplcwendO
map!  >I<yypa/O
let &cpo=cpo_save
unlet cpo_save
set autoindent
set exrc
set number
set ruler
set shiftwidth=4
set showmatch
set textwidth=72

View File

@ -0,0 +1,27 @@
# what's where?
include GNUmakevars
all: \
test-buckyball.jpg \
%.ppm: %.pov
$(POVRAY) +L$(POVINC) +V -I$< +FP
%.pov: make%
$< > $@
test-buckyball.ppm: test-buckyball.pov buckyball.pov
%.gif: %.ppm
ppmquant 256 $< | ppmtogif > $@
%.jpg: %.ppm
cjpeg $< > $@
www/%: %
cp $< $@

View File

@ -0,0 +1,102 @@
#include "colors.inc"
#declare r5 = 0.5 / sin (radians(36));
#declare rho5 = 0.5 * tan (radians(54));
#declare rho6 = 0.5 * tan (radians(60));
#declare v1 = 90 - degrees(asin(rho5/rho6));
#debug concat("v1 = ", str(v1, 0, 5), "\n")
#declare a = rho6 * cos(radians(v1)) + r5;
#declare b = 1;
#declare c = sqrt(a*a + b*b);
#declare d = rho6 * sin(radians(v1));
#declare v2 = 2 * degrees (asin(d/(c-r5)));
#debug concat("v2 = ", str(v2, 0, 5), "\n")
#declare e = sin(radians(72));
#debug concat("e = ", str(e, 0, 5), "\n")
#declare f = e * sin(radians(v1));
#debug concat("f = ", str(f, 0, 5), "\n")
#declare v3 = degrees (asin(f/rho6)) + v1;
#debug concat("v3 = ", str(v3, 0, 5), "\n")
#declare buckyball =
intersection {
plane {
<0, 1, 0> 1
pigment { color rgbf <1, 0, 0, 0.5> }
}
#declare i = 0;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <1, 1, 0, 0.5> }
rotate <0, 0, v1>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
#declare i = 36;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <0, 1, 0, 0.5> }
rotate <0, 0, v2>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
#declare i = 0;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <0, 1, 1, 0.5> }
rotate <0, 0, v3>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
#declare i = 36;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <0, 0, 1, 0.5> }
rotate <0, 0, 180 - v3>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
#declare i = 0;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <1, 0, 1, 0.5> }
rotate <0, 0, 180-v2>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
#declare i = 36;
#while (i < 360)
plane {
<0, 1, 0> 1
pigment { color rgbf <1, 0, 0, 0.5> }
rotate <0, 0, 180-v1>
rotate <0, i, 0>
}
#declare i = i + 72;
#end
plane {
<0, 1, 0> 1
pigment { color rgbf <1, 1, 0, 0.5> }
rotate <0, 0, 180>
}
}

View File

@ -0,0 +1,5 @@
+A
+QR
+HTP
+fp +w800 +h600
display_gamma = 2.2

View File

@ -0,0 +1,113 @@
#include "colors.inc"
#include "buckyball.pov"
global_settings {
assumed_gamma 1.0
ambient_light rgb<0.5, 0.5, 0.5>
}
light_source {
<2000, 2000, 2000>
color White
}
#declare Camera_Ortho_pl = 0;
#declare Camera_Ortho_v1 = 0;
#declare Camera_Ortho_v2 = 0;
#declare Camera_Ortho_v3 = 0;
#declare Camera_Ortho_eq = 0;
#declare Camera_Persp = 1;
#if (Camera_Ortho_pl)
camera {
location <5, 0, 0>
look_at <0, 0, 0>
rotate <0, 0, 90>
angle 40
orthographic
}
#end
#if (Camera_Ortho_v1)
camera {
location <5, 0, 0>
look_at <0, 0, 0>
rotate <0, 0, 90>
rotate <0, 0, v1>
rotate <0, 0, 0>
angle 40
orthographic
}
#end
#if (Camera_Ortho_v2)
camera {
location <5, 0, 0>
look_at <0, 0, 0>
rotate <0, 0, 90>
rotate <0, 0, v2>
rotate <0, 36, 0>
angle 40
orthographic
}
#end
#if (Camera_Ortho_v3)
camera {
location <5, 0, 0>
look_at <0, 0, 0>
rotate <0, 0, 90>
rotate <0, 0, v3>
rotate <0, 0, 0>
angle 40
orthographic
}
#end
#if (Camera_Ortho_eq)
camera {
location <5, 0, 0>
look_at <0, 0, 0>
angle 40
orthographic
}
#end
#if (Camera_Persp)
camera {
location <5, 4, 3>
look_at <0, 0, 0>
angle 40
}
#end
object {
buckyball
}
#if (1)
plane {
<1, 0, 0>, -10
pigment {
checker color White*0.7, color White*0.5
}
}
plane {
<0, 1, 0>, -10
pigment {
checker color White*0.7, color White*0.5
}
}
plane {
<0, 0, 1>, -10
pigment {
checker color White*0.7, color White*0.5
}
}
#end

27
glas/GNUmakefile Normal file
View File

@ -0,0 +1,27 @@
# what's where?
include GNUmakevars
all: \
test-glas.jpg \
%.ppm: %.pov
$(POVRAY) +L$(POVINC) +V -I$< +FP
%.pov: make%
$< > $@
test-glas.ppm: test-glas.pov glas.pov
%.gif: %.ppm
ppmquant 256 $< | ppmtogif > $@
%.jpg: %.ppm
cjpeg $< > $@
www/%: %
cp $< $@

40
glas/glas.pov Normal file
View File

@ -0,0 +1,40 @@
#include "glass.inc"
#declare glas =
union {
merge {
difference {
cylinder {
<0, 0, 0>, <0, 20, 0>, 3
}
cylinder {
<0, 1, 0>, <0, 21, 0>, 2.8
}
}
torus {
2.9, 0.1
translate <0, 20, 0>
}
//texture {T_Glass3 }
texture {T_Old_Glass }
interior { ior 1.5 }
}
cylinder {
<0, 1, 0> <0, 10, 0>, 2.8
texture {
pigment {
rgbf <1, 0.5, 0.7, 0.0>
}
finish {
reflection 0.3
}
}
interior {
ior 1.33
}
}
}

5
glas/povray.ini Normal file
View File

@ -0,0 +1,5 @@
+A
+QR
+HTP
+fp +w400 +h300
display_gamma = 2.2

66
glas/test-glas.pov Normal file
View File

@ -0,0 +1,66 @@
#include "colors.inc"
global_settings {
assumed_gamma 1.0
ambient_light rgb<0.5, 0.5, 0.5>
}
light_source {
<2000, 2000, 2000>
color White
}
#declare Camera_Totale = 1;
//#declare Camera_Frosch = 1;
//#declare Camera_Triebwerk = 1;
//#declare Camera_Pol = 1;
#ifdef (Camera_Frosch)
camera {
location <40, 2, 0>
look_at <0, 8, 0>
angle 40
}
#end
#ifdef (Camera_Pol)
camera {
location <1, 4700, 0>
look_at <0, 1800, 0>
angle 40
}
#end
#ifdef (Camera_Triebwerk)
camera {
location <1650, 1700, 0>
look_at <650, 1500, 0>
}
#end
#ifdef (Camera_Totale)
camera {
location <40, 30, 20>
look_at <0, 10, 0>
angle 40
}
#end
#include "glas.pov"
object {
glas
}
#if (1)
background { color rgb<0.2, 0.4, 0.8> }
plane {
<0, 1, 0>, 0
pigment {
checker color White*0.7, color White*0.5
}
}
#end