Logo by S Nelson - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

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: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. April 20, 2024, 06:46:12 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!



 
  Search  

  Slideshow  
K-ROBOXFallenPlastorm
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.
  Slideshow  

Comments (8) rss
Pauldelbrot
Fractal Senior
******
Posts: 2592



View Profile
January 02, 2012, 06:25:43 AM
I'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 that

p.xy = clamp(p.xy, -Fold.xy, Fold.xy) * Fold.xy* 2.0 - p.xy;

corresponds to

x = 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.BnAn
x.....kD12..12kGkW1btLBXzmvJhm2yZuwDu/rRKvqiYz1............u1....y1...sD...../..
.wXaNadDkPTocuBedxHRjNBs38NOz8vKw/It50pjKOflsBLZUxvBacsqDi2GzyG8qhrYM/rj6KHDPQS7
ZxX2FR5yCDYOzkVRa5X2rwpj......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.gtc
Z0USLN8RI0kjka9.ZAaVR/7./f8k.UYSu/qR.ULRn/UDv37XZ0UnIvA.ZmLcJa4.qxLR.ETT9G7T.gAo
D1UjyRdYP0.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



View Profile
December 31, 2011, 02:17:53 AM
I now have something in the works from close-by parameters ... stay tuned.
Pauldelbrot
Fractal Senior
******
Posts: 2592



View Profile
December 30, 2011, 11:04:10 AM
Thanks. As I suspected, it has a rotation transform added. Scale about what I thought, too.
Kali
Fractal Supremo
*****
Posts: 1138


View Profile
December 29, 2011, 05:36:04 PM
Thanks 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.0
uniform 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 constants

uniform vec3 RotVector; slider[(0,0,0),(1,1,1),(1,1,1)]


// Scale parameter. A perfect Menger is 3.0
uniform 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 Fractal
float DE(vec3 pos) {
vec3 p = pos, p0 = Julia;  // p.w is the distance estimate
int i=0;
s=Scale;
for (i=0; i<Iterations; i++) {
p.xy = clamp(p.xy, -Fold.xy, Fold.xy) * Fold.xy* 2.0 - p.xy;
p=p*Scale+p0;
p*=rot;
l=length(p);
if (i<ColorIterations) orbitTrap = min(orbitTrap, abs(vec4(p.xyz,expsmoothing)));
}
return (l)*pow(abs(Scale), -float(i));
}

#preset Default
FOV = 0.684135
Eye = 4.27175,-1.46828,0.214248
Target = -13.2942,2.76206,-10.546
Up = -0.534436,-0.00990151,0.845151
AntiAlias = 3
AntiAliasBlur = 0.96296
Detail = -1.99269
DetailNormal = -2.42305
FudgeFactor = 0.91589
MaxRaySteps = 100
MaxRayStepsDiv = 8.25
BoundingSphere = 8.0723
Dither = 0.5
AO = 0,0,0,0.81967
Specular = 1.9167
SpecularExp = 16
SpotLight = 1,1,1,0.29348
SpotLightDir = 0.1,0.1
CamLight = 1,1,1,0.3871
Glow = 1,1,1,0
Fog = 0.33558
BaseColor = 1,1,1
OrbitStrength = 0.9703
X = 0.5,0.6,0.6,0.90552
Y = 1,0.6,0,0.65354
Z = 0.8,0.78,1,0.13386
R = 0.4,0.7,1,0.36508
BackgroundColor = 0.368627,0.462745,0.576471
GradientBackground = 0.64285
CycleColors = false
Cycles = 18.1816
Iterations = 19
ColorIterations = 7
Fold = 1,1,0.67832
Julia = -0.01408,0.23944,0.64788
RotVector = 1,0.85,1
RotAngle = 29.1888
Scale = 1.76808
#endpreset
Pauldelbrot
Fractal Senior
******
Posts: 2592



View Profile
December 29, 2011, 02:07:33 PM
What parameters were used for this?
lenord
Fractal Bachius
*
Posts: 611


No Matter where you go there you are


View Profile
December 23, 2011, 07:15:28 PM
Very cool man, I get an Inner Earth feeling from the atmo, excellent work Kali
KRAFTWERK
Global Moderator
Fractal Senior
******
Posts: 1439


Virtual Surreality


View Profile WWW
December 19, 2011, 10:57:03 AM
Lovely atmosphere....  A Beer Cup
Tahyon
Iterator
*
Posts: 168



View Profile WWW
December 17, 2011, 10:47:46 AM
Great looking one !!  A Beer Cup

Return to Gallery

Powered by SMF Gallery Pro

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.232 seconds with 40 queries. (Pretty URLs adds 0.007s, 1q)