File:Violet tlp 2.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (2,400 × 1,800 pixels, file size: 4.25 MB, MIME type: image/png)

Captions

Captions

Violet TLP glow - view of artist

Summary

[edit]
Description
English: Violet TLP glow - view of artist
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

height

// cratered heightmap generating

// pov-ray script

  1. include "functions.inc"
  2. include "colors.inc"

// command line

// povray kratera3.pov -W800 -H600 +fn16

// REMEMBER : +fp16, 16 bit gray scale

global_settings { assumed_gamma 2.2 hf_gray_16 }

camera {

  location <0, 0, -20>
  look_at <0,0,0>

} //camera

light_source {<0, 20, -100> color White * 1.2}

  1. declare Randomizer = seed (2);
  1. declare CraterZOffset = 0;
  1. declare f_craters_1 =

function{

 pigment{
   crackle form <1.2, 0, 0> 
   turbulence 0.1 omega 0.6
   scale 0.15
   color_map{
     [0.00 color rgb 1.00] 
     [0.25 color rgb 0.75]
     [0.33 color rgb 0.25]
     [0.40 color rgb 0] 
     [1.00 color rgb 0] 
   }
 }

}

  1. declare f_moon_1 = function {
            (abs(1-sin(f_spherical(x,0,z))*0.5)*1.0-f_wrinkles(x*2,y*0,z*2)*0.2)
            
    
  //           -f_craters_1(1+x/10,y/1,z/10).gray*0.1
    //        -f_craters_1(2+x/3,y/3,z/3).gray*0.05

}

  1. macro NewCrater (Diameter)
  #declare CraterZOffset = CraterZOffset - .001;
  #declare Crater = disc {
     0, z, 1
     texture {
        pigment {
           onion
           turbulence .08 + rand (Randomizer) * .04
           color_map {
              [0 rgbt <0, 0, 0, .2>] //Center
              [.1 rgbt <0, 0, 0, .3>]
              [.42 rgbt <1, 1, 1, .4>]
              [.7 rgbt <1, 1, 1, .9>]
              [.8 rgbt <.5, .5, .5, 1>]
              [1 rgbt 1]
           } //color_map
        } //pigment
        scale 1.1
        rotate (rand (Randomizer) * 360) * z
     } //texture
     scale Diameter
     translate CraterZOffset * z
     no_shadow
  } //disc
  1. end //#macro NewCrater
  1. local Terrain = object {
  plane {
     z, 0
     texture {
        pigment {
           bumps //Start out with gentle hills
           color_map {
              [0 Black]
              [1 White * 1.2]
           } //color_map
        } //pigment
        scale 5
     } //texture
     texture {
        pigment {
           granite //Roughen up the terrain
           color_map {
              [0 rgbt <0, 0, 0, .9>]
              [1 rgbt <1, 1, 1, .7>]
           } //color_map
        } //pigment
        scale 6
     } //texture
  } //plane

} //object

  1. local Terrain2 = object {
  plane {
     z, 0

     texture {
        pigment {
         bumps scale 1
       //  function {f_granite(x,y,z)}
        //  function { 
        //  f_craters_1(x/20,y*0,z/20).gray*0.5
          
       //  (f_granite(x,y,z))*1 
          
        //  }
          
           color_map {
              [0 White/3]
              [1 Black]
           } //color_map
        } //pigment
     //   scale 5
     } //texture
     texture {
        pigment {
         function {
       (f_craters_1(x/3,y/3,z/3).gray)*0.3
        
        
        +0.6* f_noise3d(x*5,y*5,z*5)
     * 0.2* f_granite(x*5,y*5,z*5)
        +0.001  *  f_noise3d(x*30000,y*30000,z*30000)
   

         }
       // bumps
           color_map {
              [0 rgbt <1,1,1,0>]
              [1 rgbt <0,0,0,1>]
           } //color_map
        } //pigment
      //  scale 5
     } //texture
  } //plane

} //object

//object {Terrain}

object {Terrain2 scale 5}

NewCrater (4)

object {Crater scale 0.25 translate <3,1,4>}

NewCrater (4) object {Crater scale 1 translate <0, 0, 0>}

NewCrater (3) object {Crater scale 1/3 translate <0, 3, -6>}

/* NewCrater (2.2) object {Crater scale 1 translate <-7, -5, -8>}

NewCrater (4.5) object {Crater scale 0.7 translate <7, -5, 0>}

NewCrater (3.5) object {Crater scale 1.2 translate <-6, -1, 0>}

  • /

code

// tlp - ctarer glow

// pov ray 3.7 source code

  1. include "colors.inc"
  1. include "functions.inc"
  2. include "rand.inc"
  1. include "colors.inc"
  2. include "stones.inc"

global_settings {

 max_trace_level 5

}

  1. declare Color=rgb <0.25,0,1.0>*1;
 camera{
   location <0, 5, -10>
   look_at 0
   angle 30
 }
 light_source{ <1000,300,-1000>*1000*1000 White*2 }
  1. declare surfobj1= height_field {
   png "kratera4.png"
   smooth
   pigment { color rgb <1,1,1> }

finish {ambient 0 phong 0.05 specular 0.05 diffuse 1.0 } normal { wrinkles scale 1/100 bump_size -0.1 }

   translate <-.5, -.5, -.5>
   scale <20, 1., 20>
 }
  1. declare bright1=

/* light_source { <0,0,0> color rgb 1/100

looks_like {

  • /

object { sphere {0,1}

pigment { color rgbt 1 }
// finish { ambient 0 diffuse 0 }
hollow
no_shadow

interior {
media {
      intervals 9
     samples 30, 60	 
	 emission color Color*20
	//   scattering {1, rgb 1-Color}
     density{ 
        //      function {  f_spherical(x,y,z)  }
            function { f_spherical(x,y,z)*0.5+f_granite(x*40,y*40,z*40)*0.5 }
          // granite
          turbulence 1
        //    spherical
        
        //     poly_wave 1.5
                  color_map {
              [0.0 color rgb <0.0,0.0,0.0>]
              [0.5 color  Color*1]
              [1.0 color Color*2]
                        } // end color_map
   
         } // end of density
}
}


}

// }}


  1. declare torus1=object {

//torus {1,0.5} isosurface {

function {
//f_torus(x,y,z,1,0.5)+f_granite(x*3,y*3,z*3)*0.1
f_torus (x,y,z, 1, 0.5)+f_granite(x,y,z)*1
}


 accuracy 0.01
 max_gradient 50
 
 // threshold 0.5
 // max_trace 7
 
 
 
 
contained_by {sphere {0,100}}

}

hollow no_shadow

pigment { color rgbt 1}

interior {
 media {
 
 
 absorption 2
 scattering { 1,1/10*1 }

// emission 0.5*<1,1,0>

  density {
 function {  f_torus (x,y,z, 1, 0.4)-f_granite(x,y,z)*0.2 }
  density_map {
  [0 color rgb 0]
  [1 color rgb 1]
  }
  
  }
  

 }
}

}

  1. declare explo1=

object { sphere{ 0,1}


pigment{rgbt 1} hollow

interior{ media{

absorption 0.01

emission 0.5 scattering{1,60}

//density { function {f_spherical(x,y,z) }} density {function{

// f_granite(x*4,y*4,z*4)*0.5*pow( f_spherical(x,y,z), 4)

// pow( f_spherical(x,y,z), 4)


//f_granite( ((sin(atan2(x,y)/3)+1)/2),((sin(atan2(z,y)/3)+1)/2),((sin(atan2(x,z)/3)+1)/2))

pow(f_granite( ((sin(atan2(x,y)/3)+1)/2),((sin(atan2(z,y)/3)+1)/2),((sin(atan2(x,z)/3)+1)/2)) ,3)

  • pow(f_spherical(x,y,z),4)*1


} turbulence 0.1 poly_wave 1.5 color_map { [0 color rgb 0] [1 color rgb <1,0.5,0>] } scale 0.5 }

 scale 1.5

}

// media 2

  media { 
   //absorption 0.1
   
   scattering { 1 1 }
     density { 
     
    // spherical 
     function {
 //  pow(f_spherical(x,y,z),6)*pow(f_granite(x*10,y*10,z*10),1)
     
     pow(f_spherical(x,y,z),5)
  • f_wrinkles(x*3,y*3,z*3)
  • f_granite(x*3,y*3,z*3)

// *pow(f_wrinkles( ((sin(atan2(x,y)/3)+1)/2),((sin(atan2(z,y)/3)+1)/2),((sin(atan2(x,z) ///////3)+1)/2)) //,1)*0.3


     }
     
     }
   }

} // interior

// scale C*0


}


object {surfobj1 scale y/2}

object {bright1 scale 1.3 scale y/3}

//object {explo1 scale 4}

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:02, 11 June 2024Thumbnail for version as of 10:02, 11 June 20242,400 × 1,800 (4.25 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata