File:Barred spiral galaxy 2 r 1.png
Original file (1,600 × 1,200 pixels, file size: 943 KB, MIME type: image/png)
Captions
Summary
[edit]DescriptionBarred spiral galaxy 2 r 1.png |
English: Barred spiral galaxy with POV-Ray textures |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.7 source code
//////////////////////////////////
//
// barred spiral galaxy
// POV-Ray source code
// 3.7.2023 v 0000.0000
//
/////////////////////////////////
- include "functions.inc"
camera {
location <0,0,-10>
look_at 0
angle 35
}
- declare logspiral00= function {((log(5*sqrt((x*x+y*y)/16))+atan2(x,y)/(pi) ) *2) }
- declare sinlogspiral1=function {min ( max (((( sin ( (5*log(sqrt( (x*x+y*y)*2 ))*pi*2)+0.5*((atan2(x,y)/(1))/(pi/8)) *pi/2 ) ) +1)/2),0) ,1)}
#declare powhole1=function { pow( max(min(f_sphere(x*3,y*3,(0),1),1),0) ,6)}
#declare normal1=function {exp (-0.5*pow(((( sqrt(x*x+y*y) ))/0.75),2))}
- declare bar1= function {
// normal1(x*2,y*2,z*2)
// (max( min(1-f_sphere(x,y,z,1),0),1))
max(min( (1-sqrt(x*x+y*y)),1),0) *f_wrinkles(x*10,y*30,z*10)
}
- declare galaxyfunk0= function {
sinlogspiral1(x,y,z) *powhole1(x,y,z)*normal1(x,y,z)
}
- declare galaxyfunk1= function {
galaxyfunk0(x,y,z)+bar1(x*1.8,y*4,z)
}
- declare galaxybase1= function {
// sinlogspiral1(x,y,z) *powhole1(x,y,z)*normal1(x,y,z)+bar1(x*1.8,y*4,z)
// galaxyfunk1(x,y,z)
//f_granite(galaxyfunk0(x,y,z)*3,f_wrinkles(x*100,y*100,z*100),f_wrinkles(x,y,z))
//* galaxyfunk0(x,y,z)
//*f_ripples(x*1,y*1,z*1)
// galaxyfunk0(x,y,z)*pow(f_agate(x,y,z),2) *f_granite(x,y,z) *f_wrinkles(x*10,y*10,z*10) *f_wrinkles(x*30,y*30,z*30) *f_wrinkles(x*100,y*100,z*100)
galaxyfunk0(x,y,z)*pow(f_granite(x,y,z),5) *0.5
+f_granite(galaxyfunk0(x,y,z),0,0)*0.05 *galaxyfunk0(x,y,z)*0.7
- f_wrinkles(x*100,y*100,z*100)
- f_wrinkles(x*300,y*300,z*300)
- f_wrinkles(x*1000,y*1000,z*1000)
- f_wrinkles(x*3000,y*3000,z*3000)
+pow(f_granite(x*2,y*2,z*2),3)*galaxyfunk0(x,y,z)
//+bar1((x+y)*3,y*2.1,z)*0.5 + bar1((x+y)*3,y*2.1,z)* f_granite(x*100,y*100,z*100) * f_granite(x*10,y*10,z*10) *0.1
+galaxyfunk0(x,y,z)
- f_wrinkles(x*100,y*100,z*100)
- f_wrinkles(x*300,y*300,z*300)
- f_wrinkles(x*1000,y*1000,z*1000)
- f_wrinkles(x*3000,y*3000,z*3000)*0.75
+normal1(x/2,y/2,z/2)*0.17
+normal1(x*2,y*2,z*2)*0.3
+normal1(x,y,z)*f_ripples(x*6,y*6,z*6)*0.05
//+galaxyfunk0(-y,-x,z)
}
#declare galaxybase2= function {
// sinlogspiral1(x,y,z) *powhole1(x,y,z)*normal1(x,y,z)+bar1(x*1.8,y*4,z)
// galaxyfunk1(x,y,z)
//f_granite(galaxyfunk0(x,y,z)*3,f_wrinkles(x*100,y*100,z*100),f_wrinkles(x,y,z))
//* galaxyfunk0(x,y,z)
//*f_ripples(x*1,y*1,z*1)
// galaxyfunk0(x,y,z)*pow(f_agate(x,y,z),2) *f_granite(x,y,z) *f_wrinkles(x*10,y*10,z*10) *f_wrinkles(x*30,y*30,z*30) *f_wrinkles(x*100,y*100,z*100)
galaxyfunk0(x,y,z)*pow(f_granite(x,y,z),5) *0.5
+f_granite(galaxyfunk0(x,y,z),0,0)*0.05 *galaxyfunk0(x,y,z)*0.7
//+pow(f_agate(x*1,y*1,z*1),0.5)*galaxyfunk0(x,y,z)
//+bar1(x*4,y*2,z)* f_granite(x*100,y*100,z*100)
*0.1
//+galaxyfunk0(-y,-x,z)
}
- declare galaxypig1=pigment {
function {
galaxybase1(x,y,z)
}
poly_wave 0.9
color_map {
//[-1 color rgb <0,0,1>]
[0 color rgbt <0,0,0,1>]
[1 color rgbt <1,1,3,0>]
// [2 color rgb <1,0,0>]
}
}
- declare galaxypig2=pigment {
function {
galaxybase1(x,y,z)
}
poly_wave 0.9
color_map {
//[-1 color rgb <0,0,1>]
[0 color rgbt <0,0,0,0>]
[1 color rgbt <0,0,1,0>]
// [2 color rgb <1,0,0>]
}
}
- declare galaxypig3=pigment {
function {
galaxybase2(x,y,z)
}
poly_wave 1
color_map {
//[-1 color rgb <0,0,1>]
[0 color rgbt <1,1,1,1>]
[0.8 color rgbt <10,1/2,1/2,0>]
[1 color rgbt <1,1,1,0>]
// [2 color rgb <1,0,0>]
}
}
- declare galaxypig4=pigment {
function {
galaxybase1(x,y,z)
}
poly_wave 1
color_map {
//[-1 color rgb <0,0,1>]
[0 color rgbt <1,1,1,1>]
[0.8 color rgbt <10,1/2,1/2,0>]
[1 color rgbt <1,1,1,0>*10]
// [2 color rgb <1,0,0>]
}
}
- declare barpig1=pigment {
function {
bar1((x+y)*4,y*1.8,z)*0.3 + bar1((x+y)*4,y*1.8,z*1)* f_granite(x*100,y*100,z*100) * f_granite(x*10,y*10,z*10)* f_granite(x*3,y*3,z*3) *0.5
*normal1(x*3,y*3,z*3)
}
// poly_wave 0.9
turbulence 0.0
color_map {
[0 color rgbt <0,0,0,1>]
[1 color rgbt <3,2,0,0>*10]
}
}
- declare galaxytex1=texture {
pigment {galaxypig1}
finish {ambient 2 reflection 0 diffuse 0 specular 0 phong 0}
}
- declare galaxytex2=texture {
pigment {galaxypig2}
finish {ambient 2 reflection 0 diffuse 0 specular 0 phong 0}
}
- declare galaxytex3=texture {
pigment {galaxypig3}
finish {ambient 2 reflection 0 diffuse 0 specular 0 phong 0}
}
- declare galaxytex4=texture {
pigment {galaxypig4}
finish {ambient 2 reflection 0 diffuse 0 specular 0 phong 0}
}
- declare bartex1=texture {
pigment {barpig1 scale 1}
finish {ambient 2 reflection 0 diffuse 0 specular 0 phong 0}
}
- declare galaxy1= object {
plane {z,0}
texture {galaxytex1 }
texture {galaxytex1 rotate z*45 }
texture {galaxytex1 scale 1/2 rotate z*45 }
texture {bartex1 scale y/2 scale x/2 rotate x*(60+90)}
texture {galaxytex3 scale 1 }
// texture {galaxytex4 }
}
object {galaxy1
rotate <20,30,40>
rotate z*45
}
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:05, 3 July 2023 | 1,600 × 1,200 (943 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 | 08:00, 3 July 2023 |
Software used |