File:Spiral galaxy povray 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.37 MB, MIME type: image/png)

Captions

Captions

Spiral galaxy

Summary

[edit]
Description
English: Spiral galaxy. Artist impression.
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

// // spiral galaxy // POV-Ray 3.7 source code // // 24.1.2023 0000.0000 //

  1. include "functions.inc"
  2. include "shapes.inc"
  1. declare color1= <1, 1, 4>;
  2. declare color2=<0.1, .5, 1>;
  3. declare color3=(color1+color2)/2  ;

camera {

       location <0,-1, -1.5>
       look_at <0, 0, 0>
       angle 40

}


sky_sphere {


// stars
  

pigment {

   bozo
    scale 1/1000
   color_map {
       [0 color rgbt <1,1,1,0>]
        [0.2 color rgbt <1,1,1,1>]
       [1 color rgbt <1,1,1,1>]
   } 
   }


}


  1. declare gal1 = pigment {

/*

function {

      0.01*f_granite( atan2(x,y)/(pi) ,0,0 )*0.1/pow( (x*x+y*y),2) 

}

  */
   onion 


  scallop_wave   
scale 2
     
   pigment_map {
    
  [ 0.0  color rgb  color1/2 transmit 0.2] 
     
   
// nucleus
   [ 0.0 wrinkles 
                  scale 1 
               turbulence 0.2 
               pigment_map 
               
               { 
                   [0 color rgb color1 transmit 0.0]
                   
                   [0.0
                    bozo scale 0.005  
          
                        pigment_map { 
                               [0.0 rgb 0 transmit 1] 
                               [1.0 bozo scale 0.01 color_map {  [0.0 rgb color1*2 transmit 0.3] [1.0 rgb color1 transmit 0.6]} ] 
                               }
                    ]  
               } // warp {turbulence .05 octaves 3 lambda 2} 

                
     ] 
  

// arms

[ 0.25

       spiral1 -2  
       scale 0.5
       turbulence 0.1
       scale 1/7
   //     scallop_wave
     //  sine_wave   
       // poly_wave 3
       pigment_map { 
        //   [-1/2  color rgb <0,0,0> transmit 1 ] 
           
           [0.0 wrinkles 
               scale 0.3 
               turbulence 0.2 
               pigment_map 
               
               { 
                   [0 color rgb 1 transmit 0]
                   
                   [0.0
                    wrinkles scale 1  
          
                        pigment_map { 
                               [0.0 rgb 0 transmit 1] 
                               [1.0 bozo scale 0.02 color_map {  [0.0 rgb 0 transmit 0.8] [1.0 rgb color1 transmit 0.3]} ] 
                               }
                    ] 
           
               } // warp {turbulence .05 octaves 3 lambda 2} 
           ]   
             


           [1 color rgb <0,0,0> transmit 0.3]
      


         }  // spiral
  ]   


[ 0.7

       spiral1 -7   
         scale 0.5
       turbulence 0.1
       scale 1/7
        scallop_wave
     //  sine_wave   
       // poly_wave 3
       pigment_map { 
        //   [-1/2  color rgb <0,0,0> transmit 1 ] 
           
           [0.0 wrinkles 
               scale 0.3 
               turbulence 0.2 
               pigment_map 
               
               { 
                   [0 color rgb 1 transmit 0]
                   
                   [0.0
                    wrinkles scale 1  
          
                        pigment_map { 
                               [0.0 rgb 0 transmit 1] 
                               [1.0 bozo scale 0.02 color_map {  [0.0 rgb 0 transmit 0.8] [1.0 rgb color1 transmit 0.3]} ] 
                               }
                    ] 
           
               } // warp {turbulence .05 octaves 3 lambda 2} 
           ]   
             


           [1 color rgb <0,0,0> transmit 0.3]
      


         }  // spiral
  ]   



   [1 
        color rgb 0 transmit 1
      ]


}

}



  1. macro galaxy1()
   object {
       disc {0,<0,0,-1>,1 }
       texture { pigment { gal1 }  }
       finish {ambient 5} 
       scale 0.5 rotate z*40
       } 
  1. end

object {

   galaxy1() 

}


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
current09:38, 24 January 2023Thumbnail for version as of 09:38, 24 January 20231,600 × 1,200 (1.37 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata