File:Terraplan2.png

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

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

Captions

Captions

Terrestric planet

Summary[edit]

Description
English: terrestric planet. Maybe like Anarres or Regis III
Date
Source Own work
Author Merikanto

POV-Ray 3.9 source code

camera { location <0,0,1>*2.5 look_at <0,0,0> }


light_source { <0,1,1>*1000*1000*1459 color rgb <1,1,1>*2 }


  1. declare planet1=object {

sphere {0,1}


texture {

pigment {

 //  gradient y	

granite ////marble //agate

scale 5 octaves 600

//turbulence 0.5 rotate z*90

//sine_wave

  pigment_map {    
  [0 color rgbt <0.0,0.0,0.06,1>]  
        [0.14 color rgb <0.0,0.0,0.06,1>]

[0.15 color rgb <0.0,0.3,0.01>]

     //  [0.25 color rgb<.8431, .7,.5>*0.75]
    //   [0.5 color rgb <0,0.2,0>   ]       
       [0.75 color rgb<.8431, .7,.5>*0.75]

[1 color <0.5,0.5,0.5>]

} }

scale 1	
      normal {

granite
turbulence 0.5

rotate z*90 // scale 0.1

bump_size -0.2
}
}
 
 

texture {

pigment {

 wrinkles

//agate

// granite
 octaves 600
  
  turbulence 0.5
   scale 0.1

//sine_wave

  pigment_map {

[0 color rgbf<.8431, .6863,.5,0.7> ]

       [1.0 color rgbf<.8431, .6863,.5,0.9>*1.1 ]


} }

scale 1	
   normal {
agate     
scale 0.1
bump_size -0.1
}
}  




}




  1. declare cloud1= texture {

pigment {

// bozo agate // granite


octaves 60

turbulence 0.25 //scale x*3

sine_wave

pigment_map {

[0 color rgbt <1,1,1,1> ] [0.3 color rgbt <1,1,1,1> ] // [0.5 color rgbt <1,1,1,0> ]

[0.5 granite scale 0.1 turbulence 0.2 color_map { [0 color rgbt <1,1,1,1>] [0.5 color rgbt <1,1,1,0.5>] [0.53 color rgbt <1,1,1,0.5>] [1 color rgbt <1,1,1,0>] } ] [0.8 color rgbt <1,1,1,1> ] [1.0 color rgbt <1,1,1,1> ] }




} //pig


normal {
      agate

// granite


octaves 60

turbulence 0.25 //scale x*3

sine_wave

}
finish {ambient 0.1
 brilliance 0.1
}

} // tex



  1. declare cloud2= texture {

pigment { // agate granite // wrinkles scale 0.25 sine_wave

octaves 60

turbulence 0.15 //scale x*3

pigment_map {

  	[0.0  wrinkles scale 0.1 color_map { 

[0 color rgbt <1,1,1,1>] [0.4 color rgbt <1,1,1,0.75>] [0.73 color rgbt <1,1,1,0.25>] [1 color rgbt <1,1,1,0>] } ] [0.5 color rgbt <1,1,1,1> ] [1.0 color rgbt <1,1,1,1> ]


}




} //pig

normal {
   	granite

// wrinkles scale 0.25 sine_wave

octaves 60

turbulence 0.15

}

finish {ambient 0.1
 brilliance 0.1
}

} // tex



//## atmo 11 object {

sphere {0,1.002}

pigment {
color rgbt <0.02,0.02,0.2,0.8>
}


// finish {ambient 1}

}


// atmo media

sphere

{ 0,1.02 pigment { rgbt 1 } hollow
  interior
  { media
    { scattering { 2, rgb <0.5,0.5,1>*10 }
    }
  }
}





object {

sphere {0,1} //plane { z,0 }


texture {

   gradient y
  turbulence 0.05

//   scale y*1/4
   sine_wave
   
  
  texture_map {
   [0/6 pigment {color rgbt <1,1,1,1>} ]
    [1/6 cloud1  ] 
    [2/6 pigment {color rgbt <1,1,1,1>} ]
    [3/6 cloud2  ] 
    [4/6 pigment {color rgbt <1,1,1,1>} ]
    [5/6 cloud1  ] 
    [6/6 pigment {color rgbt <1,1,1,1>} ]
   } 
        
     /*
    texture_map {
    
    
    [0/3 cloud2  ] 
  
    [1/3 pigment {color rgbt <1,1,1,1>} ]
  
    [2/3 cloud1  ] 
    [3/3 pigment {color rgbt <1,1,1,1>} ]
   }    
       */
   scale 2
  translate y*-1

}


  scale 1.01

}




object {planet1}



