Title: Domofractal Post by: Alef 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 ;)
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. Folding: Code: //fold 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: Code: x := abs(x + AdditionX ); Code: /// not shure how this works 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| Code: radius := sqrt(x*x+y*y+z*z) ; 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. Code: [END] 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. (http://www.fractalforums.com/index.php?action=dlattach;topic=25795.0;attach=14618;image) (http://www.fractalforums.com/index.php?action=dlattach;topic=25795.0;attach=14620;image) (http://www.fractalforums.com/index.php?action=dlattach;topic=25795.0;attach=14621;image) One of these formulas: http://www.fractalforums.com/mandelbulb-3d/em-formulas-for-mandelbulb3d/ In attachment basic units modified menger. The more beautiful one is snowflake with mirrors. Title: Re: Domofractal Post by: Ubersketch on September 02, 2017, 12:56:10 AM Seems like an interesting formula. Can't wait to try it out and make some buildings. |