File:Colliding planets 1 r 1 1 1 1.png
Original file (1,200 × 800 pixels, file size: 441 KB, MIME type: image/png)
Captions
Summary
[edit]DescriptionColliding planets 1 r 1 1 1 1.png |
English: Colliding planets. |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.8 source code
// colliding planets
// pov-ray source code
// 21.5.2024 v 0000.0000
- include "functions.inc"
- include "rand.inc"
- include "colors.inc"
- include "stones.inc"
camera {
location <5,10,-10>*0.7
look_at 0
angle 35
}
light_source {
<1000,1000,-1000>*1000*1000*1000
color rgb <1,1,1>*1
}
background { rgb <0,0,0> }
- declare stars1=sky_sphere {
pigment {
bozo
color_map {
[0.0 White*3]
[0.2 Black]
[1.0 Black]
}
scale .006
scale 1/10
}
pigment {
bozo
color_map {
[0.0 White*3]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 3/100
}
pigment {
bozo
color_map {
[0.0 White*2]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 1/100
}
pigment {
bozo
color_map {
[0.0 White*2]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 3/1000
}
pigment {
bozo
color_map {
[0.0 White*1]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 1/1000
}
pigment {
bozo
color_map {
[0.0 White*1]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 3/10000
}
pigment {
bozo
color_map {
[0.0 White*1/2]
[0.2 rgbt 1]
[1.0 rgbt 1]
}
scale .006
scale 1/10000
}
}
sky_sphere {stars1}
- declare explocloud1=sphere { 0,2 hollow no_shadow
texture { pigment { rgbt 1 } }
interior {
media { absorption 8 emission 8 method 3 samples 30,30 intervals 1
density { spherical
warp { turbulence .75*.3+.05 lambda 2.75 }
density_map {
[1-.99*.75 rgb <0,0,0>]
[1-.99*.75 rgb <max(0,1-.75*1.5),max(0,1-.75*4.5),max(0,1-.75*6)>]
[1 rgb <.75,.25,0>] }
}
}
media { absorption 3 scattering { 1 .3 } method 3 samples 30,30 intervals 1
density { spherical
warp { turbulence .75*.3+.05 lambda 2.75 }
density_map {
[1-.99*.75 rgb 0]
[1-.99*.75 rgb 1]
[1-.49*.75 rgb 1]
[1-.49*.75 rgb 0]
}
}
}
}
}
- declare bright1=sphere
{ 0,1 pigment { rgbt 1 } hollow
interior
{ media
{ emission 1
density
{
// spherical
function {
f_spherical(x,y,z)-f_wrinkles(x,y,z)*0.1
}
density_map
{ [0 rgb 0]
[0.4 rgb <1,0,0>]
[0.8 rgb <1,1,0>]
[1 rgb 1]
}
}
}
media
{ absorption 0.2
}
}
}
- declare torus1= object {
torus {1,0.25}
scale y/2
rotate z*90
//pigment { color rgb <1,0,0>}
pigment { rgbt 1 } hollow no_shadow
/*
interior
{ media
{ emission 1
density
{ spherical density_map
{ [0 rgb 0]
[0.4 rgb <1,0,0>]
[0.8 rgb <1,1,0>]
[1 rgb 1]
}
}
}
media
{ absorption 0.2
}
}
- /
interior {
media { absorption 8 emission 8 method 3 samples 30,30 intervals 1
density { spherical
warp { turbulence .75*.3+.05 lambda 2.75 }
density_map {
[1-.99*.75 rgb <0,0,0>]
[1-.99*.75 rgb <max(0,1-.75*1.5),max(0,1-.75*4.5),max(0,1-.75*6)>]
[1 rgb <.75,.25,0>] }
}
}
media { absorption 3 scattering { 1 .3 } method 3 samples 30,30 intervals 1
density { spherical
warp { turbulence .75*.3+.05 lambda 2.75 }
density_map {
[1-.99*.75 rgb 0]
[1-.99*.75 rgb 1]
[1-.49*.75 rgb 1]
[1-.49*.75 rgb 0]
}
}
}
}
}
- declare s1= object {
isosurface {
function {
f_sphere(x,y,z,0.5)
//f_sphere(x,y,z,0.5)-f_wrinkles(x*10,y*10,z*10)*0.5
//f_sphere(x, y, z, 0.5) - f_noise3d(x * 10, y * 10, z * 10) * 0.1
// sqrt(pow(x,2) + pow(z,2)) - 1
//sqrt(pow(x,2) + pow(y,2) + pow(z,2)) - 2
// pow(sqrt(x*x+z*z),2) + y // paraboloid ?
}
threshold 0.001
max_gradient 1
bounded_by {sphere {0,10 }}
}
// pigment { color rgb <1,0,0>}
}
// parameters
- declare R = 1;
- declare H = 1;
- declare T = 0.01;
// derived
- declare A = H / pow (R, 2);
- declare T1 = (2 * H * T) / (sqrt (1 + pow (2 * H / R, 2)) * R);
- declare A1 = (H - T) / pow (R - T1, 2);
- declare s2=intersection
{ cylinder { 0, H * y, R }
poly { 2, <A, 0, 0, 0, 0, 0, -1, A, 0, 0> }
poly { 2, <-A1, 0, 0, 0, 0, 0, 1, -A1, 0, -T> }
// pigment { color rgb <1,0,0>}
// finish { phong 0.2}
}
- declare metis1=
media { absorption 8 emission 8 method 3 samples 30,30 intervals 1
density { spherical
warp { turbulence .75*.3+.05 lambda 2.75 }
density_map {
[1-.99*.75 rgb <0,0,0>]
[1-.99*.75 rgb <max(0,1-.75*1.5),max(0,1-.75*4.5),max(0,1-.75*6)>]
[1 rgb <.75,.25,0>] }
}
}
- declare metis2= media { emission 2 absorption 2
density {
spherical
turbulence .3 lambda 3
density_map {
[.01 rgb 0]
[.01 rgb <1,0,0>]
[1/4 rgb <1,.5,0>]
[2/4 rgb <1,1,0>]
[3/4 rgb <1,1,1>]
}
}
}
- declare metis3=
media { absorption 1 scattering { 1 .3*<1,.5,0> }
density { spherical
scale <1,.5,1>
warp { turbulence .3 }
density_map { [0 rgb 0][.1 rgb 1] }
}
}
- declare metis4= media { absorption 1 scattering { 1 .1 }
density { spherical
scale <1,.5,1>
warp { turbulence .3 }
density_map { [0 rgb 0][.1 rgb 1] }
}
}
/*
- declare metis5=
media { scattering { 1 1 }media { scattering { 1 1 }
density { spherical
scale <1,.5,1>
warp { turbulence .3 }
density_map { [0 rgb 0][.1 rgb 1] }
}
}
density { spherical
scale <1,.5,1>
warp { turbulence .3 }
density_map { [0 rgb 0][.1 rgb 1] }
}
}
- /
object {s1
scale 6
rotate z*-90
translate x*-0.3
hollow no_shadow
texture { pigment { rgbt 1 } }
interior {
media {metis2 scale 2}
}
//rotate x*-30
scale x*0.5
}
/*
object {s2
scale 4
rotate z*-90
translate x*-0.3
hollow no_shadow
texture { pigment { rgbt 1 } }
interior {
media {metis2 scale 2}
}
//rotate x*-30
}
- /
//object {torus1 scale 3}
// rayleigh based atm
- declare atm_thickness1 = 0.1;
- declare atm_color1 = rgb <pow(460/650, 4), pow(460/555, 4), 1>;
- declare atm_amount1=0.3;
- 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)
}
}
- declare atm_media1 = media
{
method 3
intervals 3
samples 3
scattering
{ 4
color atm_amount1*atm_color1/atm_thickness1
// extinction 1
}
density {atm_density1}
}
- declare atmos1 = difference
{
sphere {0, 1.00001 + atm_thickness1}
// sphere {0, 1.00001}
hollow
pigment {rgbt 1}
interior {media{atm_media1}}
}
union {
object {atmos1}
object {
sphere {0,1}
//texture {T_Stone2}
normal {agate}
pigment {
// wrinkles
agate scale 4
scale 1
color_map {
[0 color rgb <0.521569, 0.368627, 0.258824,0>]
[0.7 color rgb <0.521569, 0.368627, 0.258824,0>*0.8]
// [0.7 color rgb <0,0.5,0>]
[0.7 color rgb <0,0,0.2>]
[1 color rgb <0,0,0.2>]
}
}
}
object {
sphere {0,1.005}
pigment {
// wrinkles
granite
turbulence 1
scale 1
color_map {
[0 color rgbt <1,1,1,0>]
[1 color rgbt 1]
}
}
}
translate x*-1
}
object {
sphere {0,0.5}
translate x*0.5
/*
pigment {
wrinkles
//agate
//granite
scale 1/4
color_map {
[0.0 color rgb <1,1,0>]
[0.2 color rgb <1,0,0>]
[0.5 color rgb <0.521569, 0.368627, 0.258824,0>]
[1 color rgb <0.65098, 0.501961, 0.388235,0>]
}
}
normal {
granite scale 1/3 bump_size -1/10
}
- /
texture{
pigment{ crackle
scale 4
warp { turbulence 0.35 }
scale 1/4
color_map{
[0.01 color Orange*2]
[0.02 color Red]
[0.04 color rgb<0.521569, 0.368627, 0.258824,0>]
[1.00 color rgb<0.65098, 0.501961, 0.388235,0>]
} // end of color_map
scale 0.2
} // end of pigment
normal { bumps 0.75 scale 0.02}
finish { diffuse 0.3 phong 0.2}
rotate<0,-30,0>
translate<0.01, 0.04, 0.00>
}
}
Licensing
[edit]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.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:01, 21 May 2024 | 1,200 × 800 (441 KB) | Merikanto (talk | contribs) | New layout | |
18:06, 20 May 2024 | 3,200 × 2,400 (2.54 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 | 12:58, 21 May 2024 |
Software used |