Old Povray 3.7 source code 1


  // POV-Ray 3.7 source code of terrestrial planet, quite simple approach.

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


global_settings {

   assumed_gamma 1.0

}


default { finish { ambient 0.000002 diffuse 0.7 } }


camera { location <0,0,-17000> }

light_source { 150000000*<-1, 1, -1> rgb 1 }

//planet


//sphere

//  {  
    
 
  object {
          sphere { 0,1
          scale 7000
          }
  /*  
 isosurface {   
 function {
  f_sphere(x,y,z,1)-f_granite(x,y,z)*0.001
 
 }
 
 }
  */
  
  
 // 0, 7000
  pigment
     {
   //  bozo                  // kasvit 100,100,120
   // granite
    
        
  
  //  crackle
  ////  scale 1 
      function {
      // f_snoise3d(x,y,z)
   
      
       f_granite(x,y,z)*-1
       
      // + f_granite(x*5,y*5,z*5)+ f_granite(x*12,y*12,z*12)
        }                                                                           
      
    //  scale 0.1 
 //    rotate <10,20,30>
      
            sine_wave
        
        
               color_map 
        {  
 
        
            [0.00 color rgb <0.72, 0.59, 0.44>]    // desert
            [0.05 color rgb <0.52, 0.44, 0.33>]  
            [0.25 color rgb  < 0.28, 0.36, 0.11>/2]
           [0.51 color rgb <0.11, 0.15, 0.05>/2]      // forest
           [0.52 color rgb <0.0, 0.0, 0.06>] 
         [1.0 color rgb <0.0, 0.0, 0.06 > ]
                                        //sea
          
      
        }
        
     turbulence 0.1
     scale 15000  // 20000 huva
    // translate 100*x
     }
  


}



        #declare Clouds0 = pigment {
     bozo
     turbulence 1
     color_map {
       [0.0 color White filter 1]
       [0.5 color White filter 1]
       [1.0 color White filter 1]
     }
   }     
    
     #declare Clouds1 = pigment {
     bozo
     turbulence 1
     color_map {
       [0.0 color White filter 1]
       [0.5 color White*1.5 ]
       [1.0 color White filter 1]
     }
   }           
   
   // ok
 #declare Clouds2 = pigment {
  //  crackle
  //dents
   granite
 //  agate
 //  turbulence 5
 //  lambda 1
 //  omega 1   
 octaves 13
   color_map {
     
         [0.0 color White filter 1]
     [0.9 color White filter 0]
  
         [1.0 color White*1 filter 0]
     
     }
   }       
   // meybe nok
 #declare Clouds3 = pigment {
   marble
   turbulence 1
   color_map {
          [0.0 color White*1.5 filter 0]
     [0.5 color White filter 1 ]
     [1.0 color White*1.4 filter 0]
     
   }
 }
// ok
 #declare Clouds4 = pigment {
   bozo
   scale 0.05
 //agate
 //  granite
   
   
   turbulence 5
  
   omega 0.1
   lambda 0.5
   
   octaves 67 
  
  // scale 0.33
    
   color_map {
   
   //  [0.0 color White filter 1]
   //  [0.5 color White]
   //  [1.0 color White filter 1]
          [0.0 color White filter 1]  
            [0.35 color White filter 1]  
     [0.75 color White]
     [1.0 color White*1.5]
   }
 }
   
  
  
 #declare CloudArea = texture {
   pigment {
     gradient y  
    //   onion
//     sine_wave
  
    turbulence 0.5
     //scale 0.2
      
   //  scale <10,10,10>
     
     pigment_map {  
     
     // clouds4 ok
       [0.00 Clouds2 scale 1]
       [0.2 Clouds0]
       [0.50 Clouds2 scale 2 ]
       [0.8 Clouds0]
       [1.00 Clouds2 scale 1]
       
        
        /*
       [0.0 Clouds0 scale 1]
       [1/8 Clouds2 ]
       [2/8 Clouds0]
       [3/8 Clouds4 scale 1]
       [4/8 Clouds0]
       [5/8 Clouds4 ]
       [6/8 Clouds0]
       [7/8 Clouds2 ]
       [8/8 Clouds0]
          */
     
     }
   }
 
 
  finish { 
  //ambient 0.000002
   
  diffuse 0.9
 // phong 0.1
 // specular 0.4
  reflection 0.9
  
  }
 
 
 } 
  
  
  
 
  
  
  
  
  
     
  1. declare cloud_area_1=
    pigment {
      
      
          
    granite 
    turbulence  1
    scale 1
      
      pigment_map {
  
      [0.0 color rgbt Clear ] 
       
      [0.3 color rgbt Clear ] 
            
      [0.4  granite scale 0.05
                  turbulence 2
               color_map {
                   [0 rgbf <1,1,1,1>]    
                   [0.7 rgbf <1,1,1,1>]
                   [1 rgbf <1,1,1,0>]
               } 
      
      ] 
  
      
      [0.5  granite scale 0.1
                  turbulence 5
               color_map {
                   [0 rgbf <1,1,1,1>]    
                   [0.4 rgbf <1,1,1,1>]
                   [1 rgbf <1,1,1,0>]
               } 
      
      ]   
         
      
      [1.0 color rgb White ] 
         
      
      
      }   
          
          
 
 } // pig


#declare cloud_area_2=
    pigment {
      
      
          
    //granite 
      bozo
    turbulence  1
    scale 200
      
      pigment_map {
  
      [0.0 color rgbt Clear ] 
       
      [0.3 color rgbt Clear ] 
            
      [0.4  granite scale 0.05
                  turbulence 2
               color_map {
                   [0 rgbf <1,1,1,1>]    
                   [0.7 rgbf <1,1,1,1>]
                   [1 rgbf <1,1,1,0>]
               } 
      
      ] 
  
      
      [0.5  granite scale 0.1
                  turbulence 5
               color_map {
                   [0 rgbf <1,1,1,1>]    
                   [0.4 rgbf <1,1,1,1>]
                   [1 rgbf <1,1,1,0>]
               } 
      
      ]   
         
      
      [1.0 color rgb White ] 
         
      
      
      }   
          
          
 
 } // pig
  
  
  
  
  
  
  
  
  
#declare CloudAreaXA= sphere 
           {
           0,1.005 
           
        
   texture { 
         
         gradient x  
         turbulence 2
         octaves 60
        
           texture_map { 
            [0.0 pigment {cloud_area_2} finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]
            [0.5 pigment {cloud_area_1}  finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]         
            [1.0 pigment {cloud_area_2} finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]
        
           }
                     
        scale 2             
        translate x*1
      //  scale 2   
     

       }
  
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 sphere
  {
  0, 7004
  

  
 //  texture {
   
 //  pigment {color Red}
 //  CloudAreaXA
  
     texture { 
         
         gradient x  
         turbulence 2
         octaves 60
        
           texture_map { 
            [0.0 pigment {cloud_area_2} finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]
            [0.5 pigment {cloud_area_1}  finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]         
            [1.0 pigment {cloud_area_2} finish {brilliance 0.4 diffuse 0.6} scale 0.5 ]
        
           }
                     
        scale 2             
        translate x*1
      //  scale 2   
     

   //    }
  
  
   
   scale 7004
   }
  
 
     
     
       
         rotate <30, 0, -45>
   
 
     
     
 
 
 
  }    
  
  
  
 
 
 

sphere {

  0, 1.015
  hollow
  material
  { 
 // texture {pigment {color <1,0,0> } }// koe  
  
  
    texture
    {
      pigment
      {
        color rgbt 1
      }
    }
    interior
    {
      media
      {     
 

        //   scattering { 1, <0.3, 0.3, 1>/500 }
          // scattering { 1, <0.1, 0.1, 0.5>/1000}       
                 scattering { 1, <0.1, 0.1, 0.4>/10000}  
            method 3 

              
              
        
        density
        {
          spherical
          density_map
          {   
            /*
            [0     rgb <0.25, 0.5, 1>]
            [0.0001 rgb <0.25, 0.5, 1>]
            [0.0001 rgb <0.9, 1, 1>]
            [1    rgb <0.9, 1, 1>]  
              */
              
            [0      rgb <0.25, 0.5, 1>]
            [0.0001 rgb <0.25, 0.5, 1>]
            [0.0001 rgb <0.9,   1, 1>]
            [1      rgb <0.9,   1, 1>]  
            
          }
        }
                
         
      }
    }
  
  }   


scale 7000 }
















Old code


// POV-Ray 3.7 souce code of terrestrial planet, quite simple approach.

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


global_settings {

   assumed_gamma 1.0

}


default { finish { ambient 0.000002 diffuse 0.7 } }


camera { location <0,0,-17000> }

light_source { 150000000*<-1, 1, -1> rgb 1 }

//planet


sphere

  {
  0, 7000
  pigment
     {
   //  bozo                  // kasvit 100,100,120
   // granite
    
        
  
  //  crackle
  ////  scale 1 
      function {
      // f_snoise3d(x,y,z)
   
      
       f_granite(x,y,z)
       
      // + f_granite(x*5,y*5,z*5)+ f_granite(x*12,y*12,z*12)
        }                                                                           
      
    //  scale 0.1 
 //    rotate <10,20,30>
      
            sine_wave
      
            colour_map
        {            
    
        /*
           [.5   colour rgb <30, 45, 160>/(255*3)   ]     
             [.55   colour rgb <230, 200, 180>/(255)   ] 
                   [.8   colour rgb <150, 120, 130>/(255)   ] 
       
        */
                    // sea
                   [0.33   colour rgb <30, 45, 160>/(255*3)   ]     
                   
                   // plants
                   [ 0.55   colour rgb <100,100,120>/(255*3)/2  ]
                   
                   [.55   colour rgb <150, 120, 130>/(255)/2   ]   
                    [.9   colour rgb <230, 200, 180>/(255)/2   ] 
                    [.9999   colour rgb <230, 200, 180>/(255)/1.5   ] 
        }

    
    /*
     colour_map
        {
  
             [.3   colour rgb <230, 200, 180>/(255)   ] 
                   [.7   colour rgb <150, 120, 130>/(255)   ] 
       
        }
      */
    /*
     colour_map
        {
        [.5   colour rgb <30, 45, 160>/(255*3)   ]     
        [.5 colour rgb <200,170,190>/(256*4)  ] 
              [1.00 colour rgb <200,170,190>/(256*8)  ] 
        }
      */
     turbulence 0.1
     scale 15000  // 20000 huva
    // translate 100*x
     }

}



        #declare Clouds0 = pigment {
     bozo
     turbulence 1
     color_map {
       [0.0 color White filter 1]
       [0.5 color White filter 1]
       [1.0 color White filter 1]
     }
   }     
    
     #declare Clouds1 = pigment {
     bozo
     turbulence 1
     color_map {
       [0.0 color White filter 1]
       [0.5 color White*1.5 ]
       [1.0 color White filter 1]
     }
   }           
   
   // ok
 #declare Clouds2 = pigment {
   agate
   turbulence 1
   color_map {
     
     [0.0 color White filter 1]
  //   [0.3 color White filter 1]
     [1.0 color White*1.3 filter 0]
     
     
     }
   }       
   // meybe nok
 #declare Clouds3 = pigment {
   marble
   turbulence 1
   color_map {
          [0.0 color White*1.5 filter 0]
     [0.5 color White filter 1 ]
     [1.0 color White*1.4 filter 0]
     
   }
 }
