Newton Fractal but different

  • 15 Replies
  • 630 Views

0 Members and 1 Guest are viewing this topic.

Offline chrizbee

  • *
  • Fractal Freshman
  • *
  • Posts: 6
« on: July 10, 2019, 04:48:58 PM »
Hey there!

As I've seen some great software out there rendering newton fractals, I've still been missing the ability to drag and drop roots with my mouse.
So I've decided to write my own :)

https://github.com/chrizbee/NewtonFractal

There is more information in the README, but here are some pictures:



There is a compiled and dynamically linked version for Windows ready to download.
Linux and Mac users have to git clone, qmake, make.

I hope you enjoy playing with this little program as much as I do!
chrizbee

Linkback: https://fractalforums.org/downloads/10/newton-fractal-but-different/2925/

Offline claude

  • *
  • 3f
  • ******
  • Posts: 1255
    • mathr.co.uk
« Reply #1 on: July 10, 2019, 05:39:31 PM »
here's mine, https://code.mathr.co.uk/fractaloids/blob_plain/3401e9ceabbf076f8301d4c7e71187f52ae36bfb:/webgl/index.html not quite the same, but works in a web browser using OpenGL


Offline superheal

  • *
  • Fractal Phenom
  • ****
  • Posts: 44
« Reply #3 on: July 11, 2019, 02:04:16 PM »
Hello,

very nice software!

Quote
inline void func(complex z, complex &f, complex &df, const QVector<Root> &roots)
{
   // Calculate f and derivative with given roots
   quint8 rootCount = roots.length();
   if (rootCount < 2) return;

   // TODO: algorithm documentation
   complex r = (z - roots[0].value());
   complex l = (z - roots[1].value());
   for (quint8 i = 1; i < rootCount - 1; ++i) {
      l = (z - roots[i + 1].value()) * (l + r);
      r *= (z - roots.value());
   }
   df = l + r;
   f = r * (z - roots[rootCount - 1].value());
}

Do you have an extension for a second derivative?

Offline superheal

  • *
  • Fractal Phenom
  • ****
  • Posts: 44
« Reply #4 on: July 12, 2019, 09:05:55 AM »
If you want to experiment with more types, have a look at this (https://en.wikibooks.org/wiki/Fractals/fractalzoomer)
I have compiled a list with some methods. Some of them will require a second derivative.
You can also add continuous iteration count as an option.

Offline gerson

  • *
  • Fractal Furball
  • ***
  • Posts: 225
« Reply #5 on: July 12, 2019, 06:03:04 PM »
liked it too.
Suggestions: save/load parameter and render to disk (to save big images)

Offline chrizbee

  • *
  • Fractal Freshman
  • *
  • Posts: 6
« Reply #6 on: July 22, 2019, 01:06:51 PM »
@superheal
I did not implement that (yet). I am planning to do some more terms of Schroeder's method:


@gerson
You actually can save parameters / current settings. And it is possible to export rendered fractals, too!
Just press F1 to open settings.

Offline blob

  • *
  • Fractal Fanatic
  • ***
  • Posts: 22
« Reply #7 on: July 22, 2019, 02:41:05 PM »
Hello, looking good, any chance for a Win32 build?

Offline chrizbee

  • *
  • Fractal Freshman
  • *
  • Posts: 6
« Reply #8 on: July 22, 2019, 10:46:26 PM »
Hello, looking good, any chance for a Win32 build?
Will do when I've time. If you have Qt installed you can actually build it yourself.

Offline chrizbee

  • *
  • Fractal Freshman
  • *
  • Posts: 6
« Reply #9 on: July 26, 2019, 09:01:43 AM »
Hello, looking good, any chance for a Win32 build?

I did. See https://github.com/chrizbee/NewtonFractal/releases.
You can also render on your gpu now. Have fun!

Offline blob

  • *
  • Fractal Fanatic
  • ***
  • Posts: 22
« Reply #10 on: July 26, 2019, 01:56:26 PM »
Thanks.  :thumbs:

Offline gerson

  • *
  • Fractal Furball
  • ***
  • Posts: 225
« Reply #11 on: July 27, 2019, 12:05:18 AM »
Thanks for new release.

Offline superheal

  • *
  • Fractal Phenom
  • ****
  • Posts: 44
« Reply #12 on: July 29, 2019, 01:13:51 PM »
I tried the new build, and switching between cpu and gpu I get a different image (colorwise). The palette appears offseted compared to the original.

Offline chrizbee

  • *
  • Fractal Freshman
  • *
  • Posts: 6
« Reply #13 on: August 14, 2019, 06:35:05 PM »
I tried the new build, and switching between cpu and gpu I get a different image (colorwise). The palette appears offseted compared to the original.

Yup, I tried to port QColor::darker() from Qt to GLSL but there seems to be a slight offset when trying to get brighter colors.
But as there is not much of a difference I ignored it currently :D

Just post a screenshot here if you see a huge difference.

Offline gerson

  • *
  • Fractal Furball
  • ***
  • Posts: 225
« Reply #14 on: August 29, 2019, 05:12:36 PM »
@chrizbee About render to disk option is because at now it saves only screen size images. If I would save an image at 2000x2000 for example it dont save or do?
Other suggestion is to use right mouse button to on/off fix the F3 value and all orbit (F2), so it could be saved on image. That means, when right clic is pushed F3 position is fixed and to let it run again push right clic again. See image attatched. Maybe when this is "on" a footnote could be saved on image with some F1 information too.
« Last Edit: August 29, 2019, 05:28:51 PM by gerson »


xx
Newton-Raphson Fractal attempt in Xaos

Started by Know That Fractal! on Fractal Image Gallery

0 Replies
215 Views
Last post December 22, 2017, 01:40:55 AM
by Know That Fractal!
xx
Newton (gannjondal)

Started by Sabine62 on Fractal Image Gallery

0 Replies
119 Views
Last post August 15, 2018, 04:28:09 PM
by Sabine62
xx
Newton's Garden

Started by gannjondal on Fractal Image Gallery

4 Replies
373 Views
Last post April 17, 2018, 11:22:45 PM
by spain2points
clip
Revisiting the 3D Newton

Started by gannjondal on Fractal Mathematics And New Theories

26 Replies
2128 Views
Last post October 01, 2018, 10:24:43 PM
by FractalDave
clip
Mandelbrot/Newton - Has it already been done?

Started by mrrudewords on Share a fractal

2 Replies
377 Views
Last post February 09, 2019, 09:35:17 PM
by mrrudewords