Logo by fractalwizz - 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: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. October 02, 2018, 08:43:11 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!


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: perhaps a formula worth to implement in 3d ?  (Read 737 times)
0 Members and 1 Guest are viewing this topic.
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« on: July 28, 2012, 07:01:53 AM »

a friend of mine asked me if i could visualise a formula for him:

1. start with a complex ( or triplex ) number

2 if Re(z) not in [-1/2, 1/2] add a int number to bring it back in range

3 if |z| < 1, then z =-1/z  and continue with 1. otherwise end

it terminates always


ultrafractal snippet:
Code:
init:
  z = #pixel
loop:
 complex newz=z;
if |newz| <1
   newz=-1/newz
endif
if real(newz)<-0.5  || real(newz)>0.5
  newz =   real(newz)-floor(real(newz))   +imag(newz)
endif
; y achse
if imag(newz)<-0.5  || imag(newz)>0.5
  newz =   real(newz)  +imag(newz)-floor(imag(newz))
endif
  z = newz
bailout:
   z> @bailout

and some images attached, first 2 are with x/y applied ( as in above snippet ) the later 2 are the algorithm applied just to x axis


* finalxy1.jpg (46.34 KB, 1024x762 - viewed 183 times.)

* finalxy2.jpg (43.07 KB, 1024x762 - viewed 205 times.)

* richtigfinal.jpg (80.48 KB, 1024x762 - viewed 179 times.)

* richtigfinal2.jpg (37.46 KB, 1024x762 - viewed 182 times.)
Logged

---

divide and conquer - iterate and rule - chaos is No random!
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: July 28, 2012, 11:24:58 AM »

Discontinue functions are not quite a candy for raytracing, horrible results. undecided
Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Is UF 5 worth 129$ ??? UltraFractal « 1 2 » benoit-1842 20 1768 Last post November 13, 2012, 07:53:51 PM
by David Makin
Anyone ever implement the period 3 check as described by Stephenson? Programming saijanai 6 1029 Last post August 17, 2012, 03:39:24 PM
by Adam Majewski
Some useful formulas to implement on new mdb 3d versions? Mandelbulb 3d « 1 2 » Lalla 15 2021 Last post August 26, 2012, 04:21:18 PM
by Alef
How do I implement supersampling? Programming « 1 2 » Gore Motel 20 4295 Last post May 26, 2014, 03:58:06 AM
by laser blaster
program not worth too Much noise help !! Mandelbulb 3d Frank Krischick 9 402 Last post December 03, 2014, 08:38:28 PM
by Frank Krischick

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