File:Star that have asteroid zone 2.png
Original file (1,600 × 1,200 pixels, file size: 96 KB, MIME type: image/png)
Captions
Summary[edit]
DescriptionStar that have asteroid zone 2.png |
English: Star that have asteroid zone. |
Date | |
Source | Own work |
Author | Merikanto |
This image is made with Povray 3.7
Pov-Ray source code
//
//
// star and asteroid zone
// Povray 3.7 code
//
// 11.7.2023 0000.0001
- include "colors.inc"
- include "functions.inc"
- include "rand.inc"
/*
- include "textures.inc"
- include "glass.inc"
- include "metals.inc"
- include "golds.inc"
- include "stones.inc"
- include "woods.inc"
- include "shapes.inc"
- include "shapes2.inc"
- include "math.inc"
- include "transforms.inc"
- /
- include "stars.inc"
global_settings { assumed_gamma 1.0 }
camera {
location <0,0,120>
// location <0,200,0>
// location <0,100,50>
// location <60,80,120>
//location <15,15,0>
// up x sky z
look_at <0.0, 0.0, 0.0>
angle 40
}
/*
// stars
sphere {
0,1
texture{ Starfield2 scale 0.25
} //
scale 10000
}
*/
- declare sun1= sphere {
<0,0,0>,2
texture {
pigment {
color White
transmit 0
}
finish {ambient 3}
}
}
light_source {
<0, 0, 0>
color Gray75 *50
fade_distance 5
fade_power 2
looks_like {sun1}
}
- 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) - f_noise3d(x * 5, y * 5, z * 5) * 0.5 }
function { f_sphere(x, y, z, 0.5)-fn_Pigm(x/2, y/2, z/2).gray*0.5 }
threshold 0
accuracy 0.005
texture {
pigment {color Gray }
finish{
diffuse 1.0
ambient 0.0
specular 0.0
reflection 0.1
}
}
}
- declare numasteroids=1000;
- declare rmax=20;
- declare rmin=10;
- declare rdelta=rmax-rmin;
- declare rmid=(rmax+rmin)/2;
- declare fiidelta=10;
- local nn=0;
- declare theta=0.0;
- declare fii=0.0;
- while (nn<numasteroids)
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*1543);
#declare seed6=seed(nn*76923439);
#declare seed7=seed(nn*87639);
#declare seed8=seed(nn*76312);
#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/10-rc1/20;
#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.2;
#declare rot1=rand(seed6)*360;
#declare rot2=rand(seed7)*360;
#declare rot3=rand(seed8)*360;
scale skale1
rotate <rot1,rot2, rot3>
translate <x1,y1,z1>
}
#local nn=nn+1;
- end
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 | 07:14, 11 July 2023 | 1,600 × 1,200 (96 KB) | Merikanto (talk | contribs) | Update | |
08:14, 23 March 2022 | 1,600 × 1,200 (71 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 | 07:12, 11 July 2023 |
Software used |