File:Colliding planets 2 r 1 1 1 1.png
Original file (3,600 × 2,700 pixels, file size: 3.41 MB, MIME type: image/png)
Captions
Summary
editDescriptionColliding planets 2 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 3.7 src
// 21.5.2024 v 0000.0001
- include "colors.inc"
- include "stones.inc"
- include "functions.inc"
- include "rand.inc"
camera {
location <5,7,-10>*1.5
look_at 0
angle 35
}
light_source {
<1000,1000,-1000>*1000*1000*1000
color rgb <1,1,1>*1
}
sky_sphere {
pigment { bozo
color_map {
[0 color rgb 1]
[0.1 color rgb 1]
[0.2 color rgb 0]
[1 color rgb 0]
}
scale 1/1000
}
}
- declare cup1= difference {
sphere {0,1}
sphere {<0.1,0,0>,1.05}
}
- declare _thickness = 10;
- declare thickParaboloid =
function { abs(pow(x,2) + pow(z,2) - y*2) - _thickness * 0.5}
- declare para1=isosurface {
function { abs(pow(x,2) + pow(z,2) - y*2) - _thickness * 0.5 }
max_gradient 15.0
contained_by { box { -5, 5 } }
// texture { pigment { color rgb 1.0 } }
}
- declare para2=isosurface {
function { abs(pow(x*1.1,2) + pow(z*1.1,2) - y*0.9) - _thickness * 0.5 }
max_gradient 15.0
contained_by { box { -5, 5 } }
texture { pigment { color rgb 1.0 } }
}
- declare para3=isosurface {
function { abs(pow(x,2) + pow(z,2) - y*3 ) -1 }
max_gradient 15.0
contained_by { box { -5, 5 } }
texture { pigment { color rgb 1.0 } }
}
- declare para3=isosurface {
function { (abs(pow(x,2) + pow(z,2) - y*4 ) -1) +f_granite(x,y/4,z)*2 }
max_gradient 15.0
contained_by { box { -5, 5 } }
texture { pigment { color rgb 1.0 } }
}
- declare para3=isosurface {
// function { (abs(pow(x,2) + pow(z,2) - y*8 ) -1) +f_wrinkles(x,y/6,z)+f_granite(x,y/4,z)*1.5 }
function { (abs(pow(x,2) + pow(z,2) - y*4 ) -2) +f_granite(x,y/20,z)*1.5 }
// function { (abs(pow(x,2) + pow(z,2) - y*4 ) -2) +f_granite(x,y/2,z)*1.5 }
// function { (abs(pow(x,2) + pow(z,2) - y*4 ) -2) }
max_gradient 25.0
contained_by { box { -10, 10 } }
}
- declare media1= media {
// samples 30,50
emission <1,0.75,0>*10
absorption 0.1
density {
//spherical
// granite
// function { f_sphere(x,y,z,1)*f_granite(x,y/10,z/2)}
// function { f_sphere(x,y,z,1)*f_granite(sqrt(x*x+z*z),y/10,sqrt(x*x+z*z))}
// function { f_sphere(x,y+2,z,1)*f_granite(atan2(x,z) ,y+2,atan2(x,z))}
// function { f_sphere(x,y+2,z,1)}
// function {y *f_granite(x,y/3,z)}
// function {y*f_granite(x,y/30,z)*f_wrinkles(x,y/40,z)}
// function {-y*3 *f_granite(x,y,z)}
function {-y/1.5 }
//frequency 12
density_map {
[0 color rgbt <0,0,0,1>]
//[0.25 color rgbt <1,0,0,0.7>]
[0.5 color rgbt <1,1/2,0,0.3>]
//[0.75 color rgbt <1,1,0,0>]
[1 color rgbt <1,1,1,0>]
}
scale y*3
}
}
- declare splash1=object {
//cup1
//intersection {
//object {para3}
object {para3
scale y/3
hollow
// no_shadow
pigment { color rgbt 1}
interior {
media {
media1
}
}
}
//}
rotate z*-90
rotate x*30
rotate z*90
//pigment { color rgb 1}
}
- declare explo1= object {
sphere { 0,2 }
hollow no_shadow
texture { pigment { rgbt 1 } }
interior {
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>]
}
}
}
}
scale 1
}
/*
- declare planet1= object {
sphere {0,1}
pigment { color rgb <0,0,1>}
}
- declare planet2= object {
sphere {0,1}
pigment { color rgb <1,0,0>}
}
- /
- declare planet1= union {
// Ensimmäinen planeetta
sphere {
<0, 0, 0>, 1
texture {
pigment {
gradient y
scale 2
translate y*1
pigment_map {
[0 wrinkles scale 0.4
color_map {
[0 color rgb <0.521569, 0.368627, 0.258824>]
[0.5 color rgb <0.65098, 0.501961, 0.388235>]
[ 0.5 color rgb <0,0,0.1>]
[ 1 color rgb <0,0,0.1>]
} ]
[0.75 wrinkles scale 0.4
color_map {
[0 color rgb <0.521569, 0.368627, 0.258824>]
[0.5 color rgb <0.65098, 0.501961, 0.388235>]
[ 0.5 color rgb <0,0,0.1>]
[ 1 color rgb <0,0,0.1>]
} ]
/*
[0.95 granite scale 0.5 color_map {
[0 color rgb <0.521569, 0.368627, 0.258824>]
[1 color rgb <0.65098, 0.501961, 0.388235>]
} ]
- /
[1 granite scale 0.02 warp { turbulence 0.1 } color_map {[0 color rgb <1,0,0>*5 ] [1 color rgb <1,1,0>*5 ]} ]
}
}
}
}
sphere {<0,0,0>,1.006
scale 1
pigment {
granite
scale 0.3
scale 10
warp { turbulence 1 }
scale 1/10
scale 2
warp { turbulence 0.5 }
scale 1/2
scale 8
color_map {
[0 rgbt 1 ]
[0.05 rgbt 1 ]
[1 rgbt <1,1,1,0> ]
}
} // pigment
} // sphere
} // union
- declare planet2=sphere {
<0, 0, 0>, 1
texture {
// pigment { granite }
pigment {
gradient -y
scale 2
translate y*-1
pigment_map {
[0 granite scale 0.2 color_map {[0 color rgbt <0.521569, 0.368627, 0.258824,0>] [1 color rgbt <0.65098, 0.501961, 0.388235,0>] } ]
[0.3 granite scale 0.5 color_map {[0 color rgbt <0.521569, 0.368627, 0.258824,0>] [1 color rgbt <0.65098, 0.501961, 0.388235,0>] } ]
[1 granite scale 0.01 warp { turbulence 0.1 } color_map { [0 color rgb <1,0,0>*5 ] [1 color rgb <1,1,0>*5 ] } ]
}
}
// finish { ambient 0.2 diffuse 0.7 }
normal { granite scale 0.3 bump_size -0.3}
}
}
union {
object {planet1
scale 3
translate <0,0,0>
}
object {planet2
scale 3/2
translate <0,3,0>
}
object {splash1
scale 0.4
translate y*2.2
}
object {explo1
scale 2.5
translate y*2
}
rotate z*-40
}
Licensing
editThis 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 | 17:51, 21 May 2024 | 3,600 × 2,700 (3.41 MB) | Merikanto (talk | contribs) | New layout | |
18:59, 20 May 2024 | 3,200 × 2,400 (3.27 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 | 17:49, 21 May 2024 |
Software used |