File:Thalassa like planet 2 1.png

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

Original file(3,600 × 2,700 pixels, file size: 2.73 MB, MIME type: image/png)

Captions

Captions

Rendering of planet like Thalassa

Summary

[edit]
Description
English: Rendering of planet like Thalassa
Date
Source Own work
Author Merikanto

POV-Ray 3.7 source code


  1. include "functions.inc"

background { color rgb 0 }

camera {
 
     location <0, 0, -10> *0.4
     look_at  <0, 0,  0>  
   angle 50
}


light_source // Valonlähde
   { 
    <10, 1, -10>*1000*1000*150 
//       <0, 0, -1000>*1000*1000*150  
color rgb 1
   }                             


  1. declare planetf1=
    function {

//(( sin( ( (atan2(x,y)*1)+(pi)) )+1)/2)

(( sin( ( (atan2(x,y)*1)+(pi)) )+1)/2)


  • f_agate(x/2,z/2,y/2)
  • f_agate(x*1,z*1,y*1)
  • f_agate(x*4,y*4,z*4)

}

  1. declare planet1=sphere { // planet
  <0, 0, 0>, 1 
  texture { 
          pigment { 


function { planetf1(x,y,z) }
   octaves 64
   color_map {
   [0 color rgb <0,0,0.3> ]
   [0.85 color rgb <0,0,0.3> ]
   [0.87 color rgb <0,1,1> ]     
[0.9 color rgb <0,0.5,0.0> ]  
[0.92 color rgb <0,0.7,0.0> ]  
  [1 color rgb <165,42,42>/255 ]  
 }
} 

// normal { function { max(planetf1(x,y,z), 0.85)} bump_size 0.1 }

finish {ambient 0} 

scale 1

} 
 rotate y*-90
   rotate z*90
} 


  1. declare clouds1=sphere {

0,1.0001

  texture { 
          pigment { 
  // agate
   function { f_wrinkles(x,y,z) }
   scale 0.1 scale 1
   turbulence 1.0
   scale 1/2 
 warp {turbulence 0.5}
  scale 2
   color_map {
   [0 color rgbt <1,1,1,1> ]  
   [0.5 color rgbt <1,1,1,1> ] 
   [1 color rgbt <1,1,1,0> ]  
 }
} 
finish {ambient 0} 

}

}


// rayleigh based atm
  1. declare atm_thickness1 = 0.02;
  2. declare atm_color1 = rgb <pow(460/650, 4), pow(460/555, 4), 1>;
  3. declare atm_amount1=1;


  1. declare atm_density1 = density

{

    function
    {

// 1*exp(-6.7*(sqrt(x*x+(y)*(y)+z*z)- 1 - 0.00001)/atm_thickness1)

   //   1*exp(-6.7*(sqrt(x*x+(y)*(y)+z*z)-1- 0.00001)/atm_thickness1)
 
   1*exp(-8*(sqrt(x*x+(y)*(y)+z*z)- 1 - 0.00001)/atm_thickness1) 
 

} }

  1. declare atm_media1 = media

{

    method 3
    intervals 3
    samples 3
    scattering
    { 4

color atm_amount1*atm_color1/atm_thickness1 // extinction 1

    }
    density {atm_density1}

}

  1. declare atmos1 = difference

{

    sphere {0, 1.00001 + atm_thickness1}
 //   sphere {0, 1.00001}
    hollow
    pigment {rgbt 1}
    interior {media{atm_media1}}

}


object {planet1 rotate x*-70} object {clouds1 rotate y*180} object {atmos1}


Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:55, 19 June 2024Thumbnail for version as of 10:55, 19 June 20243,600 × 2,700 (2.73 MB)Merikanto (talk | contribs)Update
18:14, 18 June 2024Thumbnail for version as of 18:14, 18 June 20242,400 × 1,800 (1.14 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata