Logo by mrob - Contribute your own Logo!


it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
Welcome, Guest. Please login or register. May 22, 2022, 09:30:57 AM

Login with username, password and session length

The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Pages: [1]   Go Down
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Domofractal  (Read 1815 times)
0 Members and 1 Guest are viewing this topic.
Fractal Supremo
Posts: 1174

« on: June 27, 2017, 01:29:30 PM »

Hadn't introduced some of formulas to public. Consider this being like both wikipedia article and forum post wink

After an artistic suggestion I tried to make house generating hybrid. Few folds, _Amazingbox with no spherefold and menger sponge and unit vector addition took house like shapes but not quite so.
The greatest problem were that all of the houses are made of rectangles but menger sponge and folds generates squares.

Without any knowledge KIFS or how menger sponge works I just took MengerSmt.m3f code by Luca Gen and modified until it generated rectangle based shapes.

x := x + abs(x- FoldX) - abs(x+ FoldX) ;
y := y + abs(y- FoldY) - abs(y+ FoldY) ;
z := z + abs(z- FoldZ) - abs(z+ FoldZ) ;

x := x + abs(x- FoldX) - abs(x+ FoldX) ;
y := y + abs(y- FoldY) - abs(y+ FoldY) ;
z := z + abs(z- Foldz) - abs(z+ Foldz) ;

Seperate values for x,y,z axis allows both to strech and multiply in needed direction. Menger Cube is single storey and each fold adds 2 storeys. Not shure where I got this fold, but this is one operation faster than usual boxfold.

STart of Menger sponge by Knighty:
x := abs(x + AdditionX );
y := abs(y + AdditionY );
z := abs(z + AdditionZ );
The fractal don't have mandelbrot/julia sets and the mandelbrot set of menger sponge probably isn't meaningfull. But here is julia variable (0,0,0). It moves houses around and can stick pairs of two together.

/// not shure how this works
//  modified Menger code taken from Luca GN formula MengerSmt
  scale1 := scale -1;
  scale2 := scale1/scale;

t:= 0.5*(t-abs(t + DomoXY) );
x:=x-t ;
y:= y+t ;

t:= 0.5*(t-abs(t + DomoXZ));
z:= z+t;

t:= 0.5*(t-abs(t +DomoYZ));
z:= z+t;

z := z - vMengerZ*scale2;
z := - abs(z);
z := z + vMengerZ*scale2;

  x := scale *x-vMengerX*scale1;
  y := scale *y-vMengerY*scale1;
  z := scale *z;
I just put the Domo variable in right place and it streched central hole into the rectangle. Moreso it was quite a lucky find as it works like an additional mirror. What is good if you use Mutagen and your intention is technological.

Maybe this is like MandeleX or MandalaY linear pull? I hadn't looked closely on that formula.

Unit vector substraction. Unit Vector = x,y,z / |x,y,z|
radius := sqrt(x*x+y*y+z*z) ;

x:= x - Thickness * x/radius ;
y:= y - Thickness * y/radius ;
z:= z - Thickness * z/radius ;

This transformation works like adding air in the balloon. Unlike sacleing larger values alsou rounds and kind of bloats the fractal according to it's shape, and negatives does the opposite.

Formula version 1.1
House creator based on folds and Menger Cube
(Luca GN formula MengerSmt code).

* * *
By Edgar Malinovsky

All together looks like houses. This have very chaotic behaviour. Folds influence Menger, hence if FoldZ=1 Menger 1,1,-1 will generate tower made of snowflakes. Then adding FoldY=0.2 turns outline of loose snowflakes into solid cubes and generates something like house with balconies.
This is not so good when you want to generate the house you want. Hence Mutagen is recomended.

One of these formulas:

In attachment basic units modified menger. The more beautiful one is snowflake with mirrors.

* Domo_menger.jpg (47.13 KB, 430x340 - viewed 601 times.)

* Domo_ornate.jpg (28.54 KB, 360x360 - viewed 595 times.)

fractal catalisator
Forums Newbie
Posts: 1

« Reply #1 on: September 02, 2017, 12:56:10 AM »

Seems like an interesting formula. Can't wait to try it out and make some buildings.
Pages: [1]   Go Down
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.103 seconds with 24 queries. (Pretty URLs adds 0.006s, 2q)