### New XaoS Version

• 23 Replies
• 683 Views

0 Members and 1 Guest are viewing this topic.

• 3f
• Posts: 1713

#### Re: New XaoS Version

« Reply #15 on: January 10, 2020, 01:47:30 AM »
Suggestions:
- Change Control s to "save as" option that saves the parameter and the image at the same time with the same name. The name could be Xaos-date-time. Fractal Zoomer, Infinity Fractal and other programs already are using it. Example: InfinityFractal-20191208-175109-MandelbrotNewtonHines.

if using png image format you can embed the parameters in the "frAc" chunk,
for an example of loading and saving this chunk have a look at Fragmentarium sources
in particular MainWindow.cpp

 function use dropEvent when png file is dropped on the FragM window it loads and applies the parms from the png chunk savePreview writes to the chunk named "frAg" loadParameters accepts parameter file or png file with "frAg" chunk saveImage writes to "frAg" chunk for png or to the "Comment" tag in jpg files (full sized images)

note: the chunk in png files can be named anything (4 letters, 3rd letter as cap tells png loaders this is not part on the image but ok to exist)
the parms are written to the comment text in jpg files by Qt when setting image->setText("frAg", parms go here ) < edit2

edit: I haven't used Xaos in a very long time but it was one of the first fractal programs I played with, outside of my own ccode. Nice to see it's still developing
« Last Edit: January 10, 2020, 04:42:21 AM by 3DickUlus »

#### jblang

• Fractal Friend
• Posts: 14

#### Re: New XaoS Version

« Reply #16 on: January 10, 2020, 03:26:09 AM »
Thanks for the suggestions. I will see what I can do but not sure how many of them I can do before 4.0 finally comes out.  I have created issue for them on Github so I don't forget about them: https://github.com/xaos-project/XaoS/issues.

I did have the idea of saving the location data in the png in the back of my mind already but I haven't gotten around to it yet.

There already is a random palette shortcut. It's just "p" (no ctrl or shift).

You actually can already use the render animation to render single images of any size from an xpf file via the GUI. I know it's not exactly what you asked for because it is only one at a time. I will consider that for a future improvement. And for now I will rename the menu command from "Render animation" to "Render" so people don't think it's just for animation.  Future enhancements for the rendering function are definitely on my to do list.

#### jblang

• Fractal Friend
• Posts: 14

#### Re: New XaoS Version

« Reply #17 on: January 10, 2020, 04:32:38 AM »

#### gerson

• Fractal Fluff
• Posts: 363

#### Re: New XaoS Version

« Reply #18 on: January 10, 2020, 02:55:16 PM »
If you implement batch render, remember to put a "pause" option. So one can pause and continue rendering later.
Good idea to put into png, but I prefer to save in parameter file too because sometimes I forgot that the image has the parameter inside and save it as jpg to do it smaller and if I don't remain the png I lost the parameter. I prefer when save image (could be png with parameter inside) and parameter file at the same time with the same name.

#### gerson

• Fractal Fluff
• Posts: 363

#### Re: New XaoS Version

« Reply #19 on: January 10, 2020, 06:57:53 PM »
Tried to increase the size of an image using render command in prompt but it crash.
I think is because the user formula was not saved into parameter file. Would be very important to save the user formula into de parameter because if the formula is altered into program it loads wrong images from parameters.

#### jblang

• Fractal Friend
• Posts: 14

#### Re: New XaoS Version

« Reply #20 on: January 11, 2020, 05:26:32 AM »
Yes, I have had several people ask for the ability to resume a render. For animations, it is not simple and will take some thought and careful coding in order to make it work.

I believe I have fixed the problem where rendering user formulas crashes XaoS and where the formula is not saved in the xpf. I have tested it myself and been able to save user formulas and use them to render png files.  When multithreading is enabled, I am aware of an issue where the progress is not reported and the UI appears unresponsive, but the rendering still works correctly and the UI becomes responsive again after the render is finished.

I also committed a fix tonight to allow user formulas to work without crashing when multithreading is enabled.  The fix is to have one formula parser for each thread so that they do not conflict with each other when running simultaneously.  With modern CPU architectures this was a very important feature and helps a lot when user formulas are already slower than natively implemented formulas.  I have noticed considerably better zooming performance by enabling multithreading on my computer, and it is over 7 years old (Core i7-4770k).  I have been using 8 threads on my 4 core CPU because it has hyperthreading which presents each physical CPU as two logical CPUs and uses the additional threads to fill the pipeline stalls caused by branch mispredictions.

To enable threading currently you must run XaoS from the command line with -threads n.  I plan to add a dialog box to the Calculations menu to allow a user to set the number of threads. Using the current threading architecture, it is not possible to change the number of threads without restarting.  This will require saving the setting after the user enters it and prompting them to restart XaoS for the setting to take effect. Currently the only way is by loading the setting before the threading library is initialized.  In the future, hopefully I can make this configurable without restarting.

Now that I have fixed the threading issues with user formulas, my next priority is to fix the constant crashes when bad formulas are entered.  The parser needs to be made more robust so it rejects bad input instead of trying to make sense of it.

I hope to do another prerelease within a few weeks that includes these features.
« Last Edit: January 11, 2020, 05:39:33 AM by jblang »

#### dying_cat

• Fractal Friend
• Posts: 11

#### Re: New XaoS Version

« Reply #21 on: January 14, 2020, 08:39:11 AM »
When I tried to replay the tutorial in the menu,all the texts became 'No catalog file loaded'.When I use the program to replay the tutorials of older versions,this problem still exists.However,the texts in the animation files recorded by myself still appear normally.There's no doubt that it's a serious problem.
By the way,my computer is running Windows 7.
« Last Edit: January 14, 2020, 01:55:10 PM by dying_cat »

#### jblang

• Fractal Friend
• Posts: 14

#### Re: New XaoS Version

« Reply #22 on: January 15, 2020, 09:57:59 PM »
dying_cat, what language are you using?  Is this 4.0pre2 or 4.0pre3?  In the directory where XaoS is installed, the xaos.exe file should be in the bin directory, and one level up should be a catalogs directory containing all the translations for the tutorials. The files must remain in this directory structure. If you have moved them, that could explain why you are not able to load the catalogs.

#### jblang

• Fractal Friend
• Posts: 14

#### Re: New XaoS Version

« Reply #23 on: January 16, 2020, 04:15:15 AM »
I figured out what is going on with the "No catalog loaded" message and it should be fixed in the next version.  Currently XaoS tries to load a catalog named xx.cat where xx is the two-letter ISO code for the language that the user has enabled on their desktop.  If the user was using a language that XaoS has not been translated to, it was not able to load the catalog and then showed this message. I have fixed it so it will default to English if no catalog is found for the current language.

I am curious what language you speak, and if you would be interested in translating XaoS to it?  If you are, I will tell you how.

### Similar Topics

###### Tutorial French New Version Mandelbulber GPU version 2.14

Started by meletou on Mandelbulb Maniacs

3 Replies
362 Views
June 27, 2020, 02:42:29 AM
by 1Maniac
###### XaoS Buffalo formula

Started by Homer Skies on Share a fractal

1 Replies
341 Views
December 23, 2018, 03:54:52 AM
by gerson
###### Celtic Mandelbrot Attempt In Xaos

Started by Know That Fractal! on Fractal Image Gallery

2 Replies
452 Views
December 21, 2018, 10:55:18 PM
by Homer Skies
###### Newton-Raphson Fractal attempt in Xaos

Started by Know That Fractal! on Fractal Image Gallery

0 Replies
281 Views
December 22, 2017, 01:40:55 AM
by Know That Fractal!
###### New Version

Started by Lelle on Fractal Architect 5

3 Replies
413 Views
May 21, 2018, 08:46:16 PM
by Fraktalist