File:Carbon rich planet povray 4 r 1.png
Original file (2,400 × 1,800 pixels, file size: 2.07 MB, MIME type: image/png)
Captions
Summary
[edit]DescriptionCarbon rich planet povray 4 r 1.png |
English: Carbon rich planet |
Date | |
Source | Own work |
Author | Merikanto |
Pov-Ray 3.7 source code
//
// carbon rich planet
// pov-ray 3.7 source code
// 21.03.2023 v 0000.0004
//
- include "colors.inc"
- include "textures.inc"
- include "shapes.inc"
- include "functions.inc"
- declare planetsize=1000;
camera {
location <0,0,-1000*8>
look_at <0,0,0>
angle 24
}
light_source {
<4,0, -1>*1000*1000*150
color rgb <1,1,1>*1
}
sky_sphere
{
pigment {
bozo
scale 0.001
color_map
{
[0 color rgb 0]
[0.8 color rgb 0]
[1 color rgb 1]
}
rotate z*45
}
pigment {
bozo
scale 0.0001
color_map {
[0 color rgb 0 transmit 1]
[0.8 color rgb 0 transmit 1]
[1 color rgb 1 transmit 0]
}
}
rotate z*80
}
#declare blacker1 = pigment {
wrinkles
turbulence 0.2
pigment_map {
[0 color Black]
[ 0.5 color <1,1,1>/20 ]
[1 color <1,1,1>/60]
}
}
#declare browner1 = pigment {
wrinkles
turbulence 0.2
pigment_map {
[0 color LightWood]
[ 0.5 Copper ]
[1 Brown]
}
}
// surface of planet function
- declare funk1= function {
( f_wrinkles(x,y,z)
+ f_wrinkles(x*3,y*3,z*3)
+ f_wrinkles(x*10,y*10,z*10)
+ f_wrinkles(x*30,y*30,z*30)
+ f_wrinkles(x*100,y*100,z*100)
+ f_wrinkles(x*300,y*300,z*300)
+ f_wrinkles(x*1000,y*1000,z*1000)
+ f_wrinkles(x*3000,y*3000,z*3000)
+ f_wrinkles(x*10000,y*10000,z*10000)
)/ 9
}
- declare carbon_tex_1 = texture {
pigment {
function
{
funk1(x,y,z)
}
pigment_map {
[0 blacker1]
[ 0.5 blacker1 ]
[1 browner1]
}
}
normal {
function
{
funk1(x,y,z)*1
}
scale 1
}
finish {
ambient 0
}
}
#declare icecaps_1 = pigment {
gradient y
scale 2
turbulence 0.00
translate y*1
pigment_map {
[0 wrinkles scale 0.1
color_map {
[0 color rgbt <1,1,1,0>*2 ]
[0.5 color rgbt <1,1,1,0>*1 ]
[1 color rgbt <1,0,0,1> ]
}
]
[1.5/10 color rgbt <0,0,0,1> ]
[5/10 color rgbt <0,0,0,1> ]
[9/10 color rgbt <0,0,0,1> ]
[1
granite
scale 0.1
color_map {
[0 color rgbt <0,0,0,1> ]
[1 color rgbt <1,1,1,1> ]
}
]
}
}
#declare carbon_tex_2= texture {
pigment {icecaps_1}
finish {ambient 0}
}
#declare cloudcolor1=rgb <0.56, 0.55, 0.60>;
#declare cloudtex_2= pigment {
// agate
//granite
//scale 100
wrinkles
// bozo
// turbulence 1.1
turbulence 1.5
octaves 60
omega 0.65
lambda 2
color_map {
[0.0 0.05 color rgbt cloudcolor1 color rgbt <.75, .75, .75, .7>]
[0.05 0.4 color rgbt <.75, .75, .75, .7> color rgbt <1, 1, 1, 1>]
[0.4 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]
}
}
#declare clouds_1=
sphere { <0, 0, 0>, 1
hollow on
pigment {
wrinkles
turbulence 2
octaves 60
omega 0.7
lambda 2
color_map {
[0.0 0.05 color rgbt cloudcolor1 color rgbt <.75, .75, .75, .7>]
[0.05 0.4 color rgbt <.75, .75, .75, .7> color rgbt <1, 1, 1, 1>]
[0.4 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]
}
scale 1
}
finish { ambient 0 diffuse 1.0 reflection 0 }
}
#declare clouds_2= sphere { <0, 0, 0>, 1.002
hollow on
pigment {
gradient y
turbulence 1.3
scale 2
translate y*1
pigment_map {
[0 cloudtex_2 scale 1/4 ]
// [0.25 color Clear ]
// [0.5 cloudtex_1 scale 600 ]
// [0.75 color Clear ]
// [1 cloudtex_1 scale 1200 ]
}
}
finish { ambient 0 diffuse 1.0 reflection 0 }
}
#declare halo_2=sphere
{ 0,1 pigment { rgbt 1 } hollow
interior
{ media
{
// emission 1/10000*<182,192,201>/256
// absorption 1/10000
scattering {4,1/50*<0.5,0.75,1> }
density
{
function {
// exp(1/(sqrt(x*x+y*y+z*z)) )
2* (1/(pow(sqrt(x*x+y*y+z*z),.75)))
// * f_granite(x,y,z)
}
density_map
{ [0 rgbt <0,0,0,1>]
[0.05 rgbt <0.5,0.6,0.7,0.5>]
[1 rgbt <0.5,0.6,0.7,0>]
}
}
}
}
scale 1.005
}
- declare carbon_planet=union {
object {
//sphere {0,1}
isosurface {
function {
f_sphere(x,y,z,1)
// if you wanna isosurface object, very sloooow ...
//+funk1(x,y,z)*0.01
}
contained_by { sphere {0,2} }
threshold 0.0
accuracy 0.001
max_gradient 1.1
}
texture { carbon_tex_1}
texture { carbon_tex_2}
finish {ambient 0}
}
object {clouds_1 scale 1.001}
//object {clouds_2 scale 1.002}
//object {halo_2}
scale planetsize
}
object {
carbon_planet
rotate <1,2,3>
}
Licensing
[edit]- 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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:36, 21 March 2023 | 2,400 × 1,800 (2.07 MB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
PNG file comment |
|
---|---|
File change date and time | 19:28, 21 March 2023 |
Software used |