(Question) Kalles Fraktaler tiled rendering

  • 5 Replies
  • 369 Views

0 Members and 1 Guest are viewing this topic.

Offline Chronicler1701

  • *
  • Fractal Freshman
  • *
  • Posts: 7
« on: September 02, 2018, 12:26:07 PM »
I've seen some of Claude's test renders with the tiling program included.  The newer ones look indistinguishable from single images.  I'm running an old laptop, so tiled rendering is something I've been trying to do for some time, but instructions on the tiled rendering program are hard to come by.  Could someone help me out?

Linkback: https://fractalforums.org/kalles-fraktaler/15/kalles-fraktaler-tiled-rendering/1803/

Offline claude

  • *
  • 3f
  • ******
  • Posts: 1378
    • mathr.co.uk
« Reply #1 on: September 04, 2018, 12:55:09 AM »
Load kf.  Set everything up how you would like, but with the image size a constant integer factor smaller than your desired final target size.  Save the settings (.kfs) and location (.kfr), and remember your factor.

Then in CMD (or PowerShell? don't use Windows myself... maybe you can drag and drop files to enter the paths, or use tab completion?) run this (replace with my.kfX with your files and 4 by your factor).
Code: [Select]
C:\path\to\kf-tile.exe C:\path\to\my.kfs C:\path\to\my.kfr 4
If all goes well it will write out 4x4=16 (or NxN for your factor) kfs/kfr file pairs into the current working directory, so change that first ( in Bash is 'cd', not sure in CMD) - which you can then render to kfb/tif/png/jpg with kf.exe batch mode: "C:\path\to\kf.exe --help" for details, you might be able to write a batch (.BAT) script for CMD to automate this part, I use Bash on Linux which is the same basic idea..

After you have rendered the tile images, you need to assemble them into the final large image.

If kf-tile.exe told you it was using "stratified" rendering, you need to use the Octave script "kf-stratify.m" (Octave is a Free equivalent to of Matlab) to post-process PNG images (or TIFF or JPEG if you edit the script).  I don't know how to install Octave on Windows, on Linux it's in most distribution repositories.  Stratified rendering is better because you don't get seams between tiles (each tile is the whole image offset by a subpixel amount), but not applicable to all colouring methods (eg numerical DE, slopes, ...).  Note: most builds of Octave have an issue of 32bit array size, which means you can only have a 666megapixel image even with tiled rendering.

Otherwise the tiles are regular tiles, so you can use imagemagick or GIMP or photoshop or whatever to stitch them together.  I don't remember the exact imagemagick command, but it's a one-liner with 'montage' (iirc?).

Two final things, the tile kfr/kfs generator doesn't support all kfr yet - in particular skew is not supported.  Maybe I'll work on this soon, as the new auto-skew feature is pretty nice, and implementing that helped me understand a bit better how KF skew works internally.  Also on my TODO list is merging (stratified or adjacent) tiled KFB files into a larger KFB, but applying colours to this in KF would be limited to 666megapixels due to 32bit size limitations too.  It might be possible to write a standalone colouring app for KFB + KFP -> PNG that isn't limited in this way.  PNG has huge limits on pixel dimensions, 31bit each of width and height, and I think the chunked IDATs mean it's not limited in file size either.  TIFF goes to 4GB files max, BMP I think is 2GB, not sure about JPEG (but JPEG colour space conversion causes quality loss).

Offline Chronicler1701

  • *
  • Fractal Freshman
  • *
  • Posts: 7
« Reply #2 on: September 06, 2018, 02:11:52 PM »
Okay, thank you very much.  However, I just installed Octave today, and I've tried everything I can think of, but I can't get the stratify script to work right.  It keeps throwing a syntax error.

Offline claude

  • *
  • 3f
  • ******
  • Posts: 1378
    • mathr.co.uk
« Reply #3 on: September 06, 2018, 03:38:27 PM »
without the error message text, your guess is as good as mine...

Offline Chronicler1701

  • *
  • Fractal Freshman
  • *
  • Posts: 7
« Reply #4 on: September 06, 2018, 07:11:34 PM »
Okay, here's the last thing I tried, but they all give the same error.
I've only really tried the GUI, rather than the terminal.
In the Octave window, after loading the image package and setting the directory to the proper folder, I entered
Code: [Select]
>> kf-stratify ([C-00.png,C-01.png;C-10.png,C-11.png],b.png)And on the next line, it gives
Code: [Select]
parse error:Then,
Code: [Select]
syntax errorAnd finally, it throws the same thing I put in, but with an extra arrow:
Code: [Select]
>>> kf-stratify ([C-00.png,C-01.png;C-10.png,C-11.png],b.png)I'm with you.  If it gave a little more info, it'd be a lot easier to figure out the problem.   :))
Of course, my inexperience with Octave probably doesn't help...  :embarrass:

Offline gerrit

  • *
  • 3f
  • ******
  • Posts: 1986
« Reply #5 on: September 06, 2018, 07:43:16 PM »
It would probably easier to understand if kf-stratify.m was implemented as a function with named inputs, rather than a script.
Then it would also work in MATLAB as you can't pass arguments to a script there without doing exotic things.


xx
"Time Span"

Started by cricke49 on Fractal Image Gallery

0 Replies
444 Views
Last post August 02, 2018, 07:05:21 AM
by cricke49
xx
Kalles Fraktaler 2 + GMP

Started by claude on Kalles Fraktaler

232 Replies
10466 Views
Last post September 12, 2019, 10:27:53 PM
by claude
xx
Kalles Fraktaler 2.14

Started by claude on Kalles Fraktaler

137 Replies
5811 Views
Last post March 05, 2020, 03:36:14 PM
by RedshiftRider
xx
Kalles Fraktaler 2.13

Started by claude on Kalles Fraktaler

90 Replies
4322 Views
Last post March 20, 2019, 05:32:26 AM
by claude
xx
Another version of Kalles Fraktaler?

Started by greentexas on Kalles Fraktaler

9 Replies
1006 Views
Last post September 22, 2017, 02:59:16 PM
by greentexas