Title: Pre-/Post- Transform suggestion Post by: cKleinhuis on February 07, 2011, 02:18:20 PM hello all,
i was thinking about the mandelbulb spherical method, i was on the wood-path of defining an alternative coordinate system with arbitrary axis, but i came down to the point that this would just mean adding/subtracting values to the spherical representation of the point so, i would suggest to - additionally to alternating formulas - a pre- and post- transform would make sense, like the ones in apophysis to achieve my basic goal of an arbitrary coordinate system, this would make a pre-post transform of a simple rotate, e.g. 45 degree around an axis in the one pre-function and a rotation back around -45 in the post transform ... basically this should be stackable :D, but a single pre-post transform would make severe sense in my eyes regards ck O0 :fiery: Title: Re: Pre-/Post- Transform suggestion Post by: DarkBeam on February 07, 2011, 03:19:57 PM Hey! ;D If you need a transform please post it in full formula form.
Example x'=x+y Rotations are tricky to do and long. Pre and post? Try to apply trans before and after. Non iterated transforms may give wrong results... And I don't know how to code a pre or post trans ;D Title: Re: Pre-/Post- Transform suggestion Post by: DarkBeam on February 07, 2011, 08:34:20 PM HOW TO MAKE PRE-TRANSFORM;
Put the transform BEFORE all. numiter = 1 (or more, if you want strong deformation) Then put everything else, with numiter >>1 HOW TO MAKE POST-TRANSFORM; Put the transform AFTER all. numiter = 1 (or more, if you want strong deformation) Then put everything else, with numiter >>1 This works for Menger sponge. Example; Mandelbulb3Dv16{ M.....S....O/...w....2....UCvnpSV3Z1.H.v47KoMM2EZWvmVByPRvHgLDV1qVTgzAULjRcWr5vD ................................EzbIwTjZkz1........Y./..................y.2..... ................/ME//....6k6/...s/....E2.....2MiMOU6F4rD/..........c./...w1....U z.....kD..../..........wz.............................................sD...../.. .w1...sDKdr536GYlx1..........cegX1Y46ndjIecqatcKIuvVTw8B3RBOzMF2eAhWMXqj8vFsZCMK IuHgUyHp8WBOzcneN8HFLXqD......22......................sD..kz0................... .............................UJRR4.uppN.sNLb/UkRR4.arpN.cULb/U9SR4.............. ...........................U..6.P....M4...EB....W....61....F....8/...I1....UJl12 ...U.iVFwxDE./ozPM2Tzz7lz16.mc..zXCc.El18XGQeGyDjvIRhrVAkz1............28.kFrA0. FWb96aAIVzvh1se7Umvxz0........../6U0.wzzz1................................E.0c.. zzzz.................................2U.8.kzzzD................................. /6U0.wzzz1...................................2CcN/UvNP6.eeWCNq0.yRii.EJJUk1f..XR S1.mx3CcN/UvNP6.QsLsUa3.ibhV..bTV1OK.sSq40.ly3CcN/UvNP6.MwLsUa3.ibhV.kqTV1OK.sSq 40.kz3CcN/UvNP6...EsUa3.eeWCNq0.IJ36wk8.wyLsUa3................................. E....6....E.....I.........kLdtaRXZ5Pdt4NmZqMVl4...........................U/4M.. ..........UaNaNaNaNmz.........yD................................................ ................................................................................ .....................g1....3....5....oINiRKNmZYFH/EG4B3......................... .....MU/4....................U.E........kz1........wz.........yD................ ................................................................................ ................................} Mandelbulb3Dv16{ M.....S....O/...w....2....UCvnpSV3Z1.H.v47KoMM2EZWvmVByPRvHgLDV1qVTgzAULjRcWr5vD ................................EzbIwTjZkz1........Y./..................y.2..... ................/ME//....6E2/...e0....E2.....2MiMOU6F4rD/..........c./...w1....U z.UaNadD..../..........wz.............................................sD...../.. .w1...sDKdr536GYlx1..........cegX1Y46ndjIecqatcKIuvVTw8B3RBOzMF2eAhWMXqj8vFsZCMK IuHgUyHp8WBOzcneN8HFLXqD......oG......................sD..kz0................... .............................UJRR4.uppN.sNLb/UkRR4.arpN.cULb/U9SR4.............. ...........................U..6.P....M4...EB....W....61....F....8/...I1....UJl12 ...U.iVFwxDE./ozPM2Tzz7lz16.mc..zXCc.El18XGQeGyDjvIRhrVAkz1............28.kFrA0. FWb96aAIVzvh1se7Umvxz0........../6U0.wzzz1................................E.0c.. zzzz.................................2U.8.kzzzD................................. /6U0.wzzz1...................................2CcN/UvNP6.eeWCNq0.yRii.EJJUk1f..XR S1.mx3CcN/UvNP6.QsLsUa3.ibhV..bTV1OK.sSq40.ly3CcN/UvNP6.MwLsUa3.ibhV.kqTV1OK.sSq 40.kz3CcN/UvNP6...EsUa3.eeWCNq0.IJ36wk8.wyLsUa3................................. E....6....U/....I....M....kLbtKMmlqA2/.NmZqMVl4..............................M.. ..........kSIsuFVf5wzcNaNaNaNavDOaNaNaNatyXaNaNaNaNiz........U.E..........2..... ................................................................................ .....................g1....3....5....oINiRKNmZYFH/EG4B3......................... .....MU/4....................U.E........kz1........wz.........yD................ ................................................................................ ................................} :dink: Menger sponge gnarled? I am crazy :D Title: Re: Pre-/Post- Transform suggestion Post by: cKleinhuis on February 07, 2011, 09:35:48 PM hi there, thanxs for trying, but i think this should be implemented as a general feature for an iteration step, so that an iteration step looks like: 1. Optional Pre Transform ( any formula you like, but smaller ones like add/mul are fine ) 2. THE Actual Formula to Iterate 3. Optional Post Transform ( same as pre transform ) the whole steps 1..3 make up ONE iteration step regards ck |