Title: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 23, 2013, 11:56:31 AM Hi
I recall hearing that someone had worked out the file format for Fractal eXtreme colour palettes and had converted a few FractInt palettes into FX. Is this something that could be released as a tool for others to use? I've got some palettes in FractInt which I would like to use in FX, but I started to convert one and it just seemed to be a right pain in the neck, and I thought that there must be a better way. I've also created some palettes in FX which would be nice to have in FractInt, so would it be possible to go the other way also? Many thanks, Simon Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: panzerboy on May 24, 2013, 12:38:15 AM I think that's probably my text-to-pallette (& vice versa) utilities.
http://www.mediafire.com/download/b8oi6686ec0e0xo/fxutils.zip These are simple command line c programs. I've now uploaded the source, the details on the Fractal Extreme palette file are in the xfpal.h file. http://www.mediafire.com/download/wqshdpxb5v4cz62/FXutilsSource.zip Typing in the commands, pxpalload and fxpallist gives a terse help. Code: C:\Users\panzerboy\Documents\Fractal eXtreme>fxpalload Code: C:\Users\panzerboy\Documents\Fractal eXtreme>fxpallist f24awygcbmrkof4.fxp | more Looking at the fractint maps from the link at the bottom of this page http://www.fracton.org/links.html It appears that FractInt has 256 palette entries and FractalExtreme has 228. So you'd need to do some clever averaging of values to cut them down to 228. Another .map file I looked at had only two entries. In the case of just two entries you need only specify the colour indexes used. So yellow_green.map Fractaint palette consists of only the following text. Code: 255 255 0 Could be converted to a Fractal Extreme palette using this text file Code: Red Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 24, 2013, 03:28:53 PM Will have a play with the tool. Thanks for sharing it.
Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 25, 2013, 12:15:54 PM Well, I had a small play with the tools, but all I got was a mess when loading into FX. Wonder if I was doing something wrong. No error messages were given when I ran the tools.
Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: panzerboy on May 25, 2013, 01:21:23 PM Care to share the text file you tried to create a FX palette with?
The fxpalload util is pretty dumb, from memory theres nothing to stop you from specifiying colour indexes out of order. It should require the colour indexes in red, green, blue and optionally red stripe, blue stripe and green strips order. Probably lets through a partial definition ie Red, Green but no blue indexes. Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 25, 2013, 04:32:07 PM Attached I have included one of my palette files, with the associated txt file as created by the fxpallist utility...
Palette file simon014.map: Code: 0 0 0 text file created: Code: Red Definitely something not right with those values being created. Not sure what's up with it. Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 26, 2013, 12:18:09 AM Is it me or are the values and indexes being displayed just ASCII values of characters in the map file?
Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: simon.snake on May 26, 2013, 12:29:28 AM I think I understand what's going on now.
I thought I could simply feed in one of the fractint palette files directly to the command line tool and produce an intermediary text file, then feed that into the second tool to get a fractal extreme fxp file, but I can now see that the tools will only work directly on fractal extreme files (writing one from a provided text file, or reading one and producing the text file). I need to write another tool to produce the same format text file out of a fractInt map file first, before reading it into your utility. Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: panzerboy on May 26, 2013, 03:31:34 AM Oh Man am I having trouble trying to reply.
My third attempt now, Chrome won't restart so I'm using IE. I've created a spreadsheet that will convert the 256 colour indexes of FractInt to the 228 of Fractal Extreme. I can't attach the spreadsheet here, that seems to be the start of my problems. So I've put the spreadsheet on a zip on mediafire. http://www.mediafire.com/download/86rrj0qro82c1ex/FI2FXpalconv.zip Trying to Post that came up with a double post message or something and after that Chrome wouldn't work. Chrome has been occasionally obstreperous, often when I'm rendering a video (like now) so can't reboot. The zip contains a simon014.fxp converted from your supplied text. I attached (hopefully) a jpg of what it looks like converted. When you use fxpalload it always enables the striped mode so you need to turn that off when you load the palette in Fractal Extreme. (Kind of obvious). The process is to load the FI2FXpalconv spreadsheet. Now drag the .map file to be converted onto the spreadsheet. A text conversion wizard should show. You need to do a fixed width conversion. The columns may need adjusting in the preview spreadsheet at the bottom of the wizard. Just drag the column indicators. After you've clicked ok you should have a new spreadsheet with just the RGB values in column A B and C. There may be comments in column E or below the 256th row. So you need to shift-select from Col/Row a1 to col/row c256, copy and paste into colrow a2 of the FI2FXpalconv spreadsheet. Magically in column Y from row 2 is all the text need to to be copy-pasted into a text file for fxpalload to create the fractal extreme pallette. Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: panzerboy on May 26, 2013, 04:00:51 AM By the way, the native format of the spreadsheet is Libre Office, so it sould load just fine into Open Office.
I've saved .xls and .xml versions too, but not garuntees they will work in Excel as I don't have Excel. Libre Office is a free download, Its not as fast as Excel, but it does the simple things I need just fine. Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: Dinkydau on August 15, 2015, 04:50:35 AM I think that's probably my text-to-pallette (& vice versa) utilities. That's very useful, thanks.http://www.mediafire.com/download/b8oi6686ec0e0xo/fxutils.zip Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: Adam Majewski on August 15, 2015, 10:54:59 AM What is the licence of your program ?
Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: panzerboy on August 15, 2015, 07:23:32 PM I had to check the code, I haven't even put a copyright comment line.
fxpalload.exe and fxpallist.exe are rough as guts command line utilities that work just good enough that I wasn't bothered to create proper Windows programs. The source code is downloadable here http://www.mediafire.com/download/wqshdpxb5v4cz62/FXutilsSource.zip (http://www.mediafire.com/download/wqshdpxb5v4cz62/FXutilsSource.zip) By all means use the code in your own apps, just don't sue me for copyright infringement on anything you create from my crufty code. :siren: Title: Re: Converting between FractInt and Fractal eXtreme palettes Post by: Adam Majewski on August 16, 2015, 10:05:53 AM I had to check the code, I haven't even put a copyright comment line. fxpalload.exe and fxpallist.exe are rough as guts command line utilities that work just good enough that I wasn't bothered to create proper Windows programs. The source code is downloadable here http://www.mediafire.com/download/wqshdpxb5v4cz62/FXutilsSource.zip (http://www.mediafire.com/download/wqshdpxb5v4cz62/FXutilsSource.zip) By all means use the code in your own apps, just don't sue me for copyright infringement on anything you create from my crufty code. :siren: OK. Thx I was thinking about adding it to : https://en.wikibooks.org/wiki/Fractals especially : https://en.wikibooks.org/wiki/Color_Theory/Color_gradient You are welcome to edit this book/ ( If you will login that you will be seen as the author) Adam |