Logo by Sockratease - 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. March 19, 2024, 05:26:24 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: Ultra Fractal Coloring Converter  (Read 1545 times)
0 Members and 1 Guest are viewing this topic.
fractalwizz
Conqueror
*******
Posts: 129



WWW
« on: October 21, 2008, 03:19:28 AM »

cp_19407 {
complex dz;
parameter double power;

   void init(void)
   {
      dz=0;
   }
   void loop(void)
   {
      dz= power*z*(power-.9)*dz+(power^z);
   }
   void final(void)
   {
   index=abs(z/dz)^(1/exp(power)) * log(numiter);
   }
   void description(void)
   {
      this.title = "DE Variation - use with Cuberoot coloring at 200";
      this.helpfile = "dmj-pubdmj-pub-uf-dem.htm";
      
      power.caption = "Exponent";
      power.default =  1.93;
      power.hint = "You can adjust this to your needs, but 1.93 gives you the best results.";
   }
}
Could someone convert this coloring from ChaosPro into something that Ultra Fractal can use?

Very much appreciated.
« Last Edit: October 21, 2008, 04:27:29 AM by fractalwizz, Reason: New Formula » Logged

David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #1 on: October 21, 2008, 01:21:33 PM »

Hi, This is it I think:

FractalWhizz1 {
init:
  complex dz = (0,0)
  int i = 0 ; Note you may need i = 1 instead of i = 0
loop:
  dz = @power*#z*(@power-0.9)*dz+(@power^#z)
  i = i + 1
final:
   #index = real(abs(#z/dz)^(1/exp(@power)) * log(i)) ; maybe you want "cabs" instead of "real" ?
default:
  title = "For FractalWhizz";
  float param power
    caption = "Exponent"
    default = 1.93
    hint = "You can adjust this to your needs, but 1.93 gives you \
            the best results.";
  endparam
}

Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #2 on: October 21, 2008, 01:50:31 PM »

Hi,

Just wondering if you made a typo in your version - should:

"z*(@power-0.9)"

be

"z^(@power-0.9)"
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: October 21, 2008, 06:20:05 PM »

ok, here we go, as ultrafractal 5 object:

Code:
class ForFractalWhizz(common.ulb:GradientColoring) {
;
; Convertet from ChaosPro For FractalWhizz by c.kleinhuis
;
public:
  func Init(complex pz, complex ppixel)
   dz = (0,0)
   i = 0 ; Note you may need i = 1 instead of i = 0
  endfunc

  func Iterate(complex pz)
    dz = @power*pz*(@power-0.9)*dz+(@power^dz)
  i = i + 1
  endfunc

  float func ResultIndex(complex pz)
   return real(abs(pz/dz)^(1/exp(@power)) * log(i)) ; maybe you want "cabs" instead of "real" ?

  endfunc

private:
  complex dz
  int i

default:
  title = "For Fractalwhizz"
  param power
    caption = "Exponent"
    default = 1.93
    hint = "You can adjust this to your needs, but 1.93 gives you the best results."
  endparam
}

Logged

---

divide and conquer - iterate and rule - chaos is No random!
fractalwizz
Conqueror
*******
Posts: 129



WWW
« Reply #4 on: October 21, 2008, 06:22:28 PM »

Hi.
"z*(@power-0.9)"

be

"z^(@power-0.9)"
That isn't a typo. In ChaosPro, it takes an image at e+13, 14 second longer with z^(@power-0.9) than with z*(@power-0.9).
Both generate the same result but * instead of ^ is more efficient.

Also, thanks for the conversion.
I will post back if it doesn't work.
Logged

fractalwizz
Conqueror
*******
Posts: 129



WWW
« Reply #5 on: October 21, 2008, 06:23:32 PM »

Reply for Trifox.
How would you put what you gave me into Ultra Fractal to make it work?
Logged

cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #6 on: October 21, 2008, 06:37:52 PM »

well, uf works with formula files, the best thing would be to create a file in the following path:

C:\Documents and Settings \[]yourusername]\Own Files\Ultra Fractal 5\Formulas\Public
named FractalWhizz.ulb - this would then be a ultrafractal library file
then copy the above formula into the file, be sure, that it is in the right folder, in german it is:
C:\Dokumente und Einstellungen\hugo2\Eigene Dateien\Ultra Fractal 5\Formulas\Public

you should be aware of where application data is stored on your computer...

so, after that open uf5 with the default fractal, then choose as coloring algorithm: "Generic Coloring Gradient " and after that, you have below a knob for choosing a different generic formula for coloring, then you browse to /public/Fractalwhizz and there you shoudl find a coloring method named: "ForFractalWhizz"

i did it the same way cheesy

if you need help finding the public formula folder on your harddisk you can try to search for "common.ulb" on your computer
Logged

---

divide and conquer - iterate and rule - chaos is No random!
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #7 on: October 21, 2008, 07:47:08 PM »

Hi.
"z*(@power-0.9)"

be

"z^(@power-0.9)"
That isn't a typo. In ChaosPro, it takes an image at e+13, 14 second longer with z^(@power-0.9) than with z*(@power-0.9).
Both generate the same result but * instead of ^ is more efficient.

Also, thanks for the conversion.
I will post back if it doesn't work.

Actually they may generate a similar result when "power" is close to 1.9 since then (power-0.9) is about 1 but change the power value and the results will vary considerably depending whether you use "^" or "*" smiley
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
fractalwizz
Conqueror
*******
Posts: 129



WWW
« Reply #8 on: October 22, 2008, 02:57:29 AM »

I got it to work. Many Thanks. In case you were wondering, this is a variation of the Distance Estimator Coloring algorithm.
 wink
« Last Edit: October 22, 2008, 03:05:06 AM by fractalwizz, Reason: correction » Logged

David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #9 on: October 22, 2008, 03:41:00 PM »

I got it to work. Many Thanks. In case you were wondering, this is a variation of the Distance Estimator Coloring algorithm.
 wink


I figured it was smiley
That's why I suggested the possible typo - for distance estimation to work properly for z^p+c with powers other than 2 it really does have to be "^" not "*".
What I would do is have a conditional calculation based on the power value and omit the (p-0.9) - originally (p-1) - part altogether depending on the value of p.
Note that if you use "if @p==value....else.....endif" then there's no overhead at runtime because UF pre-compiles out conditionals that depend on values known at compile time e.g. parameter values.
« Last Edit: October 22, 2008, 03:47:54 PM by David Makin » Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
OS X converter for MDB sequential renders to movie format Help & Support DavidMac 7 536 Last post April 28, 2012, 01:43:44 PM
by DavidMac
Kaliset 3D fractal used as coloring & texture for DE systems 3D Fractal Generation « 1 2 » Kali 17 9482 Last post September 14, 2015, 03:57:37 PM
by Crist-JRoger
Gamma Ray Converter Images Showcase (Rate My Fractal) JoeFRAQ 0 766 Last post January 03, 2014, 04:27:36 PM
by JoeFRAQ
WAV -> MIDI converter? Fractal Music audiofractalman 11 4793 Last post December 10, 2015, 12:51:16 AM
by audiofractalman
Chaotic Converter Mandelbulber Gallery mclarekin 0 512 Last post August 10, 2015, 02:19:54 AM
by mclarekin

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.165 seconds with 24 queries. (Pretty URLs adds 0.007s, 2q)