From d3f272b889290366d72cf6b71fa25790dc218355 Mon Sep 17 00:00:00 2001 From: hjp Date: Sun, 30 Jan 2000 13:11:47 +0000 Subject: [PATCH] *** empty log message *** --- geometrie/buckyball/.vimrc | 35 ++++++++ geometrie/buckyball/GNUmakefile | 27 ++++++ geometrie/buckyball/buckyball.pov | 102 ++++++++++++++++++++++ geometrie/buckyball/povray.ini | 5 ++ geometrie/buckyball/test-buckyball.pov | 113 +++++++++++++++++++++++++ glas/GNUmakefile | 27 ++++++ glas/glas.pov | 40 +++++++++ glas/povray.ini | 5 ++ glas/test-glas.pov | 66 +++++++++++++++ 9 files changed, 420 insertions(+) create mode 100644 geometrie/buckyball/.vimrc create mode 100644 geometrie/buckyball/GNUmakefile create mode 100644 geometrie/buckyball/buckyball.pov create mode 100644 geometrie/buckyball/povray.ini create mode 100644 geometrie/buckyball/test-buckyball.pov create mode 100644 glas/GNUmakefile create mode 100644 glas/glas.pov create mode 100644 glas/povray.ini create mode 100644 glas/test-glas.pov diff --git a/geometrie/buckyball/.vimrc b/geometrie/buckyball/.vimrc new file mode 100644 index 0000000..13f8a1a --- /dev/null +++ b/geometrie/buckyball/.vimrc @@ -0,0 +1,35 @@ +version 5.0 +set nocompatible +let cpo_save=&cpo +set cpo=B +map! +map! +map! +map! +map! +map! +map! +map! +map! +map! +map +map +map +map +map +map +map +map +map +map +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 diff --git a/geometrie/buckyball/GNUmakefile b/geometrie/buckyball/GNUmakefile new file mode 100644 index 0000000..fbe6408 --- /dev/null +++ b/geometrie/buckyball/GNUmakefile @@ -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 $< $@ diff --git a/geometrie/buckyball/buckyball.pov b/geometrie/buckyball/buckyball.pov new file mode 100644 index 0000000..6bbd4cc --- /dev/null +++ b/geometrie/buckyball/buckyball.pov @@ -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> + } + } + + + diff --git a/geometrie/buckyball/povray.ini b/geometrie/buckyball/povray.ini new file mode 100644 index 0000000..bb9c0d1 --- /dev/null +++ b/geometrie/buckyball/povray.ini @@ -0,0 +1,5 @@ ++A ++QR ++HTP ++fp +w800 +h600 +display_gamma = 2.2 diff --git a/geometrie/buckyball/test-buckyball.pov b/geometrie/buckyball/test-buckyball.pov new file mode 100644 index 0000000..87456dd --- /dev/null +++ b/geometrie/buckyball/test-buckyball.pov @@ -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 diff --git a/glas/GNUmakefile b/glas/GNUmakefile new file mode 100644 index 0000000..6054cbf --- /dev/null +++ b/glas/GNUmakefile @@ -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 $< $@ diff --git a/glas/glas.pov b/glas/glas.pov new file mode 100644 index 0000000..4b0e1e0 --- /dev/null +++ b/glas/glas.pov @@ -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 + } + } + } + + + diff --git a/glas/povray.ini b/glas/povray.ini new file mode 100644 index 0000000..c25f31a --- /dev/null +++ b/glas/povray.ini @@ -0,0 +1,5 @@ ++A ++QR ++HTP ++fp +w400 +h300 +display_gamma = 2.2 diff --git a/glas/test-glas.pov b/glas/test-glas.pov new file mode 100644 index 0000000..cf1d2b6 --- /dev/null +++ b/glas/test-glas.pov @@ -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