File:Spiral galaxy media 1 r 1.png

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

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

Captions

Captions

Spiral galaxy

Summary[edit]

Description
English: Spiral galaxy
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code

// // spiral galaxy with media // pov-ray 3.5 // // 30.1.2022 0000.0001 //

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


global_settings {

   assumed_gamma 1
   max_trace_level 50

}

camera {

 location <0, 0, -1.5> 
 look_at  <0, 0, 0>

}


/*

light_source { <1,1,-1>*1000*1000*1000 color rgb 1

}

  • /

sky_sphere {

pigment {

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

}

pigment {

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

}

pigment {
   bozo
   scale 1/1000
   color_map {
   [0 color rgbt <1,1,1,0>*10]
   [0.1 color rgbt <0,0,0,1>]
   [1 color rgbt <0,0,0,1>]
   }

}

pigment {
   bozo
   scale 1/300
   color_map {
   [0 color rgbt <1,1,1,0>*10]
   [0.05 color rgbt <0,0,0,1>]
   [1 color rgbt <0,0,0,1>]
   }

}

//pigment { color rgb 1}

}



  1. declare gaxmedia1= media {

emission 100


density {


   function {
   f_spherical (x,y,z*0.01)
   
 * f_spiral1(x*3,y*3,z*0.01) 
 *f_wrinkles(x*10,y*10,z) 
 //    *f_wrinkles(x*30,y*30,z*1/100)
  *f_wrinkles(x*1000,y*1000,z*1000 )
   }
  
 
color_map 
   {  
    [0 color rgbt <0,0,0,1>] 
       [0.999 color rgbt <0.5,0.5,0.5,0.5>]
   [1 color rgbt <1,1,1,0>]
    }

//scale 0.8 poly_wave 2 // scallop_wave //scale 0.6

}

   /*

density {

     function {
   f_spherical (x,y,z)
   
// *f_wrinkles(x*5,y*5,z*1/50)
//  *f_wrinkles(x*200,y*200,z*1/50)
   }   
  scale 0.35

}

    */

}


  1. declare gaxmedia2= media {

emission 3000

density {

     function {
   f_spherical (x*1,y*1,z)
   
 *f_wrinkles(x*2,y*2,z*2) 
 *f_wrinkles(x*50,y*50,z*50)
 *f_wrinkles(x*1000,y*1000,z*1000)
   }   
  scale 0.15
color_map 
   {  
    [0 color rgbt <0,0,0,1>] 
       [0.499 color rgbt <0.5,0.5,0.5,0.95>]
   [1 color rgbt <1,1,1,0.8>]
    }

//scale 0.8 poly_wave 2

}

}

#declare gaxsurf1=object{                          
  
  isosurface {
     function {
   //*f_wrinkles(x,y,z) 


    f_sphere(x, y*4, z, 1)
   + sin(f_spiral1(x,z,y)*pi*2)/10   
  

// + f_granite(x,y,z)*1/5

   } // funk
    
    contained_by { box { -2, 2 } }
    accuracy 0.001

// threshold 1


   max_gradient 40
   } // iso


}


  1. declare gax1=object{

// sphere {0,1 }

  object {gaxsurf1
   rotate x*90
   }
pigment {rgbt 1}
hollow 
interior
   {
   media { gaxmedia1  }
      media { gaxmedia2  }
   }

}


  1. declare gax2=object{
sphere {0,0.5 }
pigment {rgbt 1}
hollow 
interior
   {
      media { gaxmedia2  }
   }

}


union {

// object {gax2}

 object { gax1}

scale z/15

rotate x*60

rotate y*30
 
finish {

emission 1000 }

}

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
current08:20, 30 January 2023Thumbnail for version as of 08:20, 30 January 20231,600 × 1,200 (822 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata