Logo by Cyclops - 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 19, 2024, 11:33:45 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 ... 4 5 [6] 7 8 ... 10   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: compiling Kalles Fraktaler with mingw  (Read 53681 times)
Description: success report
0 Members and 3 Guests are viewing this topic.
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #75 on: August 21, 2017, 12:50:16 PM »

Oh sad  No time to look into it today, sorry..
Logged
Kalles Fraktaler
Fractal Senior
******
Posts: 1458



kallesfraktaler
WWW
« Reply #76 on: August 22, 2017, 09:04:09 AM »

Oh sad  No time to look into it today, sorry..
No problem, no hurry.

When you have time to look at this again, may I ask you for a small change?
In the file fraktal_sft.cpp can you replace the two occurencies of
Code:
iter=sqrt(iter)
with
Code:
iter=log(iter+1)
This is for the distance estimation coloring method, and makes the contributions from different layers (close passages of minibrots) be almost linear.

* bs-de-log.kfr (0.47 KB - downloaded 187 times.)
Logged

Want to create DEEP Mandelbrot fractals 100 times faster than the commercial programs, for FREE? One hour or one minute? Three months or one day? Try Kalles Fraktaler http://www.chillheimer.de/kallesfraktaler
http://www.facebook.com/kallesfraktaler
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #77 on: August 23, 2017, 12:06:06 AM »

No problem, no hurry.

I think I fixed it, was the exact same issue as the diffabs() preprocessing, but with the abs() function - a single character fix  embarrass

Quote
When you have time to look at this again, may I ask you for a small change?
In the file fraktal_sft.cpp can you replace the two occurencies of
Code:
iter=sqrt(iter)
with
Code:
iter=log(iter+1)
This is for the distance estimation coloring method, and makes the contributions from different layers (close passages of minibrots) be almost linear.

I found two occurences taking into account whitespace differences, but I only changed the second one (colouring method 6/7 or so), leaving the first as-is (colouring method 1).  I hope this is what you intended?  Otherwise I can change the first one too.  The colouring code one of the parts of the code I haven't looked at in much detail so far.

New build 20170822 at https://mathr.co.uk/kf/kf.html upgrading is recommended as versions 20170703​ through 20170820​ have broken formula implementations, and earlier versions are less optimized (especially for quadratic Mandelbrot).

Ideas for future development include:
* extending the formula preprocessor to reference calculations, potentially allowing lower-level GMP functions to be used in the inner loops so temporary variables aren't reallocated and freed every single iteration.  this should provide a healthy speedup to every formula
* fixing the OpenCL stuff so that it actually works
* adding Pauldelbrot's multiwave colouring algorithm (will need a lot of GUI work I suspect, something I don't find fun, as well as delving into the .kfr (de)serialisation code that I haven't touched so far)
Logged
Kalles Fraktaler
Fractal Senior
******
Posts: 1458



kallesfraktaler
WWW
« Reply #78 on: August 23, 2017, 11:18:07 AM »

Excellent, it works now! smiley
Logged

Want to create DEEP Mandelbrot fractals 100 times faster than the commercial programs, for FREE? One hour or one minute? Three months or one day? Try Kalles Fraktaler http://www.chillheimer.de/kallesfraktaler
http://www.facebook.com/kallesfraktaler
Kalles Fraktaler
Fractal Senior
******
Posts: 1458



kallesfraktaler
WWW
« Reply #79 on: August 24, 2017, 09:50:53 AM »

Hi Claude

I am very impressed that KF is now able to find a minibrot at around <-2,0i> on arbitrary depths - the previous versions would either crash or give some unreasonable result!

However here is another thing to look at whenever you have time.
The Newton Raphson function fail in the center of this view.
It works on my old version (and takes minutes while your version would take seconds... wink )

* no newton.kfr (9.69 KB - downloaded 79 times.)
Logged

Want to create DEEP Mandelbrot fractals 100 times faster than the commercial programs, for FREE? One hour or one minute? Three months or one day? Try Kalles Fraktaler http://www.chillheimer.de/kallesfraktaler
http://www.facebook.com/kallesfraktaler
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #80 on: August 24, 2017, 03:58:30 PM »

Worse, loading that "no newton.kfr" gives me a blank turquoise image sad
Zooming from it in either direction gives something more sensible.

Newton-Raphson zooming at that location in KF seems to give a bad period of 499 when it should be 18166 (checked with my standalone m-box-period code).  Don't know why yet...
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #81 on: September 13, 2017, 06:47:49 AM »

New build! 20170913 at the usual https://mathr.co.uk/kf/kf.html Not many changes, just documentation updates, limit number of approximation terms to 60 at most, and the color method 7 = distance (logarithm) detailed below:

In the file fraktal_sft.cpp can you replace the two occurencies of
Code:
iter=sqrt(iter)
with
Code:
iter=log(iter+1)
This is for the distance estimation coloring method, and makes the contributions from different layers (close passages of minibrots) be almost linear.

I reverted this change.  Instead I added a new colouring method ID 7 with this logarithmic scaling.  This is to preserve compatibility with square root scaling expected by earlier parameter files.

Kalles, you'll need to update the movie makers to match the implementation of the latest version (I consider the behaviour of the 20170822 build to be buggy in this respect).
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #82 on: September 19, 2017, 09:44:53 PM »

New build at the usual place, version number 2.12.1 since Karl confirmed he won't be making new versions of his own.  Main features are PDF manual and both 32bit and 64bit builds (all in one zip with the source too).  Bugfixes to Examine Zoom Sequence and Distance colouring backward compatibility.
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #83 on: September 20, 2017, 01:08:21 PM »

new version 2.12.2 at the usual place, lots of new features, please test to check I didn't break any of the more unusual formulas in the process of massaging formula XML so the preprocessor could work its magic.  Changes:

- PNG image saving support using libpng and zlib;
- JPEG default quality to 100 (was 99);
- colouring uses floating point internally to reduce quantisation steps;
- dithering at end of colouring to improve perceptual quality;
- formula.cpp included in source zip so GHC is not needed unless changing formula code;
- optimized diffabs() code: one test Burning Ship location is 7.5% faster;
- preprocessor optimizes reference calculations by floating temporary variable (re)allocations out of the inner loops: one test Burning Ship location is 30% faster;
Logged
gerrit
Forums Freshman
**
Posts: 17


« Reply #84 on: September 20, 2017, 07:25:05 PM »

Thanks so much for doing this!

Could perhaps the need to oversample (typically factor 6-8 I find) to get the DE to look good be mitigated by using a higher order finite difference approximation for the derivatives?

Looking at the code it seems you use a first order FD.
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #85 on: September 20, 2017, 08:45:14 PM »

I don't think it would help.  The places where the DE colouring looks bad are close to the boundary, which is a discontinuity/singularity in the derivative.  But if you provide some example code or formulas I can try it out soon and report back.
Logged
gerrit
Forums Freshman
**
Posts: 17


« Reply #86 on: September 20, 2017, 09:54:39 PM »

I don't think it would help.  The places where the DE colouring looks bad are close to the boundary, which is a discontinuity/singularity in the derivative.  But if you provide some example code or formulas I can try it out soon and report back.
Probably the first thing to try is the central difference, which is second order. See e.g. https://en.wikipedia.org/wiki/Finite_difference.

Logged
gerrit
Forums Freshman
**
Posts: 17


« Reply #87 on: September 21, 2017, 02:39:11 AM »

Here's a quick hack in MATLAB trying central difference and 1st order method.
Plot is $1/sqrt{||grad(map)||^2+1}$.
Central difference seems a bit better.


* res1.jpg (144.59 KB, 687x826 - viewed 123 times.)
Logged
gerrit
Forums Freshman
**
Posts: 17


« Reply #88 on: September 21, 2017, 05:31:10 AM »

Interestingly going to a 4th order stencil for the gradient does not improve further.


* res2.jpg (113.03 KB, 512x988 - viewed 132 times.)
Logged
gerrit
Forums Freshman
**
Posts: 17


« Reply #89 on: September 21, 2017, 11:31:31 PM »

One more result: using the average of normal and diagonal central differences does improve a bit over just central. See example.
So the squared length of the gradient of map m at point x,y is taken to be the mean:
||g||^2 = (g_x^2+g_y^2 + g_1^2 + g_2^2)/2
with
g_x = (m(x+1,y)-m(x-1,y))/2
g_y = (m(x,y+1)-m(x,y-1))/2
g_1 = (m(x+1,y+1)-m(x-1,y-1))/(2sqrt{2})
g_2 = (m(x+1,y-1)-m(x-1,y+1))/(2sqrt{2})

Logged
Pages: 1 ... 4 5 [6] 7 8 ... 10   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Kalles Fraktaler 2 Kalles Fraktaler « 1 2 ... 29 30 » Kalles Fraktaler 438 129800 Last post July 31, 2014, 12:29:56 AM
by cKleinhuis
Kalles Fraktaler 2.5.7 Kalles Fraktaler « 1 2 » Kalles Fraktaler 20 22830 Last post October 25, 2017, 07:26:34 PM
by Mrz00m
Kalles Fraktaler 2.7 Kalles Fraktaler « 1 2 3 » Kalles Fraktaler 35 32993 Last post October 13, 2014, 04:45:04 PM
by youhn
compiling Kalles Fraktaler 2.7.3 on Linux with mingw Kalles Fraktaler « 1 2 » claude 24 14729 Last post December 31, 2014, 12:42:33 PM
by Kalles Fraktaler
compiling Kalles Fraktaler with GCC Kalles Fraktaler 3dickulus 0 5391 Last post January 03, 2015, 09:13:24 PM
by 3dickulus

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.201 seconds with 26 queries. (Pretty URLs adds 0.013s, 2q)