File:Protoplanetary disk 3 rend 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.48 MB, MIME type: image/png)

Captions

Captions

Protoplanetary disk

Summary[edit]

Description
English: Protoplanetary disk
Date
Source Own work
Author Merikanto

proplyd

POV-Ray source code


// // protoplanetary disk // pov-ray 3.7 source code // // 2.1.2023 0000.0001 //


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

camera { location <0,1000/2,-1000> look_at 0

angle 28

}


/*

light_source { //<1,1,-1>*1000*1000*1000 <0,0,0> color rgb 100 }

  • /

sky_sphere {

    pigment {
    bozo
      scale 1/1000
         color_map 
    {
    [0 rgb 1]
    [0.2 rgb 0] 
    [1 rgb 0] 
    
    }
    
    }
   
   
             

}


  1. declare SplineObject0_width = 632.000000;
  2. declare SplineObject0_height = 125.440197;
  3. declare SplineObject0_left = -316.000000;
  4. declare SplineObject0_right = 316.000000;
  5. declare SplineObject0_top = 42.247303;
  6. declare SplineObject0_bottom = 167.687500;
  7. declare SplineObject0_max_extent = max(SplineObject0_width, SplineObject0_height);
  1. declare SplineObject0_NORMAL_TRANSFORM = transform {
 translate <0, -SplineObject0_top - SplineObject0_height / 2, 0>
 scale (1 / SplineObject0_max_extent)
 scale <1, -1, 1>

}

  1. declare Disk_02 =

lathe { cubic_spline

 15
 , <91.000000, 106.000000>
 , <210.000000, 90.000000>
 , <226.000000, 75.000000>
 , <240.000000, 47.000000>
 , <272.000000, 45.000000>
 , <301.000000, 75.000000>
 , <316.000000, 105.000000>
 , <299.000000, 134.000000>
 , <270.000000, 164.000000>
 , <239.000000, 164.000000>
 , <225.000000, 135.000000>
 , <210.000000, 120.000000>
 , <91.000000, 107.000000>
 , <210.000000, 90.000000>
 , <213.000000, 90.000000>
  1. ifdef ( SplineObject0_USE_NORMAL_TRANSFORM )
 transform { SplineObject0_NORMAL_TRANSFORM }
  1. end

scale 1/1 }

  1. declare I_disk1_inc_width = 632.000000;
  2. declare I_disk1_inc_height = 125.440197;
  3. declare I_disk1_inc_left = -316.000000;
  4. declare I_disk1_inc_right = 316.000000;
  5. declare I_disk1_inc_top = 42.247303;
  6. declare I_disk1_inc_bottom = 167.687500;


  1. declare cloudcolor1=rgb <1,.25,0>*1;


//sphere { 0,2 hollow

  1. declare gastorus1=object {

//torus { 1,1/2

   isosurface {
   
   function {   
   
  //    f_torus(x, y, z, 1, 0.25)
  //    f_torus(x, y, z, 1, 0.25)-f_noise3d(x*10, y*10, z*10)/5  
  //  f_torus(x, y, z, 1, 0.25)-f_noise3d(x*10, y*10, z*10)/5 -f_noise3d(x*40, y*40, z*40)/50  
 // f_torus(x, y, z, 1, 0.25)-f_noise3d(x*x*4,y*y*4,z*z*4)  
   //  f_torus(x, y, z, 1, 0.25)-f_noise3d(x*10, y*10, z*10)/4
  f_torus(x, y, z, 1, 0.25)-f_waves(x*10, y*10, z*10)/4-f_noise3d(x*10, y*10, z*10)/4-f_noise3d(x*40, y*40, z*40)/8 -f_noise3d(x*100, y*100, z*100)/12   -f_noise3d(x*300, y*300, z*300)/18   
   //  
   
  } 
   contained_by { box { -2, 2 } }
   threshold 0
 max_gradient 90
accuracy 0.000001
//    accuracy 0.1
 }                                 
 
  scale y/2

/* 
 pigment {
 color rgb <1,0,0>
 }
  */
 /*
hollow  
 texture { pigment { rgbt 1 } }

 interior {
   media {
   intervals 2
   samples 40,60
  
    absorption 1 scattering { 1 .3*cloudcolor1 }
     density { 
       
   //    granite
    //   scale 1/100
     //  agate
       
     spherical
      scale 1
       warp { turbulence .5 }
       density_map { [0 rgb 0][1 rgb 1/20] }
     }
   }
 
 
 }
   */

}



  1. declare disk02=object {

Disk_02 scale y/2 /*

texture {
 pigment {color <1,1,1>/2}  
 finish { ambient 1 }
 }
 */
 
  hollow  
 texture { pigment { rgbt 1 } }
 interior {
   media { absorption 1/2 scattering { 1 .3*cloudcolor1/50 }
     density { 
      
      waves
      
      scale 10 
    //   granite
    //   scale 1/100
     //  agate
       
   //  spherical
      scale 1
       warp { turbulence .5 }
       density_map { [0 rgb 0][1 rgb 1/20] }
     }
   }
 }


}



  1. declare gasdisk1=object {

//torus { 1,1/2

   isosurface {
   function { f_sphere(x, y, z, 1)
    // -f_noise3d(x*20, y*20, z*20)/10 
  // -f_noise3d(x*10, y*10, z*10)/5 -f_noise3d(x*40, y*40, z*40)/30 
    
    }
   contained_by { box { -2, 2 } }
   threshold 0
 max_gradient 0
 accuracy 0.0001
 
 }                                 
 
 

/* 
 pigment {
 color rgb <1,0,0>
 }
  */
hollow  
 texture { pigment { rgbt 1 } }
 interior {
   media { absorption 1 scattering { 1 1*cloudcolor1/300 }
     density { 
   //  spiral2 2
    ripples
     //  onion
     //waves
   // wrinkles   
   //    granite
     //  scale 1/10
     //  agate
       
   //  spherical
      scale 1/100
      
   //    warp { turbulence .5 }
       density_map { [0 rgb 0][1 rgb 1/20] }
     }
   }
 }
 scale y*0.1

}


  1. declare stara1=object{
  sphere{ <0,0,0>,1 }
 
 hollow
 pigment{ color rgbf<1,1,1,1>}
 finish { ambient 0 diffuse 0 }
 interior {
   media {
     emission color rgb<1.0,0.75,0.1>*1
     intervals 9
     samples 1, 20
     confidence 0.9999
     variance 1/100
     density{ spherical
              ramp_wave
              warp {turbulence 0.3 }
              color_map {
              [0.0 color rgb <0.0,0.0,0.0>]
              [0.3 color rgb <0.8,0.3,0.0*1/2>]
              [0.6 color rgb <1.0,0.8,0.3>*3/4]
              [1.0 color rgb <1.0,1.0,0.1>*1]
                        } 
          // scale <1,2.5,1> 
           
         } 
   }

}



 scale 1/2

}



#declare jets1=union {
    cone {
   <0, 0, 0>, 0.001   
   <0, 2, 0>, 0.02    
 }
 
     cone {
   <0, 0, 0>, 0.001   
   <0, -2, 0>, 0.02    
 
 }                       
  hollow
 pigment{ color rgbf<1,1,1,1>}
 finish { ambient 0 diffuse 0 }
 interior {
   media {
     emission color rgb<1.0,0.75,0.1>*1
     intervals 1
     samples 1, 10
     confidence 0.5
     variance 50/100
    
     density{ 
        radial
        //  granite
        // wrinkles   
       //  scale 1/1000
     //spherical
       //       ramp_wave
           //   turbulence 0.15
              color_map {
              [0.0 color rgb <0.0,0.0,0.0>]
           //   [0.3 color rgb <0.3,0.3,0.8*1>]
          //    [0.6 color rgb <0.3,0.3,0.8>*2]
              [1.0 color rgb <0.1,0.1,1>*5]
                        } 
          // scale <1,2.5,1> 
           
         } 
   }

} 

}







  1. declare pig2=pigment {
  function {

// cos( sqrt(x*x+z*z)/13 ) *cos( sqrt(x*x+z*z)/13 ) *cos( sqrt(x*x+z*z)/13 ) *cos( sqrt(x*x+z*z)/13 )

//   cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) *  cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 )
 
 //   cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) *  cos( sqrt(x*x+z*z)/13 ) *cos( sqrt(x*x+z*z)/13 )  
    
 ////  cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) *  cos( sqrt(x*x+z*z)/13 ) *cos( sqrt(x*x+z*z)/13 ) *f_granite(x*6,y*6,z*6) *f_wood(z*1,x*1,y*1)  *f_waves(x, y, z)
 
  ////  cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 )   *f_wrinkles(x, y, z) *f_waves(x, y, z)*f_ripples(x, y, z)
 
   //   cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 )
 
   //  cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) *   f_spiral1(x, z, y) *f_wrinkles(x, y, z) *f_waves(x, y, z)
 
  //   cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) *   sin(f_spiral2(x, z, y)) *f_wrinkles(x, y, z)   *f_granite(x, y, z)

 //   cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) * f_waves(x*3, y*3, z*3)

 
 //     cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 )  * f_waves(x*3, y*3, z*3)*2 *f_wrinkles(x*8, y*8, z*8)  
       
  pow(sqrt(1-((x*x+z*z)/400)),6) *      cos( sqrt(x*x+z*z)/13 ) *sin( sqrt(x*x+z*z)/13 ) * f_waves(x*3, y*3, z*3)*2 *f_wrinkles(x*30, y*30, z*30) *f_wrinkles(x*10, y*10, z*10)     
  
//     pow(sqrt(1-((x*x+z*z)/400)),5)*  f_waves(x*7, y*7, z*7)*2 *f_wrinkles(x*5, y*5, z*5) *f_ripples(x, y, z)  
  
  
  }
    
   //      sine_wave
    
           color_map 
    {
    [0 rgbt <0.1,0.1,0.1,1>]
  //  [0.1 rgbt <0,0,0,1>] 
    [1 rgbt <1,1/4,0,0>*30] 
    
    }

}



  1. declare disk1=
object {
 sphere {0,20 scale y/1000}

//torus{ 10,4 scale y/10 }


 texture{  

  
       pigment{
      pig2
 }
  
    
     
       finish{
    ambient 1
   }
  
  
   }
     
   
     
scale 15  
  
 

}





  1. declare star1= union {

sphere { 0,1

texture { pigment { //wrinkles

granite
scale 0.3

color_map { [0 color rgbt <0,0,0,1>] [1 color rgbt <1,1,1,0>]

} }

}

scale 0.1

}

light_source { 0 color rgb 100


looks_like {

object {stara1 scale 0.1} 

}

fade_distance 100 fade_power 6

  scale 1000/3

}

}


#declare fog1=object {


 sphere // transparent sphere containing media
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {
    
    // emission 1
     
     scattering {
     2,<1,1/2,1/4>*5/100000
     extinction 0.00000001
     }
     
      density
      { 
      
    
          
          function { -exp((x*x+y*y+z*z)/1)/10 }
       /* 
       //    spherical 
       density_map
       
        { [0 rgb 0]
          [0.5 rgb <1,0,0>]
          [0.8 rgb <1,0.5,0>]
          [1 rgb <1,1,0.5>]
        }
        */
      
      }
    }
 }


}

scale 400

  scale y/3

}



object {fog1}   
 
    


//    object {gastorus1  scale 480*0.8   }
//  object {gastorus1  scale 480*0.8  texture { pigment {color rgb <1,1/2,0>/10} finish {diffuse 0.6 ambient 0.7} } }
  

// object {disk02 translate y*-25 }

//   object {gasdisk1 scale 150}   
      
   object {disk1}   
      object {jets1 scale 500}
   object {star1}
   

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
current13:03, 2 January 2023Thumbnail for version as of 13:03, 2 January 20231,600 × 1,200 (1.48 MB)Merikanto (talk | contribs)Update
12:53, 2 January 2023Thumbnail for version as of 12:53, 2 January 20231,600 × 1,200 (1.42 MB)Merikanto (talk | contribs)Update
12:24, 2 January 2023Thumbnail for version as of 12:24, 2 January 20231,600 × 1,200 (1.22 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata