File:Stones and planets in primordial solar nebula 1.png
Original file (3,840 × 2,160 pixels, file size: 1.32 MB, MIME type: image/png)
Captions
Summary[edit]
DescriptionStones and planets in primordial solar nebula 1.png |
English: Stones and planets in primordial solar nebula eg protoplanetary disk |
Date | |
Source | Own work |
Author | Merikanto |
Povray 3.7 source code
//
//
// planets are formed to dust&gas, pebbles adn planetesimals disk around the star
// Povray 3.7 code
//
// 8.4.2022 v 0000.0000
//
- include "colors.inc"
- include "functions.inc"
- include "rand.inc"
- include "textures.inc"
- include "stars.inc"
global_settings { assumed_gamma 1.0 }
camera {
// location <0,0,100>
// location <0,200,0>
// location <0,60,5>
location <0,30,0.3>
// up x sky z
look_at <0.0, 0.0, 0.0>
// look_at <0.0, 100, 2>
up 9
right 16
angle 80
}
- declare Orange=<1,0.5,0>;
- declare Yellow=<1,1,0>;
- declare White=<1,1,1>;
- declare Blue=<0.8,0.8,1>;
- declare Black=<0.0,0.0,0.0>;
- declare Grey=<0.5,0.5,0.5>;
- macro convection_cells(c)
crackle
pigment_map{
[0.0 rgb c*0.2]
[0.2 rgb c]
[0.9 rgb c]
[1.0 rgb 1.0]
}
warp{turbulence 0.3}
- end
- declare sunsurf1=object { sphere
{
0, 1
texture {
pigment {
crackle
pigment_map{
[0.0 rgb White]
[0.2 rgb White]
[0.9 rgb White]
[1.0 rgb 1.0]
}
warp{turbulence 0.3}
}
finish {
ambient 1
diffuse 0.01
reflection 0.01
} // fin
scale 0.05
}
scale 1
} // sphere
}
// halo 1
- declare sunhalo1= object { sphere
{
0, 1.1 hollow no_shadow
// normal {
// wrinkles 0.3
// }
pigment {rgbt 1 }
interior
{ media
{ emission 1
density
{ spherical density_map
{
[0 rgbt <0,0,0,1>]
[0.4 rgbt <0,0,0,1> ]
[1.0 rgbt <1,1,1,0> ]
}
}
samples 1,1 intervals 1 confidence .1 // quite fast settings
method 3
}
}
scale 1
}
}
// ... sunhalo1
- declare sun2=union {
object {sunsurf1 }
object {
sunhalo1
scale 2.5
}
}
/*
// stars
sphere {
0,1
texture{ Starfield2 scale 0.25
} //
scale 10000
}
*/
/*
- declare sun1= sphere {
<0,0,0>,2
texture {
pigment {
color rgb <1,1,0>
transmit 0
}
finish {ambient 100}
}
}
*/
- declare fn_Pigm=function {
pigment {
agate
color_map {
[0 color rgb 0]
[1 color rgb 1]
}
}
}
- declare motikka= isosurface {
//function { f_sphere(x, y, z, 0.5) - f_noise3d(x, y, z) }
// function { f_sphere(x, y, z, 0.5)-fn_Pigm(x/2, y/2, z/2).gray*0.5 }
// function { f_sphere(x, y, z, 0.5) - f_noise3d(x * 2, y * 2, z * 2) * 0.5 }
function { f_sphere(x, y, z, 0.5) - f_noise3d(x * 2, y * 2, z * 2) * 0.5 - f_noise3d(x * 10, y * 10, z * 10) * 0.1 }
threshold 0
accuracy 0.005
texture {
pigment {color
//Gray
DarkBrown
}
finish{
diffuse 0.5
ambient 0.1
specular 0.0
reflection 0.06
}
}
}
- declare rmax=1;
- declare rmin=0;
//#declare rdelta=rmax-rmin;
- declare rdelta=20;
- declare rmid=(rmax+rmin)/2;
//#declare fiidelta=20;
- declare fiidelta=20;
- local nn=0;
- declare theta=0.0;
- declare fii=0.0;
- declare motikoita=3000 ;
- while (nn<motikoita)
object
{
motikka
#declare seed1=seed(nn*1);
#declare seed2=seed(nn*15143);
#declare seed3=seed(nn*76359);
#declare seed4=seed(nn*8987547);
#declare seed5=seed(nn*15433);
#declare seed6=seed(nn*76923439);
#declare seed7=seed(nn*87639);
#declare seed8=seed(nn*76312);
#declare seed9=seed(nn*763439);
#declare seed10=seed(nn*873923);
#declare seed11=seed(nn*729853);
#declare theta=radians( rand(seed1)*360 );
#declare a1=Rand_Normal( 1.0, 0.33, seed2 );
#declare rc1=a1*rdelta+rmid;
#declare a2=Rand_Normal( 1.0, 0.5, seed3 );
#declare zc1= rand(seed4)*rc1/2-rc1/4;
#declare zc2=zc1*a2;
#declare x1=cos(theta)*rc1;
#declare y1=sin(theta)*rc1;
#declare z1=zc2;
#declare de1=rand(seed5);
// fictional size distribution
// #declare skale1=pow(de1,-0.111)*0.1;
// #declare skale1=pow(de1,-0.333)*0.1;
#declare skale1=pow(de1,-0.222)*0.05;
// #declare skale1=0.25;
// #declare skale2=<0.5,0.7,0.4> ;
#declare rot1=rand(seed6)*360;
#declare rot2=rand(seed7)*360;
#declare rot3=rand(seed8)*360;
#declare sx1=rand(seed9)*0.7+0.3;
#declare sy1=rand(seed10)*0.7+0.3;
#declare sz1=rand(seed11)*0.7+0.3;
#declare skale2=<sx1,sy1,sz1>;
scale skale1
scale skale2
rotate <rot1,rot2, rot3>
translate <x1,y1,z1>
}
#local nn=nn+1;
- end
- declare planet1=object{
sphere {0,1}
texture {
pigment
{
// color Blue
White_Marble
turbulence 0
rotate y*90
rotate x*25
}
finish{
ambient 0.05
diffuse 0.5
reflection 0.0
// diffuse 1
// ambient 1.0
// specular 0.2
// reflection 0.5
}
}
no_shadow
}
#declare planet2=object{
sphere {0,1}
texture {
pigment
{
// color Blue
//White_Marble
turbulence 0
rotate y*90
rotate x*25
}
finish{
ambient 0.05
diffuse 0.5
reflection 0.0
// diffuse 1
// ambient 1.0
// specular 0.2
// reflection 0.5
}
}
no_shadow
};
object {
planet1
scale 0.5
translate <4,1,0>
}
object {
planet2
scale 1
translate <-15,1,0>
}
- declare disko=object
{
//torus {0.8, 0.5}
sphere { 0,1 }
no_shadow
/*
sphere {0,1.0}
sphere {0,0.5}
- /
pigment { color rgbf 1 }
hollow
interior
{ media
{
// emission rgb <0.008,0.006,0.004>
// emission rgb <0.007,0.005,0.0035>*0.4
// emission rgb <0.009,0.006,0.004>*0.6
emission rgb <0.01,0.005,0.002>*0.6
// scattering {3, 0.0004 extinction 0.001 }
// scattering {3, 0.0001 extinction 0.001 }
scattering {2, 0.001 extinction 0.001 }
// samples 10,50
// intervals 1
samples 100,500
// samples 30,150
intervals 1
}
}
};
object {
disko
//translate <sax,0,say>
scale <1,0.025,1>
scale 100
rotate x*90
}
light_source {
<0, 0, 0>
//color Gray75 *200
color White*1
fade_distance 60
fade_power 2
looks_like {
sun2
scale 0.75
}
}
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 | 08:25, 8 April 2022 | 3,840 × 2,160 (1.32 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 | 05:15, 8 April 2022 |
Software used |