File:F ridged mf sample params 2 1 1 1.png
Original file (6,400 × 4,800 pixels, file size: 24.58 MB, MIME type: image/png)
Captions
Summary
[edit]DescriptionF ridged mf sample params 2 1 1 1.png |
English: POV-Ray f_ridged_mf() sample parameters |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.7 source code
//################
//#
//## example parameters of POV-Ray multifractals
//#
//## 10.11.2023 0000.0001
//#
//####
- include "colors.inc"
- include "functions.inc"
- include "rand.inc"
- include "strings.inc"
default { finish { ambient 0.000002 diffuse 0.5 } }
sky_sphere{
pigment {
granite scale 10000
//color rgb <0.7,0.7,1>
color_map {
[0 color rgb 1]
[0 color rgb <0.5,0.5,1>]
}
}
}
camera {
location <0,00,-30>
look_at <0,0,0>
angle 35
}
light_source{
<0,1/2,-1>*1e9
color rgb 1
}
- macro multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator)
function {
f_ridged_mf(x, y, z, H, Lacunarity, Octaves, Offset, Gain, Generator)
// f_hetero_mf(x, y, z, H, Lacunarity, Octaves, Offset, Gain, Generator)
}
- end
- macro ridge_surface(Lambda, Octaves, Omega, Offset, Ridge, Generator)
function {
f_ridge(x, y, z, Lambda, Octaves, Omega, Offset, Ridge, Generator)
}
- end
- macro sphere_1(H, Lacunarity, Octaves, Offset, Gain, Generator)
object {
sphere {0,1.0}
texture { pigment {
multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator)
/*
color_map {
[0 color rgb <1,1,1>]
[1 color rgb <1,1,1>]
}
*/
color_map {
[0 color rgb <0.1,0.1,1>]
[1 color rgb <1,0.1,0.1>]
}
}
}
normal { multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator) bump_size 0.25}
}
- end
- macro sphere_2(Lambda, Octaves, Omega, Offset, Ridge, Generator)
object {
sphere {0,0.75}
texture { pigment {
ridge_surface(Lambda, Octaves, Omega, Offset, Ridge, Generator)
color_map {
[0 color rgb <0,0,0>]
[1 color rgb <1,1,1>]
}
}
}
ridge_surface(Lambda, Octaves, Omega, Offset, Ridge, Generator)
}
- end
- declare H=0.01; // tex 0.01 0.1
- declare Lacunarity=5; // tex 2,5,10
- declare Octaves=6;
- declare Generator=2; // 0, 1, 2
- declare ostring0=concat("Gen:",str(Generator,1,3));
- declare ostring1=concat(" Hei:",str(H,1,3));
- declare ostring2=concat(" Lac:",str(Lacunarity,1,2));
- declare ostring3=concat(" Oct:",str(Octaves,1,2));
//#declare ostring4=concat(" f_hetero_mf(...) ",ostring0, ostring1,ostring2,ostring3);
- declare ostring4=concat(" f_ridged_mf(...) ",ostring0, ostring1,ostring2,ostring3);
#declare font0 = "cyrvetic.ttf";
text { ttf font0 ostring4, 1,0
scale 0.45
pigment {color rgb <1,1,0>}
translate x*-6.0
translate y*2.5
translate z*-2
}
- declare dimux=3;
- declare dimuy=3;
- declare bx=-1; // ofs
- declare by=0.0; // gain
- declare ex=-0.7; // ofs
- declare ey=1.0; // gain
- declare numx=dimux*2+1;
- declare numy=dimuy*2+1;
- declare dex=(ex-bx)/numx;
- declare dey=(ey-by)/numy;
- declare BETWX=2;
- declare BETWY=2;
- declare cy=0;
- for (NY,-dimuy,dimuy)
- declare cx=0;
- for (NX,-dimux,dimux)
- declare lokx=bx+dex*cx;
- declare loky=by+dey*cy;
- declare Offset=lokx;
- declare Gain=loky;
- declare dispx=x*NX*BETWX;
- declare dispy=y*NY*BETWY;
object {
sphere_1(H, Lacunarity, Octaves, Offset, Gain, Generator)
translate x*dispx
translate y*dispy
}
- declare string1=concat("G:",str(Gain,2,3));
- declare string2=concat("O:",str(Offset,2,3));
#declare font1 = "cyrvetic.ttf"
text { ttf font1 string1, 1,0
scale 0.3
pigment {color rgb <0,1,0>}
translate x*dispx
translate (y*dispy)
translate z*-1
}
text { ttf font1 string2, 1,0
scale 0.3
pigment {color rgb <0,1,0>}
translate x*dispx
translate y*dispy-0.3
translate z*-1
}
- declare cx=cx+1;
- end
- declare cy=cy+1;
- end
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 | 11:36, 10 November 2023 | 6,400 × 4,800 (24.58 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 | 11:32, 10 November 2023 |
Software used |