File:Ringed giant planet 1.png

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

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

Captions

Captions

Fictional ringed giant planet

Summary[edit]

Description
English: Ringed giant planet
Date
Source Own work
Author Merikanto

POV-Ray 3.8 source code

//                                                                                                                        
// pov-ray 3.8 source code
//
// ring giant planet 
//
// 24.9.2023 v 0000.0002

  1. include "functions.inc"
default { finish { ambient 0.000002 diffuse 0.7 } }  
camera
  {
   location <-10,5,1>*2.4
      
   look_at 0
      
     angle 15
      
   } 
      

light_source {
<1,1/10,1/5>*1000*1000*1000*1000
  color rgb 1*5   

// color rgb 1

}
      
      
      
 #declare ringa1=object {
 
 torus {
 2.0,0.3   
   scale y*0.001
 }
         
    
   texture {
   
   pigment {
     onion  
     octaves 16
     frequency 2
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>]  
     [0.5 rgbt <1,1,1,0>]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }
  
  
  
  
   
   finish {
   
  // ambient 1
   }
     }
     
    
    
    texture {
     pigment {
     onion  
     octaves 16
     frequency 5
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
  // ambient 1
   }
     }
 
   
   
       texture {
     pigment {
     onion  
     octaves 16
     frequency 11
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
//   ambient 1
   }
     }
 
   
   
   
          texture {
     pigment {
     onion  
     octaves 16
     frequency 17
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
//   ambient 1
   }
     }
  
   
   
   
   }
 
 
 

#declare ringb1=object {
torus {
 1.8,0.25
 scale y*0.00001
}     
 texture {
 pigment {
 rgbt 0.5
 }
 }

}
  
  
  #declare ringc1=object {
 
 torus {
 2.5,0.1   
   scale y*0.00001
 }
         
    
   texture {
   
   pigment {
     onion  
     octaves 16
     frequency 3
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/3]  
     [0.5 rgbt <1,1,1,0>/2]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 


     texture {
   
   pigment {
     onion  
     octaves 16
     frequency 5
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/4]  
 //    [0.5 rgbt <1,1,1,0>]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 

      texture {
   
   pigment {
     onion  
     octaves 16
     frequency 11
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/2]  
     [0.5 rgbt <1,1,1,0>/3]
   //     [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 
       texture {
   
   pigment {
     onion  
     octaves 16
     frequency 23
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/2]  
     [0.5 rgbt <1,1,1,0>/5]
   //     [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 


}     
      
      
#declare rings1= union { 

object { ringb1 }
 
 object { ringa1 } 
    
    
  object { ringc1 } 
  
    finish {
    specular 0.5
    diffuse 0.7
  //  brilliance 0.1
   //   reflection 1
    }  
 }  
 
 
  
  
  
 #declare gasplaneta = object {
  sphere {0,1}
  
  texture {


// gradient y

  function {sin(abs(y))}
// function {cos(abs(y))*f_agate(0,y,0)*f_wrinkles(0,y*4,0)*f_granite(0,y,0)} 
  //     function {cos(abs(y))*f_wrinkles(0,sin(y),0)*f_granite(0,sin(y),0)*1}    // og
  //  function { cos(abs(y*3))*0.33*f_wrinkles(0,y*4,0)*0.33*f_granite(0,y,0)*0.33 }      
 //    function { abs(y)*f_wrinkles(0,y/2,0)  }

//f_granite(0,y/10,0) }

       frequency 3

scallop_wave

 //  sine_wave    
     scale 30
   warp { turbulence 0.3}
           scale 1/30
       turbulence 0.05
       
 texture_map
  
    {
   [0.0 pigment { color rgb <0.81, 0.57, 0.48> }]
    // [0.33 pigment { color rgb <0.81, 0.57, 0.48> }] 
    //    [0.66 pigment { color rgb <1,1,1> }] 
   [1.0 pigment {color rgb <0.78, 0.71, 0.72> }]
   }
   
 
  }
 
 }
  
  
  
union {  
  
 object { gasplaneta } 
  
 
 object { rings1 }


 rotate x*66

// rotate y*-20

 } 
  


Old code


// pov-ray 3.8 source code

// ring giant planet 

// 26.9.2022 v 0000.0001

default { finish { ambient 0.000002 diffuse 0.7 } }  
camera
  {
   location <-10,5,1>*2
      
   look_at 0
      
     angle 15
      
   } 
      

light_source {
<1,0.1,0.2>*1000*1000*1000
  color rgb 1*4
}
      
      
      
 #declare ringa1=object {
 
 torus {
 2.0,0.3   
   scale y*0.001
 }
         
    
   texture {
   
   pigment {
     onion  
     octaves 16
     frequency 2
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>]  
     [0.5 rgbt <1,1,1,0>]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }
  
  
  
  
   
   finish {
   
  // ambient 1
   }
     }
     
    
    
    texture {
     pigment {
     onion  
     octaves 16
     frequency 5
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
  // ambient 1
   }
     }
 
   
   
       texture {
     pigment {
     onion  
     octaves 16
     frequency 11
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
//   ambient 1
   }
     }
 
   
   
   
          texture {
     pigment {
     onion  
     octaves 16
     frequency 17
 //     sine_wave
  
         
    color_map 
    {
    [0 rgbt <1,1,1,0>]
    [1 rgbt <0,0,0,1>]
    }
   
  
   }
  
  
  
  
   
   finish {
   
//   ambient 1
   }
     }
  
   
   
   
   }
 
 
 

#declare ringb1=object {
torus {
 1.8,0.25
 scale y*0.00001
}     
 texture {
 pigment {
 rgbt 0.5
 }
 }

}
  
  
  #declare ringc1=object {
 
 torus {
 2.5,0.1   
   scale y*0.00001
 }
         
    
   texture {
   
   pigment {
     onion  
     octaves 16
     frequency 3
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/3]  
     [0.5 rgbt <1,1,1,0>/2]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 


     texture {
   
   pigment {
     onion  
     octaves 16
     frequency 5
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/4]  
 //    [0.5 rgbt <1,1,1,0>]
        [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 

      texture {
   
   pigment {
     onion  
     octaves 16
     frequency 11
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/2]  
     [0.5 rgbt <1,1,1,0>/3]
   //     [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 
       texture {
   
   pigment {
     onion  
     octaves 16
     frequency 23
    //  sine_wave
   
    color_map 
    {
    [0 rgbt <1,1,1,0>/2]  
     [0.5 rgbt <1,1,1,0>/5]
   //     [0.5 rgbt <0,0,0,1>]
    [1 rgbt <0,0,0,1>]
    }
   
   }  
 
 } 


}     
      
      
#declare rings1= union { 

object { ringb1 }
 
 object { ringa1 } 
    
    
  object { ringc1 } 
  
    finish {
    specular 0.5
    diffuse 0.7
  //  brilliance 0.1
   //   reflection 1
    }  
 }  
 
 
  
  
  
 #declare gasplaneta = object {
  sphere {0,1}
  
  texture {


       gradient y
       frequency 3
       sine_wave    
       
       turbulence 0.05
       
 texture_map
  
    {
   [0.0 pigment { color rgb <0.81, 0.57, 0.48> }]
   //   [0.33 pigment { color rgb <0.81, 0.57, 0.48> }] 
     //    [0.66 color rgb <1,1,1>] 
   [1.0 pigment {color rgb <0.78, 0.71, 0.72> }]
   }
   
 
  }
 
 }
  
  
  
union {  
  
 object {
 gasplaneta
 } 
  
 
 object {
 
 rings1 


 }


 rotate x*66   
  
 } 
  

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
current07:46, 24 September 2023Thumbnail for version as of 07:46, 24 September 20231,600 × 1,200 (202 KB)Merikanto (talk | contribs)Update of code
18:36, 26 September 2022Thumbnail for version as of 18:36, 26 September 20221,600 × 1,200 (216 KB)Merikanto (talk | contribs)Update
18:15, 26 September 2022Thumbnail for version as of 18:15, 26 September 20221,600 × 1,200 (335 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata