File:Carbon rich planet povray 6 r 1.png

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

Original file(1,600 × 1,200 pixels, file size: 1.42 MB, MIME type: image/png)

Captions

Captions

Carbon rich planet

Summary[edit]

Description
English: Carbon rich planet
Date
Source Own work
Author Merikanto

POV-Ray 3.7

<povray>

// // carbon rich planet // pov-ray 3.7 source code // 20.03.2023 v 0000.0003 //

  1. include "colors.inc"
  2. include "textures.inc"
  3. include "shapes.inc"
  4. include "functions.inc"
  1. declare planetsize=1000;

camera {

   location <0,0,-1000*8>
   look_at <0,0,0>
   angle 24

}


light_source {

   <4,0, -10>*1000*1000*150 
   color rgb <1,1,1>*1

}


sky_sphere {

  pigment {
  
   bozo    
    
   scale 0.001
   color_map
    {
       [0 color rgb 0]
       [0.8 color rgb 0]
       [1 color rgb 1]
       }
    
       rotate z*45
   }
   pigment {
   bozo
   scale 0.0001
    color_map { 

       [0 color rgb 0 transmit 1]
       [0.8 color rgb 0 transmit 1]
       [1 color rgb 1 transmit 0]
       }
   }     
    rotate z*80

}

#declare blacker1 = pigment {
        wrinkles
        turbulence 0.2
       pigment_map {
       [0  color Black]
       [ 0.5 color <1,1,1>/20 ]
       [1 color <1,1,1>/60]
       }

}

#declare browner1 = pigment {
        wrinkles
        turbulence 0.2
       pigment_map {
       [0  color LightWood]
       [ 0.5 Copper ]
       [1 Brown]
       }

}


  1. declare funk1= function {
//f_wrinkles(x,y,z) /2+   f_wrinkles(x*3,y*3,z*3)/4   +   f_wrinkles(x*10,y*10,z*10)/8 +   f_wrinkles(x*30,y*30,z*30)/16 +   f_wrinkles(x*100,y*100,z*100)/32  +   f_wrinkles(x*300,y*300,z*300)/64  

// f_hetero_mf(x,y,z, 0.9, 1.7,16, 0.5, 0.9, 3 ) * f_hetero_mf(x*10,y*10,z*10, 0.9, 1.7,16, 0.5, 0.9, 3 ) *f_wrinkles(x*300,y*300,z*300)

//f_ridge(x*100,y*100,z*100,0, 16, 0.0, 3, 1, 1)*0.5


//* f_ridged_mf(x/10000, y/10000, z/10000, 0.5, 4, 13, 3, 5, 2)


//pow( f_hetero_mf(x,y,z, 0.9, 1.7,16, 0.5, 0.9, 3 ),-3) / //max(pow( f_hetero_mf(x,y,z, 0.9, 1.7,16, 0.5, 0.9, 3 )/1000,3),1) // pow( ( f_hetero_mf(x,y,z, 0.9, 1.7,60, 0.5, 0.9, 3 )),3) /10

//* f_ridged_mf(x/10000, y/10000, z/10000, 0.5, 4, 13, 3, 5, 2)/10

exp(  f_agate(x,y,z)*exp(f_granite(x,y,z)))
  • exp( f_agate(x*3,y*3,z*3)*exp(f_granite(x*3,y*3,z*3)))
* exp(  f_agate(x*30,y*30,z*30)*exp(f_granite(x*30,y*30,z*30))) 
 * exp(  f_agate(x*300,y*300,z*300)*exp(f_granite(x*300,y*300,z*300))) 
  * exp(  f_agate(x*3000,y*3000,z*3000)*exp(f_granite(x*3000,y*3000,z*3000))) 

/300

}

  1. declare carbon_tex_1 = texture {
   pigment {

//wrinkles // granite // bozo //scale 1 // agate function {

  funk1(x,y,z)

}

 // granite  
  //     wrinkles
  // scale 2
   //     turbulence 0.1
       pigment_map {
       [0  blacker1]
       [ 0.5 blacker1 ]
       [1 browner1]
       } 
   }
   normal {
          function 

{

  funk1(x,y,z)*0.1

} // wrinkles 1 // bozo

// agate 1

// granite .1 scale 1

   // wrinkles 1  
  // scale 2
 //  turbulence 0.1
   }
 finish {
ambient 0

}

}


