File:Carbon rich planet povray 4 r 1.png

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

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary

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

Pov-Ray 3.7 source code

// // carbon rich planet // pov-ray 3.7 source code // 21.03.2023 v 0000.0004 //

  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, -1>*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]
       }

}

// surface of planet function 
  1. declare funk1= function {

( f_wrinkles(x,y,z) + f_wrinkles(x*3,y*3,z*3)

+   f_wrinkles(x*10,y*10,z*10)
 +   f_wrinkles(x*30,y*30,z*30) 
+   f_wrinkles(x*100,y*100,z*100)

+ f_wrinkles(x*300,y*300,z*300)

+   f_wrinkles(x*1000,y*1000,z*1000) 

+ f_wrinkles(x*3000,y*3000,z*3000)

+   f_wrinkles(x*10000,y*10000,z*10000) 

)/ 9 }

  1. declare carbon_tex_1 = texture {
   pigment {
   function 
   {
       funk1(x,y,z)
   }  
       pigment_map {
       [0  blacker1]
       [ 0.5 blacker1 ]
       [1 browner1]
       } 
   }
   normal {
   
   function 
   {
       funk1(x,y,z)*1
   }   
   
   scale 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 object, 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>

}

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
current19:36, 21 March 2023Thumbnail for version as of 19:36, 21 March 20232,400 × 1,800 (2.07 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata