File:Fictional exomoon 2 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: 855 KB, MIME type: image/png)

Captions

Captions

Fictional exomoon or Mercury-like exoplanet

Summary[edit]

Description
English: Fictional Mercury-like exoplanet or exomoon
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code


// // exomoon of mercury/moon like fictional exoplanet // POV-ray 3.7 source code // // 15.4.2023 v 0000.0002 //


  1. version 3.7;
  1. default{finish{ambient 0}}

//#global_settings{assumed_gamma 1.0 max_trace_level 5}


// 0 fast render with normal, 1 slow render with isosurface

  1. declare set_isosurface1=1;





light_source{<10, -5, -5>*1000*1000 color rgb 1.0}

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



camera{

 location <0, 1, -5.5>
 up y*(image_height/image_width)
 right x
 sky y
 look_at <0, 0, 0>
 angle 36

}


  1. declare f_bozo1 =

function{

 pigment{
   bozo
   noise_generator 3
   scale 0.35
   turbulence 0.30
   color_map{
     [0 color rgb 0]
     [1 color rgb 1]
   }
 }

}

  1. declare f_craters1 =

function{

 pigment{
   crackle form <1.2, 0, 0> 
   turbulence 0.1 omega 0.6
   scale 0.15
   color_map{
     [0.00 color rgb 1.00] 
     [0.25 color rgb 0.75]
     [0.33 color rgb 0.25]
     [0.40 color rgb 0] 
     [1.00 color rgb 0] 
   }
 }

}

  1. declare f_granite1 =

function{

 pigment{
   granite
   scale 0.08
   color_map{
     [0 color rgb 0]
     [0.5 color rgb 0]
     [1 color rgb 1]
   }
 }

}


// to normal

  1. declare surface_func_1= function{
     sqrt(x*x+y*y+z*z)-1.5

// +f_bozo1(x*30,y*30,z*30).red*0.0002

//    +f_craters1(x/10,y/10,z/10).red*0.05
//  +f_craters1(x/6,y/6,z/6).red*0.010
//  +f_craters1(x/3,y/3,z/3).red*0.015

+f_craters1(x,y,z).red*0.005

+f_craters1(x+1,y+1,z+1).red*0.003  
    
+f_craters1(x-1,y-1,z-1).red*0.002 
   +f_craters1(x*3,y*3,z*3).red*0.0015 
   +f_craters1(x*3+1,y*3+1,z*3+1).red*0.0010 

   +f_craters1(x*9,y*9,z*9).red*0.0005  
   +f_craters1(x*9+1,y*9+1,z*9+1).red*0.0005  
   +f_craters1(x*9+2,y*9+2,z*9+2).red*0.0005  


   +f_craters1(x*30,y*30,z*30).red*0.00015 
 
    +f_craters1(x*30+1,y*30+1,z*30+1).red*0.00010   
   +f_craters1(x*90,y*90,z*90).red*0.00005
       +f_craters1(x*300,y*300,z*300).red*0.00005


 +f_granite1(x,y,z).red*0.001

   

}



  1. declare surface_func_2= function{
     sqrt(x*x+y*y+z*z)-1.2

// +f_bozo1(x*30,y*30,z*30).red*0.0002

// +f_craters1(x/10,y/10,z/10).red*0.05

//  +f_craters1(x/6,y/6,z/6).red*0.010
  +f_craters1(x/3,y/3,z/3).red*0.015

+f_craters1(x,y,z).red*0.005

+f_craters1(x+1,y+1,z+1).red*0.003  
    
+f_craters1(x-1,y-1,z-1).red*0.002 
   +f_craters1(x*3,y*3,z*3).red*0.0015 
   +f_craters1(x*3+1,y*3+1,z*3+1).red*0.0010 
 
   +f_craters1(x*9,y*9,z*9).red*0.0005  
   +f_craters1(x*9+1,y*9+1,z*9+1).red*0.0005  
   +f_craters1(x*9+2,y*9+2,z*9+2).red*0.0005  


   +f_craters1(x*30,y*30,z*30).red*0.00015 
 
    +f_craters1(x*30+1,y*30+1,z*30+1).red*0.00010   
   +f_craters1(x*90,y*90,z*90).red*0.00005
       +f_craters1(x*300,y*300,z*300).red*0.00005  


 }



// --------------------------------------------------------------

  1. declare moon_surface_1=isosurface{
 function{
  surface_func_2(x,y,z)
 }
 contained_by{sphere {0,2}}
 threshold 0
 accuracy 0.0001
 max_gradient 40

}



  1. declare exomoon1=object {
  1. if (set_isosurface1=0)
   sphere {0, 1}
  1. end
  1. if (set_isosurface1=1)
   isosurface {
       moon_surface_1
   }  
  1. end



texture {

 //  pigment {color rgb <1,1,1>*0.6}
    pigment {
   //agate 
   wrinkles  
   scale 0.5
   pigment_map {
       [0 color rgb 1*0.95]
       [0.5 color rgb 1*0.35] 
       [1 color rgb 1*0.05] 
       }
   }
  1. if (set_isosurface1=0)
   normal {
       function{surface_func_1(x,y,z)} -1000
     //  scale -1/3 
         }
  1. end
#if (set_isosurface1=1)  
     
   normal {
       granite -0.01
        scale 0.1 
         }
  1. end
   finish {
       ambient 0
       diffuse 0.5  
       
        // brilliance 10
       }


   }




}



object {exomoon1}




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:35, 15 April 2023Thumbnail for version as of 08:35, 15 April 20231,600 × 1,200 (855 KB)Merikanto (talk | contribs)Correction of topography of isosurface
16:25, 14 April 2023Thumbnail for version as of 16:25, 14 April 2023800 × 600 (218 KB)Merikanto (talk | contribs)New layout
07:30, 14 April 2023Thumbnail for version as of 07:30, 14 April 20231,600 × 1,200 (456 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata