File:Lava planet 1.png

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

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

Captions

Captions

Lava planet

Summary

[edit]
Description
English: Lava planet that is very close to star. Daysoíde is hotter and has magma ocean. Nightside is coller and has less of magma.
Date
Source Own work
Author Merikanto

POV-Ray 3.8 source code

// //## lava planet // hotters side has magma cover // povray 3.8 source code

// 7.10.2022 0000.0000

camera {

   location <-3,1,-1>*0.75
   look_at <0,0,0>

}

light_source {

   <-1,0,0>*100*1000
   color rgb <1,1,1>*1

}

default { finish {diffuse 0.9 phong 0.00 ambient 1} }



  #declare Earth_Radius=1;
  1. declare Media_Intensity=0.15*200;

//#declare Media_Emission=0.065*10;

  1. declare Media_Eccentricity=0.56;
  2. declare Atmosphere_Top=0.03;

//#declare Cloud_Brightness=0.42; //#declare Light_Intensity=4.1;

  1. declare atm_samples= 20;




  1. declare tex1base1 = function {
    pigment {
//   crackle
  //  wrinkles
    // agate
       granite
       scale 3
      // turbulence 0.03  
   turbulence 0.5
   scale 1/5
   }

}

  1. declare tex1base2 = function {
    pigment {
       
       crackle
       //scale 1/3 
        scale 1/10
       turbulence 1/3   
   }

}


  1. declare cmap1= color_map {
       [0 color rgb <0.03, 0.03, 0.03>*5 ]
   [0.2 color rgb <0.12, 0.06, 0.06>*1 ]
   [0.3 color rgb <0.39, 0.09, 0.16> ]
   [0.4 color rgb <0.54, 0.10, 0.13> ] 
   [0.5 color rgb <1.00, 0.40, 0.10> ] 
   [1.0 color rgb <0.92, 0.92, 0.00> ]    
    }
 
 

  1. declare cmap1b= color_map {
      [0.0 color rgb <0.92, 0.92, 0.00> ]    
         [0.25 color rgb <1.00, 0.40, 0.10> ] 
         [0.3 color rgb <0.54, 0.10, 0.13> ]     
     [0.35 color rgb <0.39, 0.09, 0.16> ]
      [0.45 color rgb <0.12, 0.06, 0.06>*1 ]           

       [0.5 color rgb <0.03, 0.03, 0.03>*5 ]


    }
  




  1. declare cmap2=
      color_map {
          [0.0 color rgbt <0.92, 0.92, 0.00,0.1> ]  
                        
           [0.25 color rgbt <1.00, 0.40, 0.10,0.6> ]  
           [0.5 color rgbt <0.54, 0.10, 0.13,0.9> ]   

          [1.0 color rgbt <0.12, 0.06, 0.11,1.0> ]
          
    }
      
      
      
  1. declare cmap3= color_map {
          [0.0 color rgbt <0.92, 0.92, 0.00,0.1> ]  
             
          [0.15 color rgbt <1.00, 0.40, 0.10,0.6> ]                                           
          [0.2 color rgbt <0.54, 0.10, 0.13,0.9> ]                                             
          [0.75 color rgbt <0.39, 0.09, 0.16,1.0> ]
          [0.85 color rgbt <0.12, 0.06, 0.11,1.0> ]     
          [1 color rgbt <0.03, 0.03, 0.03,1.0> ]
 
    } 
           
          
  1. declare cmap4=
     color_map {  
       [0 color rgb < 1.00, 0.99, 0.75 > ]  
       [1/24 color rgb < 1.00, 0.89, 0.48>]
     [1.5/24 color rgb <1.00, 0.80, 0.17 > ]
       [2/24 color rgb <0.99, 0.31, 0.05 > ]
       [2.5/24 color rgb <0.75, 0.03, 0.00 > ]
       [3/24 color rgb <0.67, 0.04, 0.01 > ]     
       
        [3.5/24 color rgb <0.42, 0.07, 0.10 > ]
       [4/24 color rgb < 0.37, 0.03, 0.03> ]        
         
        [7/24 color rgb <0.26, 0.14, 0.20 > ]
       [12/24 color rgb < 0.12, 0.06, 0.11,1.0> ]        
        [24/24 color rgb < 0.12, 0.06, 0.11,1.0>*0.75 ]         
}

#declare cmap4b=                 
           
     color_map {  
       [0 1/24 color rgb < 1.00, 0.99, 0.75 >*2 color < 1.00, 0.89, 0.48>*1.5 ]  
       [1/24 1.5/24 color rgb < 1.00, 0.89, 0.48>*1.5 color <1.00, 0.80, 0.17 >*1.2  ]
     [1.5/24 2/24 color rgb <1.00, 0.80, 0.17 >*1.2 color <0.99, 0.31, 0.05 >*1  ]
       [2/24 2.5/24 color rgb <0.99, 0.31, 0.05 > color <0.75, 0.03, 0.00 >  ]
       [2.5/24 3/24 color rgb <0.75, 0.03, 0.00 > color <0.67, 0.04, 0.01 >  ]
       [3/24 3.5/24 color rgb <0.67, 0.04, 0.01 > color <0.42, 0.07, 0.10 >  ]     
       
        [3.5/24 4/24 color rgb <0.42, 0.07, 0.10 > color < 0.37, 0.03, 0.03>]
       [4/24 7/24 color rgb < 0.37, 0.03, 0.03> color <0.26, 0.14, 0.20 > ]        
         
        [7/24 12/24 color rgb <0.26, 0.14, 0.20 > color < 0.12, 0.06, 0.11,1.0> ]
       [12/24 24/24 color rgb < 0.12, 0.06, 0.11,1.0> color < 0.12, 0.06, 0.11,1.0>*0.75]        
        [24/24 color rgb < 0.12, 0.06, 0.11,1.0>*0.75 ]         
}

  1. declare cmap5=
     color_map {     
     
          [-1 color rgb < 1.00, 1.00, 0.98 > ]     
      [0 color rgb < 1.00, 1.00, 0.96 > ]      
        [1/100 color rgb <0.99, 1.00, 0.69  > ]      
      [2/100 color rgb < 0.97, 1.00, 0.34 > ]      
        [3/100 color rgb < 0.97, 1.00, 0.34 > ]    
         [4/100 color rgb < 0.98, 0.84, 0.15 > ]      
        [5/100 color rgb < 0.99, 0.58, 0.02 > ]      
      [6/100 color rgb < 1.00, 0.35, 0.01 > ]      
        [7/100 color rgb < 0.84, 0.44, 0.33 > ]               
          [8/100 color rgb < 0.49, 0.26, 0.32 > ]      
        [9/100 color rgb < 0.44, 0.20, 0.25 > ]      
      [10/100 color rgb < 0.31, 0.24, 0.32 > ]      
        [11/100 color rgb < 0.21, 0.15, 0.21 > ]  
        
        
                [50/100 color rgb <0.09, 0.06, 0.08  > ]      
    
              [100/100 color rgb <0.09, 0.06, 0.08  >/2 ]   
   }  
     
 
 
 
 
 
 
#declare cmap5b =                  
           
     color_map {     
     
          [-1 color rgb < 1.00, 1.00, 0.98 > ]     
      [0 color rgb < 1.00, 1.00, 0.96 > ]      
        [1/100 color rgb <0.99, 1.00, 0.69  > ]      
      [2/100 color rgb < 0.97, 1.00, 0.34 > ]      
        [3/100 color rgb < 0.97, 1.00, 0.34 > ]    
         [4/100 color rgb < 0.98, 0.84, 0.15 > ]      
        [5/100 color rgb < 0.99, 0.58, 0.02 > ]      
      [6/100 color rgb < 1.00, 0.35, 0.01 > ]      
        [7/100 color rgb < 0.84, 0.44, 0.33 > ]               
          [8/100 color rgb < 0.49, 0.26, 0.32 > ]      
        [9/100 color rgb < 0.44, 0.20, 0.25 > ]      
      [10/100 color rgb < 0.31, 0.24, 0.32 > ]      
        [11/100 color rgb < 0.21, 0.15, 0.21 > ]  
        
        
                [50/100 color rgb <0.09, 0.06, 0.08  > ]      
    
              [100/100 color rgb <0.09, 0.06, 0.08  >/2 ]   
   }  
     
 
  
 
 
  1. declare ltex1 = texture

{

 pigment {           
     
       function {
       tex1base1(x,y,z).gray
       
       }
       
       

      
       color_map { 
       
       
    //   cmap1
      
  //    cmap2
      
     // cmap3
      
      cmap5
       }


 }
  
 
  normal {
  
            function {
       tex1base1(x,y,z).gray
       
       }
  
     bump_size 0.0
  } 
  
   
  finish {
 ambient 0.5 
  diffuse 0.4 
 // phong 0.05
 // specular 0.05
  
  }

}


  1. declare ltex2 = texture

{

 pigment {           
     
     crackle
//   wrinkles  
   
  // agate
// granite
// gradient y

// frequency 1/2 scale 1/3

//  sine_wave 

// ramp_wave

scale  1
turbulence 1   
    
color_map {
cmap2
  }
 
 
 }


  finish {
 ambient 0.1 
  diffuse 0.65 
 // phong 0.05
 // specular 0.05
  
  }

}



  1. declare ltex3 = texture

{


        pigment {           
     
       function {
       tex1base1(x,y,z).gray
       
       }
   
     
 


     color_map {
     cmap4
     }     
           
           
 
 }


    /*
  normal {
     
       function {
       tex1base1(x,y,z).gray
       
       }
       
       bump_size -1
       
       
  }
      
      */
  
  finish {
 ambient 1 
  diffuse 0.65 
 // phong 0.05
 // specular 0.05
  
  }

}


  #declare ltex4 =  texture

{


  pigment {
  
  gradient x
  
      //  turbulence 0.15  
        
       turbulence 0.3 
         
        octaves 6000
           poly_wave 0.9   
           
           
     color_map {
  
     
    cmap4b 
   //    cmap5
   //  cmap4
     
    
  //  cmap3
   
 //  cmap2
     
  //   cmap1
     
//       cmap1b
     //  scale 0.5
    
     }     
       
    
    scale 2
    
    translate x*1
    
  }
   
     
 





    /*
  normal {
     
       function {
       tex1base1(x,y,z).gray
       
       }
       
       bump_size -1
       
       
  }
      
      */
  
  finish {
 ambient 0.3 
  diffuse 0.65 
 // phong 0.05
 // specular 0.05
  
  }

}




 #declare lava_planet1= object 
          {
          
          sphere {0,1}
          
          
          texture {
          pigment {
          
          color rgb <1,1,1>*0.1
          }
             
           normal {
             // agate 
            // wrinkles
              granite
              scale 0.01
              bump_size 10
              
           }  
             
          finish {
          ambient 0
          diffuse 0.3
          }
          
          }
             
             
             
        //   texture { ltex1 }
               

                            
  //         texture { ltex3 }    
       //        texture { ltex2 }  
  } 
 
 
 #declare lava_planet2= object 
          {
          
          sphere {0,1*1.0001}
          
     //      texture { ltex1 }
               

                            
           texture { ltex3 }    
     //          texture { ltex2 }  
  }        
          
   
   
   #declare lava_planet3= object 
          {
          
          sphere {0,1*1.0001}
          
     //      texture { ltex1 }
               

                            
           texture { ltex4 }    
     //          texture { ltex2 }  
  }        
        
   
 
 
  #declare clouds1= object 
          {
          
          sphere {0,1*1.01}
          
           texture { 
           
           pigment {
           granite   
           scale 1  
           turbulence 2
          // omega 1
           
           
                    color_map {
          [0.0 color rgbt <0.49, 0.26, 0.32,1> ]  
                        
                 [0.5 color rgbt <0.44, 0.20, 0.25,995/1000> ]
          
 
             [1.0 color rgbt <0.31, 0.24, 0.328, 850/1000> ]
           }
      
           }
           
          
          
          
          normal {
          
                
           granite   
           scale 1/2  
           turbulence 5
         
           
            }
         
         
         finish {
    //    ior 1.6
       
       //  ambient 0
         }
               
         
         
        }
    
  }        
          
   
   
   
#declare Density2=density { function
    {
    exp(-6.7*(sqrt(x*x+y*y+z*z) -1.00001)/0.05 )/1000 
    
    }   
    }
    
   
   
 #declare Mat_Atm2 =
 material {
   texture {
     pigment {
       color rgbt <1.0, 1.0, 1.0, 1.0>
     }
   }
   interior {
     media {
       method 3
         
       //   scattering { 5 color rgb  <0.2, 0.4, 1>*Media_Intensity*0.7/2 eccentricity Media_Eccentricity }
 
        //  emission  <0.2, 0.4, 1>*0.5/100
          
           scattering { 5 color rgb  <0.2, 0.4, 1>*Media_Intensity*10 eccentricity Media_Eccentricity }
 
          emission  <0.2, 0.4, 1>/5
          
       // samples 20,20
         samples atm_samples  // increase = more precise
 //intervals 1
       
       density { 
      //   Density1
       
         Density2
       }
     }
   }
 } 
    
   
   
#declare atmos2=difference {
 sphere {
   <0,0,0>, 1
 }
 sphere { 
   <0,0,0>, 1
   scale (Earth_Radius+0.005)/(Earth_Radius+Atmosphere_Top)
 }
 material { Mat_Atm2 }
 scale Earth_Radius+Atmosphere_Top
 hollow on

}




union {


object { lava_planet1  } 
  object { lava_planet3  } 

  object { clouds1  }  
 object {atmos2}
 
}         

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
current08:53, 7 October 2022Thumbnail for version as of 08:53, 7 October 20221,600 × 1,200 (659 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata