Logo by KRAFTWERK - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 24, 2024, 08:43:11 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: More handsome reciprocal formula  (Read 3449 times)
0 Members and 1 Guest are viewing this topic.
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« on: February 12, 2011, 10:06:06 PM »

Following a suggestion from DarkBeam i modified the reciprocal formula a bit to limit artifacts.

The results are changing with bigger limits, but are still unique enough to use it instead.

Here is a pic with limiter = 0.6, took only about 3 minutes with stepwidth limiter of 1:
(reciprocalX2 + sierpinski)




* _reciprocalX2.zip (0.4 KB - downloaded 256 times.)
Logged
0Encrypted0
Fractal Fertilizer
*****
Posts: 384



WWW
« Reply #1 on: February 12, 2011, 11:04:51 PM »

Would a reciprocalY or reciprocalZ be possible?
If so, would they be useful?
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #2 on: February 12, 2011, 11:31:35 PM »

If Jesse don't write reciprocal y z i'll do by myself. It is a menace :lol:
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #3 on: February 12, 2011, 11:38:25 PM »

Only if you write a reciprocal R too, just my menace  wink
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #4 on: February 13, 2011, 11:10:17 AM »

Only if you write a reciprocal R too, just my menace  wink

Sphereinv is a reciprocal r. cheesy Already done dancing banana
Logged

No sweat, guardian of wisdom!
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #5 on: February 13, 2011, 11:41:34 AM »

From sphereinv description;
x', y', z' => Translate + scaling (by radius) of x, y, z with given params.
Then, defined Rho = (x'*x'+y'*y'+z'*z'), <- = R
x'' = x'/Rho
y'' = y'/Rho
z'' = z'/Rho

 wink
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #6 on: February 13, 2011, 01:19:03 PM »

uhm, youre absolutely right... dividing by the sqr.

But a little tip should be ok, because dividing is much slower than multiplication:
compute the reciprocal of Rho and multiplicate 3 times, fld1, fdivrp to do the reciprocal value.
Just in case you had not done so, i didnt looked at the source.

Keep up your good work!  smiley
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #7 on: February 13, 2011, 01:35:31 PM »

uhm, youre absolutely right... dividing by the sqr.

But a little tip should be ok, because dividing is much slower than multiplication:
compute the reciprocal of Rho and multiplicate 3 times, fld1, fdivrp to do the reciprocal value.
Just in case you had not done so, i didnt looked at the source.

Keep up your good work!  smiley

But in the end you have to divide in every case huh? ... Where is the optimization?

Another question

You divide by y+epsilon. But I meant;
compare y by epsilon
if y<epsilon, cutoff.
wink
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #8 on: February 13, 2011, 09:35:26 PM »

But in the end you have to divide in every case huh? ... Where is the optimization?

Instead of:
x'' = x'/Rho
y'' = y'/Rho
z'' = z'/Rho

You do:
Rho = 1 / Rho    //or include it in the step before
x'' = x'*Rho
y'' = y'*Rho
z'' = z'*Rho

So you have only 1 division instead of 3.

Quote
Another question

You divide by y+epsilon. But I meant;
compare y by epsilon
if y<epsilon, cutoff.
wink

I know, that is a bit different version.
Did not tried your version, dunno what might be better.  Just do it like you want and we have more options.  smiley


Forgot:
in my formula there is a little bug, if you use negative limiter values:  i used 'or' for the sign function and not 'xor', but that affects not very much.
And it makes no difference on positive values, so it is not urgent to change it.  Just if you want to copy it...
« Last Edit: February 13, 2011, 09:38:33 PM by Jesse » Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #9 on: February 13, 2011, 11:04:11 PM »

I need your help for  coding my first formula ... A 4d extension of Barnsley but too bad don't work. smiley tomorrow I will send
Logged

No sweat, guardian of wisdom!
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #10 on: February 14, 2011, 06:26:10 PM »

Would a reciprocalY or reciprocalZ be possible?
If so, would they be useful?

Here they are, gives new nice possibilities in combination with the sierpinski for example!


* _reciprocalXYZ2.zip (1.16 KB - downloaded 147 times.)
Logged
bib
Global Moderator
Fractal Senior
******
Posts: 2070


At the borders...


100008697663777 @bib993
WWW
« Reply #11 on: February 14, 2011, 06:59:04 PM »

Would a reciprocalY or reciprocalZ be possible?
If so, would they be useful?

Here they are, gives new nice possibilities in combination with the sierpinski for example!



The limiter instantly gives me animation ideas smiley Thanks Jesse!
« Last Edit: February 14, 2011, 07:16:02 PM by bib » Logged

Between order and disorder reigns a delicious moment. (Paul Valéry)
Madman
Fractal Molossus
**
Posts: 678



« Reply #12 on: February 14, 2011, 07:33:06 PM »

Ohw yeah very nice! The possibilities got infiniter once again  wink
Logged

All I want is a warm bed, a kind word and unlimited power (Ashleigh Brilliant)
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Where does THE formula come from ? Mandelbrot & Julia Set bib 5 5296 Last post January 26, 2009, 07:12:10 PM
by cKleinhuis
Formula? Theory « 1 2 » lkmitch 20 9879 Last post March 23, 2010, 06:01:56 AM
by jehovajah
Reciprocal structure Mandelbulb3D Gallery bib 0 1391 Last post February 23, 2012, 09:40:05 PM
by bib
A new Reciprocal set that doesn't disturb DE beta testing DarkBeam 4 13613 Last post June 18, 2012, 03:50:52 PM
by DarkBeam
reciprocal x3b, y3b, z3b Mandelbulb 3d DarkBeam 0 1763 Last post November 28, 2012, 07:08:36 PM
by DarkBeam

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