Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 3.8;
- // *********************************************************************************
- // ********************************** H E A D E R **********************************
- // *********************************************************************************
- global_settings
- {
- photons
- {
- //spacing 0.11 // specify the density of photons
- spacing 0.55
- count 2500 // alternatively use a total number of photons
- //gather min, max // amount of photons gathered during render [20, 100]
- //media max_steps [,factor] // media photons
- //jitter 1.0 // jitter phor photon rays
- }
- adc_bailout 0.003922
- //ambient_light <2.0,2.0,2.0>
- //ambient_light <3.0,3.0,3.0>
- assumed_gamma 2.2
- irid_wavelength <0.247059,0.176471,0.137255>
- max_trace_level 30
- number_of_waves 10
- }
- background { color <0.3,0.6,1.0> }
- // ** Flynn Includes **
- // ==== Standard POV-Ray Includes ====
- #include "colors.inc" // Standard Color definitions
- #include "textures.inc" // Standard Texture definitions
- #include "functions.inc" // internal functions usable in user defined functions
- // ==== Additional Includes ====
- // Don't put all of the following includes in one, it'll cost memory and time to parse
- #include "arrays.inc" // macros for manipulating arrays
- #include "chars.inc" // A complete library of character objects
- #include "consts.inc" // Various constants and alias definitions
- #include "debug.inc" // contains various macros for debugging scene files
- #include "logo.inc" // The official POV-Ray Logo in various forms
- #include "math.inc" // general math functions and macros
- #include "rad_def.inc" // Some common radiosity settings
- #include "rand.inc" // macros for generating random numbers
- #include "shapes.inc" // macros for generating various shapes
- #include "shapes2.inc" // some not built in basic shapes
- #include "shapesq.inc" // Pre-defined quartic shapes
- #include "skies.inc" // Ready defined sky spheres
- #include "stars.inc" // Some star fields
- #include "strings.inc" // macros for generating and manipulating text strings
- #include "sunpos.inc" // macro for sun position on a given date, time, and location on earth
- #include "transforms.inc" // transformation macros
- // --- textures ---
- #include "finish.inc" // Some basic finishes
- #include "glass.inc" // Glass textures/interiors
- #include "golds.inc" // Gold textures
- #include "metals.inc" // Metallic pigments, finishes, and textures
- #include "stones.inc" // Binding include-file for STONES1 and STONES2
- #include "stones1.inc" // Great stone-textures
- #include "stones2.inc"
- #include "woodmaps.inc" // Basic wooden colormaps
- #include "woods.inc" // Great wooden textures
- #debug concat("\nScene: Cube.Pillar_new.pov - Time: ", datetime(now), "\n\n")
- // ** Create cool RandomNumbers **
- #declare Now = now * (24*60*60) * 100;
- #declare XR_Seed = substr(str(Now,2,-2),10,2);
- #declare iCount = 20;
- #while (iCount > 0) // delay-loop
- #declare iCount = iCount -0.00002;
- #end
- #declare Now = now * (24*60*60) * 100;
- #debug concat("Now: ", substr(str(Now,2,-2),0,13), "\n")
- #declare YG_Seed = substr(str(Now,2,-2),10,2);
- #declare iCount = 20;
- #while (iCount > 0) // delay-loop
- #declare iCount = iCount -0.00002;
- #end
- #declare Now = now * (24*60*60) * 100;
- #debug concat("Now: ", substr(str(Now,2,-2),0,13), "\n\n")
- #declare ZB_Seed = substr(str(Now,2,-2),10,2);
- #debug concat("XR_Seed: ", XR_Seed, ", YG_Seed: ", YG_Seed, ", ZB_Seed: ", ZB_Seed, "\n\n")
- // *** Camera & Lights ***
- camera
- {
- //location <-400, 150, 10>
- location <-800, 500, 10> // Länge, Höhe, Breite
- rotate <90,0,22.5>
- look_at <500, 0, 0>
- }
- light_source
- {
- <-90, 120, 30>, <6.0,6.0,6.0> // 2.0, 2.0, 2.0
- //translate <0.2, -0.1, 7.7>
- }
- light_source
- {
- <90, -120,30>, <6.0,6.0,6.0>
- //translate <0.2, -0.1, 30.7>
- }
- // *** Materials ***
- #declare T_Solid_Color =
- material // T Solid Color
- {
- texture
- {
- pigment
- {
- color rgb <0.8, 0.5, 0.2>
- }
- finish
- {
- emission 0.15
- specular 0.7266
- roughness 0.006139
- }
- }
- }
- #declare BillyCat_Taupe =
- material // DMFDarkOak
- {
- texture
- {
- pigment
- {
- wood
- color_map // 119, 148, 167
- {
- [ 0.0 rgbft <0.47, 0.58, 0.66, 0.0, 0.0> ]
- [ 0.1 rgbft <0.47, 0.58, 0.66, 0.0, 0.0> ]
- [ 0.9 rgbft <0.24, 0.29, 0.33, 0.0, 0.0> ]
- [ 1.0 rgbft <0.24, 0.29, 0.33, 0.0, 0.0> ]
- }
- turbulence 0.04
- octaves 3
- ramp_wave
- scale <0.2, 0.2, 1.0>
- }
- }
- }
- // ** Functions **
- // ** Geometry **
- // ****************************
- // ** The BOX Detail - Begin **
- // ****************************
- #declare Quadrat0 = union { // Quadrat
- box { // Seite01
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- translate -0.1*x
- }
- box { // Seite02
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate 90.0*y
- translate <3.7, 0.0, 3.8>
- }
- box { // Seite03
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, 0.0, 180.0>
- translate 7.5*x
- }
- box { // Seite04
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, -90.0, -180.0>
- translate <3.7, 0.0, -3.8>
- }
- //object { Quadrat1 }
- texture {
- Chrome_Metal
- }
- translate 0.1*y
- }
- #declare Quadrat1 = union
- {
- box { // Seite05
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- translate -0.1*x
- }
- box { // Seite06
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate 90.0*y
- translate <3.7, 0.0, 3.8>
- }
- box { // Seite07
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, 0.0, 180.0>
- translate 7.5*x
- }
- box { // Seite08
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, -90.0, -180.0>
- translate <3.7, 0.0, -3.8>
- }
- texture {
- Chrome_Metal
- }
- rotate -90.0*z
- }
- #declare Quadrat2 = union { // Quadrat2
- box { // Seite09
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- translate -0.1*x
- }
- box { // Seite10
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate 90.0*y
- translate <3.7, 0.0, 3.8>
- }
- box { // Seite11
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, 0.0, 180.0>
- translate 7.5*x
- }
- box { // Seite12
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, -90.0, -180.0>
- translate <3.7, 0.0, -3.8>
- }
- texture {
- Chrome_Metal
- }
- rotate -180.0*z
- translate <7.5, -7.5, 0.0>
- }
- #declare Quadrat3 = union { // Quadrat3
- box { // Seite13
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- translate -0.1*x
- }
- box { // Seite14
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate 90.0*y
- translate <3.7, 0.0, 3.8>
- }
- box { // Seite15
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, 0.0, 180.0>
- translate 7.5*x
- }
- box { // Seite16
- <-1, -1, -1>, <1, 1, 1>
- scale <0.2, 0.2, 4.0>
- rotate <180.0, -90.0, -180.0>
- translate <3.7, 0.0, -3.8>
- }
- texture {
- Chrome_Metal
- }
- rotate 90.0*z
- translate <7.5, -7.5, 0.0>
- }
- // ** Glas-Flächen **
- #declare Object_Glas_00 = box { // Glas_01
- <-1, -1, -1>, <1, 1, 1>
- texture {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- translate 3.7*x
- }
- #declare Object_Glas_01 = box { // Glas_02
- <-1, -1, -1>, <1, 1, 1>
- texture {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- translate <3.7, -7.5, -0.1>
- }
- #declare Object_Glas_02 = box { // Glas_03
- <-1, -1, -1>, <1, 1, 1>
- texture {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- rotate -90.0*x
- translate <3.7, -3.9, 3.8>
- }
- #declare Object_Glas_03 = box { // Glas_04
- <-1, -1, -1>, <1, 1, 1>
- texture {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- rotate <-90.0, -90.0, 0.0>
- translate <7.6, -3.9, 0.1>
- }
- #declare Object_Glas_04 = box { // Glas_05
- <-1, -1, -1>, <1, 1, 1>
- texture {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- rotate <90.0, 0.0, -90.0>
- translate <3.9, -3.7, -3.8>
- }
- #declare Object_Glas_05 = box
- { // Glas_06
- <-1, -1, -1>, <1, 1, 1>
- texture
- {
- Orange_Glass
- }
- scale <3.6, -0.1, 3.7>
- rotate <90.0, 90.0, 0.0>
- translate <0.1, -3.8, 0.1>
- }
- // ****************************
- // ** The BOX Detail - END **
- // ****************************
- // ** The Box Union to a Quader **
- #declare Quader_Scale = 1.5;
- #declare Object_Quader = union
- {
- object { Quadrat0 }
- object { Quadrat1 }
- object { Quadrat2 }
- object { Quadrat3 }
- /*
- object { Object_Glas_00 }
- object { Object_Glas_01 }
- object { Object_Glas_02 }
- object { Object_Glas_03 }
- object { Object_Glas_04 }
- object { Object_Glas_05 }
- */
- scale <Quader_Scale, Quader_Scale, Quader_Scale>
- }
- plane
- {
- //< 0, 30,0 >,0
- z,0
- material
- {
- BillyCat_Taupe
- }
- //rotate <0, -1.5 ,0>
- rotate <0, 0 ,0>
- }
- #declare XR = seed(val(XR_Seed));
- #declare YG = seed(val(YG_Seed));
- #declare ZB = seed(val(ZB_Seed));
- #declare Count_out = 0;
- #declare Count_out_max = 1000; // 125;
- #declare Count_out_step = 10;
- // ** Loop Out **
- #while (Count_out < Count_out_max)
- #declare Count_in = 0;
- #declare Count_in_max = 20;
- #declare Count_in_step = 2;
- #declare fRed = rand(XR) * 1.0;
- #declare fGrn = rand(YG) * 1.0;
- #declare fBlu = rand(ZB) * 1.0;
- #declare myColor = color rgb<fRed,fGrn,fBlu>;
- #declare Translate_X = 0.2;
- #declare Translate_Y = 3;
- #declare Translate_Z = 3;
- // ** Loop In **
- #while (Count_in < Count_in_max)
- #declare Translate_X = 100 * sin(Count_in) - (10 * rand(XR) - 10) ; // - 100 * ;
- //#declare Translate_Y = 400 * rand(YG)- 150; // - 1000;
- #declare Translate_Y = 100 * cos(Count_in) - (10 * rand(YG) - 100); // 100 * ;
- //#declare Translate_Z = 120 * rand(ZB) - 100; // - 1000;
- #declare Translate_Z = Count_out; // 400
- #declare Rot_X = rand(XR) * 180;
- #declare Rot_Y = rand(YG) * 180;
- #declare Rot_Z = rand(ZB) * 180;
- // *** Random-Rotation for each Torus ***
- #declare Scale_X = rand(XR) * 10;
- #declare Scale_Y = rand(YG) * 10;
- #declare Scale_Z = rand(ZB) * 10;
- object
- {
- Object_Quader
- //Object_Box
- //rotate <-65, -9, 85>
- //rotate <Rot_X, Rot_Y, Rot_Z>
- //scale <Scale_X, Scale_Y, Scale_Z>
- //translate <X1, Y1, Z1>
- material // Glass2
- {
- texture
- {
- pigment
- {
- rgbf <fRed,fGrn,fBlu,0.8>
- }
- finish
- {
- //emission 0.0
- emission 0.4
- diffuse 0.0
- phong 0.3
- phong_size 60.0
- reflection
- {
- 0.5 , 0.5
- fresnel off
- falloff 1.0
- exponent 1.0
- metallic 0.0
- }
- }
- }
- interior
- {
- ior 1.5
- }
- }
- translate <Translate_X, Translate_Y, Translate_Z>
- }
- //#declare Y1 = Y1 + 10;
- #declare Count_in = Count_in + 1;
- #debug concat(" Translate_X: ", str(Translate_X,3,1),", Translate_Y: ", str(Translate_Y,3,1),", Translate_Z: ", str(Translate_Z,3,1),"\n")
- #end
- #debug concat("\n", " End of Count_in ", "\n\n")
- #declare Count_out = Count_out + Count_out_step;
- #end
- #debug concat("\n", "End of Count_out ","\n")
- // *********************************************************************************
- // ********************************** F O O T E R **********************************
- // *********************************************************************************
- #debug concat("\n" ,"ParsingEnde Cube.Pillar_new.pov - Time: ", datetime(now), "\n\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement