File:Orange dwarf render 1 1 1 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.47 MB, MIME type: image/png)

Captions

Captions

Orange dwarf, artist impression

Summary

[edit]
Description
English: Orange dwarf, artist impression. K-Type main sequence star.
Date
Source Own work
Author Merikanto

POV-Ray 3.8 source code


// // K-type star // POV-Ray 3.0 source code // 1.10.2023 0000.0004 //

#include "functions.inc" 
 #include "rand.inc" 
camera { location <0,0,-10>*1.2 look_at 0 angle 28 }


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]
   }
   
  }

}


  1. declare samples1=40; // greater value more accurate but slow render


  1. declare color1=<1,0.75,0>;
  2. declare color2=<1,0.5,0>;
  3. declare color3=<1/2,1/2,1/4,0>;
  4. declare color4=<3/4,3/4,1>; // corona color

// #declare color4=<1,1/2,0>; // corona color

  1. declare color5=<1,3/5,1>;


  1. declare star1= union {
 // photosphere
 
sphere {
   0,1    

    texture {
    pigment {
     //  crackle
       granite
       turbulence 0.5
       scale 1/10
    
    color_map {
       [ 0 color rgb color2 ]
       [1 color rgb color1  ]   
     }   
        
    }  // pigment

   finish {emission 1 reflection 0}
         
     } // texture
     
  // spots
  
texture {

pigment { 
//   gradient y    
// agate
 //   granite
  //   scale 4
  //  wrinkles  scale 3
crackle scale 0.2
// gradient y
 //  sine_wave
   pigment_map {
    [ 0 color rgbt 1]   
      [ 0.7 color rgbt 1] 
   [ 0.8 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]
    [ 1 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]

    }
   } // pigment

} // tex    
         


} // sphere
     
  
  
 





    sphere // protuberances
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
    samples samples1
   emission color5*2

//emission <3/4,3/4,1>

         scattering {1, rgb <1,1,1>*1 }
      density
      {
       // spherical 
           function {  


//3 *f_bumps(x,y,z)* f_agate( f_granite(x/3,y/3,z/3)*1,y*1,z*1) * f_agate( f_agate(x*3,y*3,z*3)*1,y*1,z*1) * pow( f_spherical(x,y,z) ,1/5)

1.5* f_crackle(x,y,z)

  • f_agate( f_granite(x,y,z)*1,f_granite(x,y,z)*1,f_granite(x,y,z)*1 )
}
     
// turbulence 0.5
       density_map
             
        {
        [0.0 rgbt <1/100000,1/100000,1/100000,1>]
       [0.5 rgbt <1/1000,1/1000,1/1000,1>]    
       [1 rgb 1]
        } 
      }
    }
 }

// scale 1.12

 scale 1.2
}




      sphere // cromosphere limb darken
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
       samples samples1
       emission 1.5    
      // absorption 1
       scattering {1, rgb <0,1/2,1>*3000 }
      density
      {
        granite scale 0.0001
      //spherical 
        //   function {
        //  pow( f_spherical(x,y,z),2)
       //     *f_wrinkles(x,y,z) *2 
             //  *pow( f_wrinkles(  atan2(x+1,y)/2, atan2(x,z+4)/2,atan2(y,z+1)/2 )  ,1)
        //   *  pow( f_granite(  atan2(x,y)+y/10, atan2(x,z)+z/10,atan2(y,z)),1/1)
         //      }


      }
    }
 }

scale 1.0005

}






   sphere // outer corona
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {  
 samples samples1
   emission color4*0.8

//emission <3/4,3/4,1> // scattering {1, rgb <1,1,1>*1 }

      density
      {
       // spherical 
           function {
 
 0.5*  
   

pow( f_spherical(x,y,z),2)

  • f_bumps(x,y,z)

+0.7*

pow( f_spherical(x,y,z),1) 

// *f_wrinkles(atan2(x,y)+sin(x),atan2(x,y)+cos(z),atan2(x,y)+tan(x))


// *f_wrinkles(atan2(x,y)*f_granite(sin(x),y,z),atan2(x,y),atan2(x,y)) 

// *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),0,0 )

//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5), atan2(y,z),atan2(x,z) ) 
//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),y,z )  // wery ok
   *f_granite(20*atan2(x+f_wrinkles(x,y,z)*0.5,y+f_wrinkles(x,y,z)*0.5),y+f_wrinkles(x,y,z)*0.5,z+f_wrinkles(x,y,z)*0.5 )  // wery ok
}        

//sine_wave

scallop_wave

       density_map
             
        { [0.0 rgbt <1/10000,1/10000,1/10000,1>]
    [0.7 rgbt <1/10,1/10,1/10,0.5>]
     [1 rgb 1]
        } 
      }
    }
 }

scale 3

}




}



object {star1 rotate y*0} 



Older code 1


// // K-type star // POV-Ray 3.0 source code // 1.10.2023 0000.0002 //

#include "functions.inc" 
 #include "rand.inc" 
camera { location <0,0,-10>*1.2 look_at 0 angle 28 }


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]
   }
   
  }

}


  1. declare samples1=40; // greater value more accurate but slow render


  1. declare color1=<1,0.75,0>;
  2. declare color2=<1,0.5,0>;
  3. declare color3=<1/2,1/2,1/4,0>;
  4. declare color4=<3/4,3/4,1>; // corona color

// #declare color4=<1,1/2,0>; // corona color

  1. declare color5=<1,4/5,1>;


  1. declare star1= union {
 // photosphere
 
sphere {
   0,1    

    texture {
    pigment {
     //  crackle
       granite
       turbulence 0.5
       scale 1/5
    
    color_map {
       [ 0 color rgb color2 ]
       [1 color rgb color1  ]   
     }   
        
    }  // pigment

   finish {emission 1 reflection 0}
         
     } // texture
     
  // spots
  
texture {

pigment { 
//   gradient y    
// agate
 //   granite
  //   scale 4
  //  wrinkles  scale 3
crackle scale 0.2
// gradient y
 //  sine_wave
   pigment_map {
    [ 0 color rgbt 1]   
      [ 0.7 color rgbt 1] 
   [ 0.8 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]
    [ 1 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]

    }
   } // pigment

} // tex    
         


} // sphere
     
  
  
 



    sphere // cromosphere limb darken
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
       samples samples1
       emission 1.5    
      // absorption 1
       scattering {1, rgb <0,1/2,1>*3000 }
      density
      {
        granite scale 0.0001
      //spherical 
        //   function {
        //  pow( f_spherical(x,y,z),2)
       //     *f_wrinkles(x,y,z) *2 
             //  *pow( f_wrinkles(  atan2(x+1,y)/2, atan2(x,z+4)/2,atan2(y,z+1)/2 )  ,1)
        //   *  pow( f_granite(  atan2(x,y)+y/10, atan2(x,z)+z/10,atan2(y,z)),1/1)
         //      }


      }
    }
 }

scale 1.0005

}



    sphere // protuberances
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
    samples samples1
   emission color5*2

//emission <3/4,3/4,1>

         scattering {1, rgb <1,1,1>*1 }
      density
      {
       // spherical 
           function {  


2

*f_marble(x,y,z)
  • f_agate( f_granite(x/3,y/3,z/3)*1,y*1,z*1)
  • f_agate( f_agate(x*3,y*3,z*3)*1,y*1,z*1)
  • pow( f_spherical(x,y,z) ,1/5)
       }
     
// turbulence 0.5
       density_map
             
        {
        [0.0 rgbt <1/100000,1/100000,1/100000,1>]
       [0.4 rgbt <1/1000,1/1000,1/1000,1>]    
       [1 rgb 1]
        } 
      }
    }
 }

scale 1.12 
}



   sphere // outer corona
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {  
 samples samples1
   emission color4*0.8

//emission <3/4,3/4,1> // scattering {1, rgb <1,1,1>*1 }

      density
      {
       // spherical 
           function {
 
 1*  
   

pow( f_spherical(x,y,z),2.5)


// *f_wrinkles(atan2(x,y)+sin(x),atan2(x,y)+cos(z),atan2(x,y)+tan(x))


// *f_wrinkles(atan2(x,y)*f_granite(sin(x),y,z),atan2(x,y),atan2(x,y)) 

// *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),0,0 )

//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5), atan2(y,z),atan2(x,z) ) 
//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),y,z )  // wery ok
   *f_granite(10*atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),y+f_wrinkles(x,y,z)*0.2,z+f_wrinkles(x,y,z)*0.2 )  // wery ok
}
 //       density_map

// // { [0.0 rgbt <1/100,1/100,1/100,1>] // [1 rgb 2] // }

      }
    }
 }

scale 3

}




}



object {star1 rotate y*0} 



Old code



// // K-type star // POV-Ray 3.0 source code // 1.10.2023 0000.0001 //

#include "functions.inc" 
 #include "rand.inc" 
camera { location <0,0,-10>*1.2 look_at 0 angle 28 }


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]
   }
   
  }

}


  1. declare samples1=40; // greater value more accurate but slow render


  1. declare color1=<1,0.75,0>;
  2. declare color2=<1,0.5,0>;
  3. declare color3=<1/2,1/2,1/4,0>;
  4. declare color4=<3/4,3/4,1>; // corona color

// #declare color4=<1,1/2,0>; // corona color

  1. declare color5=<1,4/5,1>;


  1. declare star1= union {
 // photosphere
 
sphere {
   0,1    

    texture {
    pigment {
     //  crackle
       granite
       turbulence 0.5
       scale 1/5
    
    color_map {
       [ 0 color rgb color2 ]
       [1 color rgb color1  ]   
     }   
        
    }  // pigment

   finish {emission 1 reflection 0}
         
     } // texture
     
  // spots
  
texture {

pigment { 
//   gradient y    
// agate
 //   granite
  //   scale 4
  //  wrinkles  scale 3
crackle scale 0.2
// gradient y
 //  sine_wave
   pigment_map {
    [ 0 color rgbt 1]   
      [ 0.7 color rgbt 1] 
   [ 0.8 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]
    [ 1 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]

    }
   } // pigment

} // tex    
         


} // sphere
     
  
  



    sphere // cromosphere limb darken
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
       samples samples1
       emission 1.5    
      // absorption 1
       scattering {1, rgb <0,1/2,1>*3000 }
      density
      {
        granite scale 0.0001
      //spherical 
        //   function {
        //  pow( f_spherical(x,y,z),2)
       //     *f_wrinkles(x,y,z) *2 
             //  *pow( f_wrinkles(  atan2(x+1,y)/2, atan2(x,z+4)/2,atan2(y,z+1)/2 )  ,1)
        //   *  pow( f_granite(  atan2(x,y)+y/10, atan2(x,z)+z/10,atan2(y,z)),1/1)
         //      }


      }
    }
 }

scale 1.0005

}



    sphere // protuberances
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
    samples samples1
   emission color5*2

//emission <3/4,3/4,1>

         scattering {1, rgb <1,1,1>*1 }
      density
      {
       // spherical 
           function {  


2

*f_marble(x,y,z)
  • f_agate( f_granite(x/3,y/3,z/3)*1,y*1,z*1)
  • f_agate( f_agate(x*3,y*3,z*3)*1,y*1,z*1)
  • pow( f_spherical(x,y,z) ,1/5)
       }
     
// turbulence 0.5
       density_map
             
        {
        [0.0 rgbt <1/100000,1/100000,1/100000,1>]
       [0.4 rgbt <1/1000,1/1000,1/1000,1>]    
       [1 rgb 1]
        } 
      }
    }
 }

scale 1.12 
}



   sphere // outer corona
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {  
 samples samples1
   emission color4*0.8

//emission <3/4,3/4,1> // scattering {1, rgb <1,1,1>*1 }

      density
      {
       // spherical 
           function {
 
 1*  
   

pow( f_spherical(x,y,z),2)


// *f_wrinkles(atan2(x,y)+sin(x),atan2(x,y)+cos(z),atan2(x,y)+tan(x))


// *f_wrinkles(atan2(x,y)*f_granite(sin(x),y,z),atan2(x,y),atan2(x,y)) 

// *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),0,0 )

//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5), atan2(y,z),atan2(x,z) ) 
//  *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),y,z )  // wery ok
   *f_granite(atan2(x+f_wrinkles(x,y,z)*0.2,y+f_wrinkles(x,y,z)*0.5),y+f_wrinkles(x,y,z)*0.2,z+f_wrinkles(x,y,z)*0.2 )  // wery ok
}
 //       density_map

// // { [0.0 rgbt <1/100,1/100,1/100,1>] // [1 rgb 2] // }

      }
    }
 }

scale 3

}




}



object {star1 rotate y*0} 



Oldeest code


// // K-type star // POV-Ray 3.0 source code // 1.10.2023 0000.0000 //

#include "functions.inc" 
 #include "rand.inc" 
camera { location <0,0,-10>*1.0 look_at 0 angle 28 }

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]
   }
   
  }

}

  1. declare samples1=40; // greater value more accurate but slow render


  1. declare color1=<1,0.75,0>;
  2. declare color2=<1,0.5,0>;
  3. declare color3=<1/2,1/2,1/4,0>;
  4. declare color4=<3/4,3/4,1>; // corona color

// #declare color4=<1,1/2,0>; // corona color

  1. declare color5=<1,4/5,1>;


  1. declare star1= union {
 // photosphere
 
sphere {
   0,1    

    texture {
    pigment {
     //  crackle
       granite
       turbulence 0.5
       scale 1/5
    
    color_map {
       [ 0 color rgb color2 ]
       [1 color rgb color1  ]   
     }   
        
    }  // pigment

   finish {emission 1 reflection 0}
         
     } // texture
     
  // spots
  
texture {

pigment { 
//   gradient y    
// agate
 //   granite
  //   scale 4
  //  wrinkles  scale 3
crackle scale 0.2
// gradient y
 //  sine_wave
   pigment_map {
    [ 0 color rgbt 1]   
      [ 0.7 color rgbt 1] 
   [ 0.8 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]
    [ 1 granite scale 1 warp {    turbulence 0.5  } color_map { [0 color rgb <1,1,1,1> ] [0.2 color rgb <1,1,1,1> ] [ 1 color rgbt color3 ] }  ]

    }
   } // pigment

} // tex    
         


} // sphere
     
  
  


    sphere // cromosphere limb darken
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
       samples samples1
       emission 1    
      // absorption 1
       scattering {1, rgb <0,1/2,1>*2000 }
      density
      {
        granite scale 0.0001
      //spherical 
        //   function {
        //  pow( f_spherical(x,y,z),2)
       //     *f_wrinkles(x,y,z) *2 
             //  *pow( f_wrinkles(  atan2(x+1,y)/2, atan2(x,z+4)/2,atan2(y,z+1)/2 )  ,1)
        //   *  pow( f_granite(  atan2(x,y)+y/10, atan2(x,z)+z/10,atan2(y,z)),1/1)
         //      }


      }
    }
 }

scale 1.0005

}



    sphere // protuberances
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {    
    samples samples1
   emission color5*2

//emission <3/4,3/4,1>

         scattering {1, rgb <1,1,1>*1 }
      density
      {
       // spherical 
           function {  
// 10*         f_spherical(x,y,z)  *

//(f_agate(x*2,y*2,z*2)) //*10* f_granite(x,y,z) //+ f_wrinkles(x*2,y*2,z*2)

f_agate( f_granite(x,y,z)*1,y*1,z*1)  
  • pow( f_spherical(x,y,z) ,1/5)
       }
       density_map
             
        { [0.0 rgbt <1/100000,1/100000,1/100000,1>]

[0.5 rgbt <1/1000,1/1000,1/1000,1>]

      [1 rgb 2]
        } 
      }
    }
 }

scale 1.2 
}
   sphere // outer corona
{ 0,1 pigment { rgbt 1 } hollow
  interior
  { media
    {  
 samples samples1
   emission color4*0.8

//emission <3/4,3/4,1>

 //        scattering {1, rgb <1,1,1>*1 }
      density
      {
       // spherical 
           function {
       //  pow( f_spherical(x,y,z),4) *10
       ///     *f_bozo(atan2(x,y),atan2(y,z),atan2(z,y)) 
       //   *  pow( f_granite(  atan2(x,y)+f_wrinkles(x,y,z)/2, atan2(x,z)+f_wrinkles(x,y,z)/2,atan2(y,z)+ f_wrinkles(x,y,z)/2),1/1)
       //   *  pow( f_granite(  atan2(x,y)+f_granite(x,y,z), atan2(x,z)+f_granite(x,y,z),atan2(y,z)+ f_granite(x,y,z)),1/1)

// 6* pow(f_spherical(x,y,z),2) // *f_wrinkles(x,y,z) *1 // *f_wrinkles(atan2(x,y),atan2(y,z),atan2(z,y)) //* pow( f_granite( atan2(x,y)+f_granite(x,y,z)*1, atan2(x,z)*f_granite(x,y,z)*1 ,atan2(y,z)*f_wrinkles(x,y,z)*1 ),1/1)

// * pow( f_granite( atan2(x,y)+f_granite(x,y,z)*0.2, atan2(x,z)*f_granite(x,y,z)*0.2 ,atan2(y,z)*f_wrinkles(x,y,z)*0.5 ), f_wrinkles(x,y,z))

 1*  pow( f_spherical(x,y,z),2)  

//*f_ripples(x,y,z) // *f_crackle(atan2(x,y),atan2(y,z),atan2(z,x))

// *f_wrinkles(atan2(x,y),atan2(y,z),atan2(z,x))
//   *f_agate(atan2(x,y),atan2(y,z),atan2(z,x))
//      *f_granite(atan2(x,y),atan2(y,z),atan2(z,x))
//   *f_wrinkles(atan2(x,y)/10,atan2(y,z)/10,atan2(z,x)/10)
 

//*f_marble(x,y,z) //*f_bumps(x,y,z)

// *f_marble(atan2(x,y)/pi,atan2(y,z)/pi,atan2(z,x)/pi) // *f_marble(atan2(x,y)/(2*pi),atan2(y,z)/(2*pi),atan2(z,x)/(2*pi))

 *f_wrinkles(atan2(x,y),atan2(x,y),atan2(x,y)) 
 }
 //       density_map

// // { [0.0 rgbt <1/100,1/100,1/100,1>] // [1 rgb 2] // }

      }
    }
 }

scale 2.5

}



}



object {star1 rotate y*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
current13:58, 1 October 2023Thumbnail for version as of 13:58, 1 October 20231,600 × 1,200 (1.47 MB)Merikanto (talk | contribs)More accurate
12:59, 1 October 2023Thumbnail for version as of 12:59, 1 October 20231,600 × 1,200 (979 KB)Merikanto (talk | contribs)Update
12:50, 1 October 2023Thumbnail for version as of 12:50, 1 October 20231,600 × 1,200 (775 KB)Merikanto (talk | contribs)Update
11:25, 1 October 2023Thumbnail for version as of 11:25, 1 October 20231,600 × 1,200 (849 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata