Logo by mauxuam - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 25, 2024, 06:19:16 PM


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
  Print  
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: A possible 3D fractal formula  (Read 5689 times)
0 Members and 1 Guest are viewing this topic.
luc2
Forums Freshman
**
Posts: 12



« on: March 06, 2012, 04:45:41 PM »

Dear all,

Excuse my English, it's not my natural language and I'll try to be as clear as possible.

One 2D fractal formula I used a lot is the quad formula from Stephen Ferguson's Tierazon, 8 years ago I asked for help and had it code for UF, because I used this formula a lot I have a good mental representation of it and I think a 3D version of it could be very interesting. It's possible that someone already tried it and it's not interesting or it's already exist and I did'n recognize it in the list of formulas...

Sadly, even if I used math, fractal, 2D and 3D algorithms a lot in my images, I have a really limited knowledge of maths and coding.

I add the code of this formula in my post and like to have your opinion about a 3D version of this formula;

Quad {
;
; Based on an algorithm for Tierazon formula 90 from Stephen Ferguson,
; via Luc Benard. Very sensitive to changes in bailout value and
; min. distance. For Bailout-Test "|Z - LastZ|", 15 is a good bailout
; value. For Bailout-Test "|Z|", 4 to 6 are good bailout values.
; See blb.txt for comments.
; 18 April 2003
;
init:
  z = @ZInitFunc(#pixel) 
  if @ThisMode == "Mandelbrot"
    c = @CFunc(#pixel)
  else ;Julia
    c = @CFunc(@seed)
  endif

  complex LastZ
  float zr
  float zi
  float dist

loop:
  LastZ = z
 
  z = z*@ZFactor + c
  zr = real(z)
  zi = imag(z)
 
  if zr >= 0
    zr = zr - @Offset
  else
    zr = zr + @Offset
  endif
 
  if zi >= 0
    zi = zi - @Offset
  else
    zi = zi + @Offset
  endif
 
  z = zr + flip(zi)
 
  if @BailTest == "|Z - LastZ|"
    dist = |z - LastZ|
  else ; "|Z|"
    dist = |z|
  endif
 
bailout:
  dist > @DistMin && dist  < @Bailout

default:
  title = "Quad"
  magn = 0.24 
  param ThisMode ;Current Mode
    default = 0
    enum = "Mandelbrot" "Julia"
    visible = False
  endparam
  param NextMode ;Mode to switch to
    default = 1
    enum = "Mandelbrot" "Julia"
    visible = False
  endparam 
  heading
    caption = "M-Set Mode  (F7 to Switch)"
    visible = (@ThisMode == "Mandelbrot")
  endheading
  heading
    caption = "J-Set Mode  (F7 to Switch)"
    visible = (@ThisMode == "Julia")
  endheading 
  complex param seed
    caption = "Julia seed"
    default = (0,0)
    visible = (@ThisMode == "Julia")
  endparam   
  param BailTest
    caption = "Bailout Test"
    enum = "|Z - LastZ|" "|Z|"
    default = 0
  endparam   
  float param Bailout
    caption = "Bailout value"
    default = 15
    min = 0
  endparam
  float param DistMin
    caption = "Minimum Distance"
    default = .001
    min = 0
  endparam
  func ZInitFunc
    caption = "Z Init. Function"
    default = ident()
  endfunc   
  func CFunc
    caption = "C Function"
    default = ident()
  endfunc 
  float param ZFactor
    caption = "Z Factor"
    default = 1
  endparam 
  float param Offset
    caption = "Offset"
    default = 2
  endparam   
 
switch:
  type = "Quad"
  ThisMode = NextMode
  NextMode = ThisMode
  seed = #pixel
  BailTest = BailTest
  Bailout = Bailout
  DistMin = DistMin
  ZInitFunc = ZInitFunc
  CFunc = CFunc
  ZFactor = ZFactor
  Offset = Offset   
} ;END OF "Quad"
 
Logged

Excuse my English, it's not my natural language.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: March 06, 2012, 05:51:33 PM »

At a first glance I see that it is discontinue, this makes it not portable in 3d, you need continue ones
If you can not derive your formula it produces noise
Sorry
Luca
Logged

No sweat, guardian of wisdom!
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #2 on: March 06, 2012, 07:05:27 PM »

I would recomend to code it first in some simpler programm. Say Chaos pro. Then you could represent 3D render. Just use quaternionic numbers an quaternionic parameters instead of complex. There are just two formula writers for M3D (Jesse included), and at first they would be interested in their own projects, and just at he second of those of others (as all would).
« Last Edit: March 06, 2012, 07:21:21 PM by Asdam » Logged

fractal catalisator
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #3 on: March 08, 2012, 11:57:19 AM »

And remember, use continue transforms whenever possible angel


* ttre.GIF (5.25 KB, 470x334 - viewed 1962 times.)
« Last Edit: March 08, 2012, 12:07:45 PM by DarkBeam, Reason: an image to explain (well... haha) » Logged

No sweat, guardian of wisdom!
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #4 on: March 09, 2012, 03:19:49 PM »

I just implemented fracmonk's 2D formulas into UF database (as EM.ufm). It literary took a whole day from the morning, and after I had tested and implemented some of these formulas in Chaos pro database, so knowing how they works.

So I can imagine that in 3D, having restricted conditions and no easy native compiler it would be a ten times more time consuming / hard.

This formula realy don't looks would be usefull in 3D. 3D fractals are insides without 2D outsides;)
« Last Edit: March 09, 2012, 03:31:40 PM by Asdam » Logged

fractal catalisator
luc2
Forums Freshman
**
Posts: 12



« Reply #5 on: March 11, 2012, 06:43:11 AM »

Thank you all for your answers. just an other time where my intuition got wrong :-). From what I understand of your answers, with my limited knowledge of math and coding, the formula will give a cloud of points instead of a solid form, this seem logical, may be the best way to play with this formula in 3D, is to code it in Structure Synth and associate cubes or spheres to the point generate by the equation.
Logged

Excuse my English, it's not my natural language.
Alef
Fractal Supremo
*****
Posts: 1174



WWW
« Reply #6 on: March 14, 2012, 03:45:10 PM »

These shapes looks interesting:
http://en.wikipedia.org/wiki/Hyperbolic_geometry#Visualizing_hyperbolic_geometry

Just that there is no formulas for these coral shapes.

And a very strange stuff:
http://www.math.cornell.edu/~dwh/papers/crochet/crochet.html
Logged

fractal catalisator
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Fractal names and formula sumarization Mandelbrot & Julia Set nmmmnu 7 11586 Last post June 15, 2015, 08:10:09 AM
by nmmmnu
Mandelbulb3D fractal montage of 1st 5 category formula Images Showcase (Rate My Fractal) 1Bryan1 0 2154 Last post October 24, 2015, 11:34:42 AM
by 1Bryan1
fractal formula General Discussion Fhalo 1 2562 Last post April 02, 2016, 02:57:20 AM
by avmorgan
Intersting sit with lot of fractal formula Mandelbulb 3d ericr 0 1213 Last post February 15, 2016, 01:50:30 PM
by ericr
Simplest formula for producing arbitrarily complex fractal? General Discussion « 1 2 » quick yellow whale 29 11429 Last post January 28, 2017, 01:46:57 AM
by quick yellow whale

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.175 seconds with 25 queries. (Pretty URLs adds 0.012s, 2q)