From 6bcecb0c792cad1271fa6096f35d115a28b970a2 Mon Sep 17 00:00:00 2001 From: hjp Date: Sun, 10 Feb 2008 08:53:26 +0000 Subject: [PATCH] halo durch media ersetzt. Die unteren Fenster leuchten noch nicht, keine Ahnung, wieso. --- pr/kr100/KR100.INC | 4 +++ pr/kr100/KRMat.inc | 73 ++++++++++++++++++++++++++++------------------ 2 files changed, 48 insertions(+), 29 deletions(-) diff --git a/pr/kr100/KR100.INC b/pr/kr100/KR100.INC index 32a3e00..cbdea84 100644 --- a/pr/kr100/KR100.INC +++ b/pr/kr100/KR100.INC @@ -91,6 +91,9 @@ difference { texture { _T_FENSTER } + interior { + _I_FENSTER + } } } // end difference @@ -954,6 +957,7 @@ sphere { < 0, 0, 0 >, 1 hollow texture { _T_GSK } + interior { _I_GSK } scale < 1, 0.5, 1 > scale 4 rotate < 90-wbk, 0, 0 > diff --git a/pr/kr100/KRMat.inc b/pr/kr100/KRMat.inc index 7c63af9..94dc7c3 100644 --- a/pr/kr100/KRMat.inc +++ b/pr/kr100/KRMat.inc @@ -213,37 +213,45 @@ finish { ambient 0.05 diffuse 0.1 reflection 0.2 - refraction 1 - ior 1.5 phong 0.3 phong_size 60 } // end finish + #ifdef (_NO_F_LIGHT) #declare _T_FENSTER = texture { pigment {colour rgbft <0.4, 0.4, 0.4, 0.7, 0.3> } finish { _T_F_finish } } // end text + +#declare _I_FENSTER = +interior { + ior 1.5 +} + #else #declare _T_FENSTER = texture { pigment {colour rgbft <0.4, 0.4, 0.4, 0.7, 1.0>} finish { _T_F_finish } -// replace_halo_with_media // halo { -// replace_halo_with_media // emitting -// replace_halo_with_media // constant -// replace_halo_with_media // max_value 1 -// replace_halo_with_media // spherical_mapping -// replace_halo_with_media // colour_map { -// replace_halo_with_media // [0 color rgbt <1.0, 1.0, 1.0, 0>] -// replace_halo_with_media // [1 color rgbt <0.9, 1.0, 0.8, -1>] -// replace_halo_with_media // } -// replace_halo_with_media // // turbulence 0.5 -// replace_halo_with_media // scale _FENSTER_R -// replace_halo_with_media // samples 10 -// replace_halo_with_media // } // end halo } // end text + +#declare _I_FENSTER = +interior { + ior 1.5 + media { + emission 0.2 + density { + spherical + colour_map { + [0 color rgbt <1.0, 1.0, 1.0, 0>] + [1 color rgbt <0.9, 1.0, 0.8, -1>] + } + } + scale _FENSTER_R + } +} #end //--------------------------------------------------- @@ -256,33 +264,40 @@ texture { ambient 0.00 diffuse 0.2 reflection 0.1 - refraction 1 - ior 1.5 phong 0.3 phong_size 60 } // end finish } // end text +#declare _I_K_int = +interior { + ior 1.5 + media { + emission 0.2 + density { + spherical + colour_map { + [0 color rgbt <1.0, 0.0, 0.0, 0.6>] + [0.2 color rgbt <1.0, 0.2, 0.1, 0.4>] + [1 color rgbt <1.0, 0.4, 0.2, 0.0>] + } + } + } +} + #ifdef (_NO_K_LIGHT) #declare _T_GSK = texture { _T_K_text } // end text +#declare _I_GSK = +interior { } #else #declare _T_GSK = texture { _T_K_text -// replace_halo_with_media // halo { -// replace_halo_with_media // emitting -// replace_halo_with_media // cubic -// replace_halo_with_media // max_value 1 -// replace_halo_with_media // spherical_mapping -// replace_halo_with_media // colour_map { -// replace_halo_with_media // [0 color rgbt <1.0, 0.0, 0.0, 0.6>] -// replace_halo_with_media // [0.2 color rgbt <1.0, 0.2, 0.1, 0.4>] -// replace_halo_with_media // [1 color rgbt <1.0, 0.4, 0.2, 0.0>] -// replace_halo_with_media // } -// replace_halo_with_media // samples 10 -// replace_halo_with_media // } // end halo } // end text + +#declare _I_GSK = +interior { _I_K_int } #end //---------------------------------------------------