File:Star and two exoplanets 1.png

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

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

Captions

Captions

Star and two exoplanets

Summary[edit]

Description
English: Star and two exoplanets. Terrestrial exoplanet makes partial eclipse of star. The star has giant spots.
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

////////////////////////////////////////
//  star and two fictional exoplanets
//  neptune-like giant end terrestrial
// POV-Ray 3.7 source code
// 2.2.2023 0000.0001
//
//
#include "functions.inc" 

camera { location <0,0,-10> look_at 0 angle 28 }

/*

 [1600x1200Q11, AA 0.3]

Width=1600 Height=1200 Antialias=On Quality=11 Antialias_Threshold=0.3

  • /

sky_sphere {

  pigment {
  
  bozo    
    //granite
  //  wrinkles
   // dents
    
    scale 0.001
  color_map
  {
   [0 color rgb 0]
   [0.8 color rgb 0]
   [1 color rgb 1]
   }
   
  }

}


/* light_source {

   <20,4,-10> *1000*1000*1000
   color rgb 3

}

  • /


  1. declare sun1= union {
 // photosphere
 
sphere {
0,0.8    

texture {
pigment {
    crackle
    turbulence 0.5
    scale 1/10
    
color_map {
   [ 0 color rgb <1,1/3,0> ]
   [1 color rgb <1,1/2,0> ]   
     }   
        
} 

finish {emission 1.25*2 reflection 0}
         
     }
     
  // spots
  

texture {

pigment {
granite
     scale 4
    
color_map { 
   [0 color rgb <1,1,1,1> ] 
    [0.2 color rgb <1,1,1,1> ] 
   [ 1 color rgb <1/2,1/2,1/4,0> ]
   
  
     }
}

}     
         
         
         
}
     
     
   sphere // outer corona
{ 0,2 pigment { rgbt 1 } hollow
  interior
  { media
    { emission 1
      density
      { spherical density_map
             
        { [0.0 rgbt <1/1000,1/3000,1/10000,1>]
          [0.2 rgbt <1/300,1/900,1/3000,1/2>]
          [0.8 rgbt <1/30,1/90,1/300,1>]
          [1 rgbt 1]
        }
      }
    }
 }

scale 1.7

}


/*

  // corona3

sphere{ <0,0,0>, 1

hollow no_shadow no_reflection

pigment{ rgbf 1} interior{ media{ emission 2 absorption 0.5 density{ spherical density_map{ [0.0 rgb 0] [0.1 rgb <0.001,0.001,0.001>] [0.7 rgb <0.3,0.3,0.3>/2] [0.9 rgb <1,1,1>/2] [1.0 rgb <2,2,2>/2] } } density{ // marble agate // bozo //granite // dents // wrinkles scale 5

turbulence 4 lambda 2 density_map{ [0.00 rgb 0.3/2] [0.33 rgb 1.0/2] [0.66 rgb 1.7/2] [1.00 rgbt 0/2] }

}


}}

scale 2 }

  • /
 /*
  // inner corona , cromosph ??

sphere{ <0,0,0> 1.0

hollow no_shadow no_reflection

pigment{ rgbf 1} interior{ media{ emission 2 absorption 0.5 density{ spherical density_map{ [0.0 rgb 0] [0.1 rgb <0.002,0.001,0.001>] [0.8 rgb <0.6,0.3,0.3>] // [0.9 rgb <1,0.9,0.9>] [1.0 rgb <4,2,2>] } } density{ bozo turbulence 10 lambda 2 density_map{ [0.00 rgb 0.3] [0.33 rgb 1.0] [0.66 rgb 1.7] [1.00 rgbt 0] } }


}}

scale 1.3 }

   */
            
            /*
// corona2
sphere {0,1
pigment { rgbt 1 } hollow 


  interior
  { media
    {
      emission 2
    // scattering { 3, 1 
  //  samples 10,20
  // } 
    
density {
       radial 
       turbulence .15
       lambda 2 
       turbulence 0.5  
    //   omega 0.7
       frequency 15
        
       // density_map {
        // //      [0 rgb <.125,.5,1.33>*.025*(1/1)]
         // //     [1 rgb <.25,.67,1.25>*(.033+(1.05/15))*(1/1)]
          // //    }   
         
                  density_map {
               [0 rgb <.2,.2,.2>*.025*(1/1)]
               [1 rgb <.8,.8,.8>*(.033+(0/15))*(1/1)]
            
             
               }
            
            
            
         sine_wave 
         
         rotate z*45
        // scale <.25,.125,.25>*2 rotate <5,0,5>    
         
         rotate x*0
      //   translate y*1
        
    //    translate y*3
         
         
         }  
           
        scale 0.7   
  }  //media
  
   media
    { emission 1
      density
      { spherical density_map
             
        { [0.0 rgbt <1/100,1/100,1/100,1>]
          [0.2 rgbt <1/30,1/30,1/30,1/2>]
          [0.8 rgbt <1/3,1/3,1/3,1>]
          [1 rgbt 1]
        }
      }
    }

// }

  } // interior  
  
  
  scale 1.4 
  
  }
         
         */
 








 



 // inner corona , cromosph ??
  1. declare inner1=sphere{

<0,0,0> 1.2

hollow no_shadow no_reflection

pigment{ rgbf 1} interior{ media{ emission 2 absorption 0.5 density{ spherical density_map{ [0.0 rgb 0] [0.3 rgb <0.002,0.001,0.001>] [0.6 rgb <0.6,0.3,0.3>] [0.7 rgb <1,0.9,0.9>] [1.0 rgb <4,2,2>] } } density{ bozo turbulence 2 lambda 2 density_map{ [0.00 rgb 0.3] [0.33 rgb 1.0] [0.66 rgb 1.7] [1.00 rgbt 0] } } density{ bozo scale 3 turbulence 2 lambda 2 density_map{ [0.00 rgb 1.0] [0.33 rgb 0.0] [0.66 rgb 1.0] [1.00 rgbt 10.0] } } density{ bozo scale 1/5 turbulence 2 lambda 2 density_map{ [0.00 rgb 1.0] [0.33 rgb 0.0] [0.66 rgb 1.0] [1.00 rgbt 10.0] } } } } scale 1.4 // scale 0.55 // translate -3*z }


}

  1. declare planet1=

union {

sphere {

0,1

pigment { color <0,0,0.25> }

}  
  

sphere {0,1

pigment { rgbt 1 } hollow
  interior
  { media
    { scattering { 3, 1 
  //  samples 10,20
    }
    
           density
      { spherical density_map
             
        { [0.0 rgbt <1/2,1/2,1/2,1>]
          [0.05 rgbt <1/1,1/1,1/1,1/2>]
          [0.1 rgbt <1/1,1/1,1/1,1/2>]
          [1 rgbt 0.5]
        }
       }
    }
  }
  
  

scale 1.03  
  

}

}



  1. declare planet2= union {

// earthlike planet

sphere { 0, 0.05 no_reflection no_shadow pigment{ rgb <.2,.3,.8> } finish { ambient 0 specular 0.5 } normal { bumps 0.5 scale 0.001 } }

sphere{ 0, 0.0505 no_reflection no_shadow pigment { granite color_map{ [0.00 rgbt <1,1,1,1>] [0.35 rgbt 1] [0.40 rgbt <1,1,1,0.8>] [0.50 rgb 0.8] [1.00 rgb 1.2] } scale 0.05 turbulence 0.3 lambda 2 omega 0.2 translate 0.1 } finish{ ambient 0 } }

sphere {0,1

pigment { rgbt 1 } hollow
  interior
  { media
    { scattering { 3, 1 
  //  samples 10,20
    }
    
           density
      { spherical density_map
             
        { [0.0 rgbt <1/2,1/2,1/2,1>]
          [0.05 rgbt <1/1,1/1,1/1,1/2>]
          [0.1 rgbt <1/1,1/1,1/1,1/2>]
          [1 rgbt 0.5]
        }
       }
    }
  }
  
  

scale 1.04*0.05  
  

}

}



  1. declare giant_planet_1=
 object {

sphere {<0 , 0 , 0> , 1.}

texture {

pigment {
function {
    (sin(y*pi)+1)/2 *f_wrinkles(0,y,0)  
   }

scale 1/4

color_map {  
 //    [0 color rgb <1/3,1/3,1>]
  // [1 color rgb <0.1,0.1,0.7>]

        [0 color rgb <0,1/3,1>/4]
   [1 color rgb <0,1,3/4>/2]
}
                      

} // pig

}


texture {

 pigment {
function {
    (sin(y*pi)+1)/2 *f_wrinkles(0,y*10,0)  
   }
 turbulence y*0.1
     scale 1/10
 //  sine_wave
color_map {  
     [0.0 color rgbt <0,0,1,0.7>] 
//[0.7 color rgbt <0,0,0, 1>]
   [1 color rgbt <0,0,1, 1>]
 }
                      
  warp 
  {
   black_hole <0.0,-0.25,-1>,0.15
        falloff 2
   strength 10.0  
    turbulence <0.25, 0.25, 0>
      inverse
    }
   } 
 finish
   {
reflection 0

refraction 1 } } // tex


texture {

 pigment {
function {
    (sin(y*pi)+1)/2 *f_wrinkles(0,y,0)  
   }
// turbulence y*0.05
   frequency 100
  sine_wave
color_map {  
     [0.0 color rgbt <1,1,1,1>] 
[0.8 color rgbt <1,1,1, 1>]
   [1 color rgbt <1,1,1, 0.995>]
 }
                      


}

} // tex


texture {

 pigment {
function {
    (sin(y*pi)+1)/2 *f_wrinkles(x,y*1000,z)  
   }
 turbulence y*0.05
//  sine_wave
color_map {  
     [0.0 color rgbt <1,1,1,1>] 
[0.7 color rgbt <1,1,1, 1>]
   [1 color rgbt <1,1,1, 0.5>]
 }
                      
       warp 
  {
   black_hole <0.0,-0.25,-1>,0.15
        falloff 2
   strength 10.0  
    turbulence <0.25, 0.25, 0>
      inverse
    }
   

}

} // tex


finish {

ambient 0
}

//rotate <90,0,0>

}

#declare ring01=

disc {

<0,0,0>
<0,0,0.1>
2.6
2.25
texture {
pigment {
waves
color_map{
[0 color rgb <0.4,0.4,0.4>]
[1 color rgb <0,0,0>]
}
}
finish {
ambient 0
}
scale 0.03

} }

  1. declare ring02=
 disc {
<0,0,0>
<0,0,0.1>
2.2
1.4099
texture {
pigment {
waves
color_map{
[0 color rgbt <0.7,0.7,0.6,0.5>]
[1 color rgbt <0,0,0,1>]
}
}
finish {
ambient 0
}
scale 0.03

} }

  1. declare ring03=

disc {

<0,0,0>
<0,0,0.1>

// 2.7 // 2.61

 2.5
2.8  
texture { pigment { rgbf <0.1,0.1,0.1, 0.95> }}

}


  1. declare ring04=
disc {
<0,0,0>
<0,0,0.1>
1.41
1.3
texture { pigment { rgbf <0.9,0.9,0.8, 0.8> }}
  1. declare rings1= union

{


object {ring01}
              
object {ring02}
object {ring03}
object {ring02}
finish {

ambient 0 diffuse 0.8

}

}

  1. declare ringplanet_01=union{

object {giant_planet_1}

object {rings1}

}


}

/*
  1. declare fn_Hills = function

{

 pigment
 {  
   wrinkles
  // bumps
   warp
   { turbulence 0.5 }
   scale 0.2 
   scale <2,1,2>
 }

}


  1. declare terrain1=object

{

 height_field
 {
 //  function 1000,1000
  function 2000,2000
   { fn_Hills (x, y, z).red }
 }
 pigment
 {  
   wrinkles
   scale 0.1/2
  // gradient y
   color_map
   {
 //    [0.0 color rgb <245,222,179>/255]
         [0.0 color rgb 1]
     [1.0 color rgb <160,82,45>/255]
   }
 }
 finish
 { 
 diffuse 0.7    
 //  specular 0.5
 //  phong 1.0
//   reflection 0.2
 }
 translate <-0.5, -0.25, -0.5>
 scale <0.5, 0.03, 0.5>*1/2
 translate <0,-0.03,-10>

}

 */

//object { terrain1 }

object {sun1} 

object {

// planet2

// scale 8
 
 

planet2

scale 3

translate x*-0.5 translate y*-0.25 translate z*-3


}


object {

//ringplanet_01

giant_planet_1

scale 0.2


//rotate x*90

rotate <120, -30, 0>

translate x*1 translate z*-5 finish {

ambient 0

} }

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
current15:35, 2 February 2023Thumbnail for version as of 15:35, 2 February 20231,600 × 1,200 (504 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata