File:Parameters of f ridged mf 1 1 1 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(3,200 × 2,400 pixels, file size: 2.16 MB, MIME type: image/png)

Captions

Captions

Parameters of f ridged mf

Summary[edit]

Description
English: Parameters of f ridged mf
Date
Source Own work
Author Merikanto

Pov-Ray 3.7 source code

//################ //# //## example parameters of POV-Ray multifractals //# //## 10.11.2023 0000.0000 //# //####

  1. include "colors.inc"
  2. include "functions.inc"
  3. include "rand.inc"
  4. include "strings.inc"


default { finish { ambient 0.000002 diffuse 0.5 } }


camera {

   location <0,0,-25>
   look_at <0,0,0>
   angle 35

}

light_source{ <0,0,-1e9> color rgb 1

}




  1. macro multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator)

function {

f_ridged_mf(x, y, z, H, Lacunarity, Octaves, Offset, Gain, 2)

// f_hetero_mf(x, y, z, H, Lacunarity, Octaves, Offset, Gain, 1) }

  1. end
  1. macro sphere_1(H, Lacunarity, Octaves, Offset, Gain, Generator)

object {

sphere {0,0.75}

texture { pigment {

multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator)

color_map { [0 color rgb <1,0,0>] [1 color rgb <0,0,1>] } } }

normal { multi_fractal_surface(H, Lacunarity, Octaves, Offset, Gain, Generator) bump_size 1}

}

  1. end
  1. declare H=0.1; // tex 0.01 0.1
  2. declare Lacunarity=2; // tex 2,5,10
  3. declare Octaves=6;
  4. declare Generator=1; // 0, 1, 2
  1. declare ostring0=concat("Gen:",str(Generator,1,3));
  2. declare ostring1=concat(" Hei:",str(H,1,3));
  3. declare ostring2=concat(" Lac:",str(Lacunarity,1,2));
  4. declare ostring3=concat(" Oct:",str(Octaves,1,2));
  1. 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*3.5 translate z*-2 }

  1. declare dimux=3;
  2. declare dimuy=3;
  1. declare bx=0;
  2. declare by=0;
  1. declare by=0;
  2. for (NY,-dimuy,dimuy)
  1. declare bx=0;
  1. for (NX,-dimux,dimux)
  1. declare cx=bx/dimux;
  2. declare cy=by/dimuy;
  1. declare dx=cx*1-1;
  2. declare dy=cy*1-1;
  1. declare Offset=dy;
  2. declare Gain=dx;

object { sphere_1(H, Lacunarity, Octaves, Offset, Gain, Generator) translate x*NY*1.5 translate y*NX*1.5 }

  1. declare string1=concat("G:",str(Gain,2,3));
  2. declare string2=concat("O:",str(Offset,2,3));

//#declare string1="-0.0000";

#declare font1 = "cyrvetic.ttf"
 
 text { ttf font1 string1, 1,0 
  scale 0.3
  pigment {color rgb <0,1,0>}
 	translate x*NX*1.5

translate (y*NY*1.5) translate z*-1 }

 text { ttf font1 string2, 1,0 
  scale 0.3
  pigment {color rgb <0,1,0>}
 	translate x*NX*1.5

translate ((y*NY*1.5)-0.3) translate z*-1 }

  1. declare bx=bx+1;
  1. end
  2. declare by=by+1;
  1. end

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:04, 10 November 2023Thumbnail for version as of 09:04, 10 November 20233,200 × 2,400 (2.16 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata