News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 Welcome, Guest. Please login or register. June 25, 2022, 04:29:37 PM 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length

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

Fallen
Previous Image | Next Image
Description: Fragmentarium
Stats:
Total Favorities: 2 View Who Favorited
Filesize: 163.54kB
Height: 725 Width: 1200
Discussion Topic: View Topic
Keywords: fragmentarium
Posted by: Kali December 17, 2011, 04:22:33 AM

Rating: by 8 members.

Image Linking Codes
 BB Code Direct Link Html Link
0 Members and 1 Guest are viewing this picture.

 Comments (8) Pauldelbrot Fractal Senior Posts: 2592 January 02, 2012, 06:25:43 AMI've found some interesting things, but I can't seem to reproduce the geometry in the image above.At the bottom of this comment is my attempt to map the foregoing into M3D's parameters. I left the ABoxModKali Min R parameter at 0.5, since I can't find anything in your code that corresponds to it. The Fold values seem likely to be the X add, Y add, Z add values in ABoxModKali. The trickiest bit is the 29 point something degree rotation about a vector. M3D's rotation modifier is instead a composed rotation about each axis, and appears to do the Z-axis rotation first. So I put four of them on there. One does a negative 40 degree Z-axis rotation followed by a 37 degree Y-axis rotation, which should, by my trigonometric calculations, send (1, 0.85, 1) to (1.65, 0, 0), i.e. the rotation axis you used is sent to the X-axis by this rotation. The next does a 29 degree rotation about the X-axis. The next two undo the Y-axis rotation and the Z-axis rotation, in turn, sending the X-axis back to the line through (1, 0.85, 1). In other words, I've conjugated a rotation about the X-axis with a change of coordinates so that the whole shebang should perform the same rotation about your axis through (1, 0.85, 1).The Julia set I get, however, with the seed set to the "Julia" vector in your parameters, doesn't seem to quite be the same as the one your image is from. It's obviously somewhat related. But not the same.From my examination of what seems to be the loop iteration in what you posted, it doesn't seem to be exactly the same as the ABoxModKali iteration in M3D, even though you said elsewhere that they were the same. In particular, I don't see a ballfold in your code and I doubt thatp.xy = clamp(p.xy, -Fold.xy, Fold.xy) * Fold.xy* 2.0 - p.xy;corresponds tox = X_add - abs(x)y = Y_add - abs(y)z = Z_add - abs(z)particularly as the former doesn't even seem to touch the Z coordinate.Unfortunately, I can't seem to find a way to get (let alone edit) either M3D parameters or M3D formulae in human-readable form. Otherwise I could experiment more. As it stands, short of writing my own raytracer from scratch or getting Fragmentarium to not crash on my machine ...Mandelbulb3Dv17{S.....c....s/...w....2A...kdtfFj7Cf1.9vteeVNrG3EhFxW31I2szv5SSJjs9dzz8d2cPEPjazD................................8lsFz6sVbz1........Y./..................y.2...................../M.1/....6kF/...Q1....E4.....gP3C3F8I8rD/..........m/dkpXm1.BnAnx.....kD12..12kGkW1btLBXzmvJhm2yZuwDu/rRKvqiYz1............u1....y1...sD...../...wXaNadDkPTocuBedxHRjNBs38NOz8vKw/It50pjKOflsBLZUxvBacsqDi2GzyG8qhrYM/rj6KHDPQS7ZxX2FR5yCDYOzkVRa5X2rwpj......Ym..............kD.2....sD..kz0.....................kAnAnAnAnozqAnAr1...sD......JRiD.wpty.EObv1.nRiD.orty.kVbv1.FSiD................................kz.wzzz1UT.s5.o/...k3...EB....92...Q/...EA....6/...EXz...UJl4I..UVLawnHzTX6itzU3l3zHI9j66.1c..zzzz.6UkKZMxkayD8NH/CQa3vz1...........k.8.kXWF1.QvM93P58iz9GMmnWK2zwz0........../6U0.wzzz1................................E.0c..zzzz.................................2U.8.kzzzD................................./6U0.wzzz1...................................UrPi/UVL87.k40VrR4.ILhp.soEZC8c.gtcZ0USLN8RI0kjka9.ZAaVR/7./f8k.UYSu/qR.ULRn/UDv37XZ0UnIvA.ZmLcJa4.qxLR.ETT9G7T.gAoD1UjyRdYP0.cQS7....crI0.zzFoTu2.yzngi84.xzZX.45...5Nu7nLc7bAn.WEps0QiR4.........E....E....E.....I....I....EE0x4SBx4N934Pd/............................k/C.................k0XhEECc2zz.........yD........kz1........wz.........zD.....................................................................................................................2.....3....1....wZIjFLMoJ4.dtqNgJ4.Y/ENdF4.................4MU/06U.........................L0qEH1ld0/o4Hba6du0F.1........................................................................................................................................../....E/...k.....T7pPo34RZ/.JZFbQVB1N......................U/4M..................QkLMmI3Ax.2...............................................................................................................................................................E.....I....A....kLGx4RVFLN03qMf/...........................MU/4............................Q7M1BB2b82EPAROWYe92/A.............................................................................................................................................} Pauldelbrot Fractal Senior Posts: 2592 December 31, 2011, 02:17:53 AMI now have something in the works from close-by parameters ... stay tuned. Pauldelbrot Fractal Senior Posts: 2592 December 30, 2011, 11:04:10 AMThanks. As I suspected, it has a rotation transform added. Scale about what I thought, too. Kali Fractal Supremo Posts: 1138 December 29, 2011, 05:36:04 PMThanks to all for the comments... below is the formula with this params as default:Code:#info Mandelbox Distance Estimator (Rrrola's version).#include "DE-Raytracer.frag"#include "MathUtils.frag"#group RotXYBoxFold/*The distance estimator below was originalled devised by Buddhi.This optimized version was created by Rrrola (Jan Kadlec), http://rrrola.wz.cz/See this thread for more info: http://www.fractalforums.com/3d-fractal-generation/a-mandelbox-distance-estimate-formula/15/*/// Number of fractal iterations.uniform int Iterations;  slider[0,17,300]uniform int ColorIterations;  slider[0,3,300]//uniform float MinRad2;  slider[0,0.25,2.0]// Scale parameter. A perfect Menger is 3.0uniform float Scale;  slider[-2.0,1.3,2.0]//uniform float bailout;  slider[0,2.0,50]uniform vec3 Fold; slider[(-1,-1,-1),(0,0,0),(1,1,1)]uniform vec3 Julia; slider[(-1,-1,-1),(-0.5,-0.5,-0.5),(1,1,1)]vec4 scale = vec4(Scale, Scale, Scale, abs(Scale));// precomputed constantsuniform vec3 RotVector; slider[(0,0,0),(1,1,1),(1,1,1)]// Scale parameter. A perfect Menger is 3.0uniform float RotAngle; slider[0.00,0,180]mat3 rot;//float absScalem1 = abs(Scale - 1.0);//float AbsScaleRaisedTo1mIters = pow(abs(Scale), float(1-Iterations));float expsmoothing = 0;float l = 0;float s=Scale;void init() { rot = rotationMatrix3(normalize(RotVector), RotAngle);}// Compute the distance from `pos` to the Fractalfloat DE(vec3 pos) { vec3 p = pos, p0 = Julia;  // p.w is the distance estimate int i=0; s=Scale; for (i=0; i

Return to Gallery

Powered by SMF Gallery Pro

 Dilber MC Theme by HarzeM
Page created in 0.236 seconds with 40 queries. (Pretty URLs adds 0.005s, 1q)