#declare icecaps_1 =  pigment {
   gradient y
   scale 2   
   turbulence 0.00
   translate y*1
   
   pigment_map {  
   [0 wrinkles scale 0.1
       color_map {
       [0 color rgbt <1,1,1,0>*2   ]  
         [0.5 color rgbt <1,1,1,0>*1   ]
       [1 color rgbt <1,0,0,1>  ]
   }
   ] 
   [1.5/10 color rgbt <0,0,0,1>   ]
   [5/10 color rgbt <0,0,0,1>   ]  
   [9/10 color rgbt <0,0,0,1>   ]

   [1 
   granite 
scale 0.1
   color_map {
       [0 color rgbt <0,0,0,1>   ]
       [1 color rgbt <1,1,1,1>  ]
       }
   ]
   }

}

 #declare carbon_tex_2= texture {
 pigment {icecaps_1}   
 finish {ambient 0}

}

   #declare cloudcolor1=rgb <0.56, 0.55, 0.60>;
  #declare cloudtex_2=       pigment {   

// agate //granite //scale 100

    wrinkles
   //       bozo
       // turbulence 1.1   
         turbulence 1.5
        octaves 60
        omega 0.65
        lambda 2
            color_map {
           [0.0 0.05 color rgbt cloudcolor1 color rgbt <.75, .75, .75, .7>]
           [0.05 0.4 color rgbt <.75, .75, .75, .7> color rgbt <1, 1, 1, 1>]
           [0.4 1.0 color rgbt <1, 1, 1, 1>      color rgbt <1, 1, 1, 1>]
        }  
 }         
 
 #declare clouds_1= 
  sphere { <0, 0, 0>, 1
     hollow on
     pigment {
  
    wrinkles

         turbulence 2
        octaves 60
        omega 0.7
        lambda 2

            color_map {
           [0.0 0.05 color rgbt cloudcolor1 color rgbt <.75, .75, .75, .7>]
           [0.05 0.4 color rgbt <.75, .75, .75, .7> color rgbt <1, 1, 1, 1>]
           [0.4 1.0 color rgbt <1, 1, 1, 1>      color rgbt <1, 1, 1, 1>]
        }  
        scale 1
     }
     finish { ambient 0 diffuse 1.0 reflection 0 }
  }
#declare clouds_2=   sphere { <0, 0, 0>, 1.002
     hollow on
   
   pigment {          
   gradient y
     turbulence 1.3
   scale 2
   translate y*1
 pigment_map {
   [0   cloudtex_2 scale 1/4   ]
  // [0.25 color Clear ]
//   [0.5    cloudtex_1 scale 600  ]       
 //       [0.75 color Clear ]
//   [1  cloudtex_1 scale 1200  ]


   }
        
 }
     finish { ambient 0 diffuse 1.0 reflection 0 }
  }
 
  
 #declare halo_2=sphere
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    { 
      // emission 1/10000*<182,192,201>/256  
         // absorption 1/10000
      scattering {4,1/50*<0.5,0.75,1> }
      density
 
     {
   function {
   //    exp(1/(sqrt(x*x+y*y+z*z)) )  
   2* (1/(pow(sqrt(x*x+y*y+z*z),.75)))

// * f_granite(x,y,z)

     }
     
   density_map
        { [0 rgbt <0,0,0,1>] 
          [0.05 rgbt <0.5,0.6,0.7,0.5>]
          [1 rgbt <0.5,0.6,0.7,0>]
        }
      }
   
}
 }

scale 1.005 }

  1. declare carbon_planet=union {

object { //sphere {0,1} isosurface {

   function {
       f_sphere(x,y,z,1)

// if you wanna isosurface objecr, very sloooow ...

//+funk1(x,y,z)*0.01
   }

contained_by { sphere {0,2} } threshold 0.0 accuracy 0.001 max_gradient 1.1

}

texture { carbon_tex_1}

 texture { carbon_tex_2}  

finish {ambient 0}

}


// object {clouds_1 scale 1.001}

object {clouds_2 scale 1.002}


object {halo_2}     
  scale planetsize

}

object { carbon_planet

 rotate <1,2,3>

}

</povray>

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

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

Date/TimeThumbnailDimensionsUserComment
current07:06, 29 March 2023Thumbnail for version as of 07:06, 29 March 20231,600 × 1,200 (1.42 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata