File:Colliding meteoroids 1 r 1 1 1 1.png
Original file (3,600 × 2,700 pixels, file size: 4.85 MB, MIME type: image/png)
Captions
Summary
[edit]DescriptionColliding meteoroids 1 r 1 1 1 1.png |
English: Colliding meteoroids |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.7 source code
//
// colliding stones or asteroids
// POV-Ray 3.6 source code
//
// 24.05.2024 0000.0000
//
- include "functions.inc"
- include "rand.inc"
- include "colors.inc"
- include "stones.inc"
global_settings {
max_trace_level 2
}
camera {
location <0,0,-30>
look_at 0
angle 25
}
- declare fase1=clock;
- declare seed1=seed(123);
- declare seed2=seed(1234);
- declare seed3=seed(12345);
- declare seed4=seed(123456);
- declare seed5=seed(4123);
- declare seed6=seed(41234);
- declare seed7=seed(412345);
- declare seed8=seed(4123456);
- declare seed9=seed(6123);
- declare seed10=seed(61234);
- declare seed11=seed(612345);
- declare seed12=seed(6123456);
light_source{ <0,0,-1>*1000*1000*150*3 color rgb 1}
light_source{ 0 color rgb 1}
- declare explo1=
object {
sphere{ 0,1}
pigment{rgbt 1}
hollow
interior{
media{
absorption 0.01
emission 0.5
scattering{1,60}
//density { function {f_spherical(x,y,z) }}
density {function{
// f_granite(x*4,y*4,z*4)*0.5*pow( f_spherical(x,y,z), 4)
// pow( f_spherical(x,y,z), 4)
//f_granite( ((sin(atan2(x,y)/3)+1)/2),((sin(atan2(z,y)/3)+1)/2),((sin(atan2(x,z)/3)+1)/2))
pow(f_granite( ((sin(atan2(x,y)/3)+1)/2),((sin(atan2(z,y)/3)+1)/2),((sin(atan2(x,z)/3)+1)/2))
,3)
- pow(f_spherical(x,y,z),4)*1
}
turbulence 0.1
poly_wave 1.5
color_map {
[0 color rgb 0]
[1 color rgb <1,0.5,0>]
}
scale 0.5
}
scale 1.5
}
// media 2
media {
//absorption 0.1
scattering { 1 1 }
density {
// spherical
function {
// pow(f_spherical(x,y,z),6)*pow(f_granite(x*10,y*10,z*10),1)
// pow(f_spherical(x,y,z),5)*f_wrinkles(x*3,y*3,z*3)*f_granite(x*3,y*3,z*3)
// pow(f_spherical(x,y,z),5)
// * f_agate( ((sin(atan2(x,y)/3)+1)/2)/pi,((sin(atan2(x,y)/3)+1)/2)/pi ,((sin(atan2(x,y)/3)+1)/2)///pi) *f_granite(x,y,z)
pow(f_spherical(x,y,z),5)
* f_agate( ((sin(atan2(x,y)/3)+1)/2)/(2*pi),((sin(atan2(x,y)/3)+1)/2)/(2*pi) ,((sin(atan2(x,y)/3)+1)/2)/(2*pi)) *f_granite(x,y,z)
}
}
}
} // interior
// scale C*0
}
- declare krakpig1 =
pigment{ crackle
turbulence 0.35 scale 0.45/1
color_map{
[0.00 color rgb<1,0.5,0>*1]
[1.00 color rgb <1,0.6,0.3> ]
}
}
- declare planet00=object{
sphere {0,1 }
texture{ pigment{ krakpig1 }
finish { phong 1 }
}
}
- declare f_krak1 = function {pigment{ krakpig1} }
- declare planet01=isosurface {
function{
f_sphere(x,y,z,1)
- f_krak1(x,y,z).gray*0.1
}
threshold 0
contained_by {box {<-2,-2,-3>,<2,2,3.5>}}
max_gradient 6
accuracy 0.0001
texture{
pigment{ krakpig1}
normal { crackle 0.5 scale 0.045}
finish { phong 1}
} // end texture
}
- declare stone1= object
{
isosurface {
function { f_sphere(x, y, z, 1.2) - f_noise3d(x, y, z)+f_granite(x,y,z)*0.1 }
accuracy 0.01
max_gradient 15
contained_by {sphere {0,5}}
}
texture {T_Stone2}
}
- declare stone2= object
{
isosurface {
function { f_sphere(x, y, z, 1.2) - f_noise3d(x+1, y+1, z+1)+f_granite(x+1,y+1,z+1)*0.1 }
accuracy 0.01
max_gradient 15
contained_by {sphere {0,5}}
}
texture {T_Stone2}
}
- declare stone3= object
{
isosurface {
function { f_sphere(x, y, z, 1.2) - f_noise3d(x+2, y-1, z+2)+f_granite(x+4,y+3,z+3)*0.1 }
accuracy 0.01
max_gradient 15
contained_by {sphere {0,5}}
}
texture {T_Stone2}
}
- declare stones1= union {
- for (num,0,300)
#declare fii2=rand(seed1)*360;
#declare theta2=rand(seed2)*180-90;
#declare rr2=exp(rand(seed3))*3*1 ;
object {
// sphere {0,1}
stone3
scale 0.15
texture {
T_Stone2
normal {granite scale 0.1 bump_size -1}
finish {ambient 0}
}
scale pow( rand(num/300), 3.5)
scale x*rand(seed4)+1
scale < 1, 0.1+2*rand(seed1+seed4), 1 >
rotate y*rand(seed5)*360
rotate x*rand(seed6)*360
rotate z*rand(seed7)*360
translate x*rr2
rotate z*rand(seed8)*180-90
rotate <theta2,fii2,0>
}
#end
}
//object {planet01 scale 0.5 scale y*1.5 translate x*2 }
union {
object {explo1 scale 7 rotate <50,30,60> }
object {stones1}
object {stone1 translate x*2
normal { granite bump_size -1}
finish {ambient 0 phong 0.1 specular 0.1 diffuse 0.3}
}
object {stone2
scale 1/2
translate x*-1
normal { granite bump_size -0.5}
finish {ambient 0 phong 0.1 specular 0.1 diffuse 0.3}
}
rotate y*30+180
rotate z*30
}
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 | 10:48, 24 May 2024 | 3,600 × 2,700 (4.85 MB) | Merikanto (talk | contribs) | More accurate rendering | |
08:49, 24 May 2024 | 1,200 × 900 (717 KB) | 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 | 10:43, 24 May 2024 |
Software used |