// ok
 #declare Clouds4 = pigment {
   granite
   turbulence 0.1
   color_map {
   
   //  [0.0 color White filter 1]
   //  [0.5 color White]
   //  [1.0 color White filter 1]
          [0.0 color White filter 1]
  //   [0.5 color White]
     [1.0 color White*1.5]
   }
 }
   
  
  
 #declare CloudArea = texture {
   pigment {
     gradient y  
    //   onion
//     sine_wave
  
    turbulence 0.2
     //scale 0.2
      
   //  scale <10,10,10>
     
     pigment_map {  
     
     // clouds4 ok
       [0.00 Clouds2 scale 1]
       [0.2 Clouds0]
       [0.50 Clouds4 ]
       [0.8 Clouds0]
       [1.00 Clouds2 scale 1]
       
        
        /*
       [0.0 Clouds0 scale 1]
       [1/8 Clouds2 ]
       [2/8 Clouds0]
       [3/8 Clouds4 scale 1]
       [4/8 Clouds0]
       [5/8 Clouds4 ]
       [6/8 Clouds0]
       [7/8 Clouds2 ]
       [8/8 Clouds0]
          */
     
     }
   }
 
 
  finish { 
  //ambient 0.000002
   
  diffuse 0.9
 // phong 0.1
 // specular 0.4
  reflection 0.9
  
  }
 
 
 } 
  
  
  
  
  
 sphere
  {
  0, 7004
  

  
   texture {
   
   CloudArea
   
   scale 7004
   }
  
 
     
     
       
         rotate <30, 0, -45>
   
 
     
     
 
 
 
  }    
  
  
  

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
current16:43, 25 September 2022Thumbnail for version as of 16:43, 25 September 20221,600 × 1,200 (859 KB)Merikanto (talk | contribs)Update of look
12:26, 17 September 2022Thumbnail for version as of 12:26, 17 September 20221,600 × 1,200 (1.4 MB)Merikanto (talk | contribs)New clouds
18:53, 15 September 2022Thumbnail for version as of 18:53, 15 September 20223,600 × 2,700 (2.27 MB)Merikanto (talk | contribs)New layout
11:14, 5 April 2022Thumbnail for version as of 11:14, 5 April 20222,400 × 1,800 (1.17 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata