mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 13:56:06 -04:00
Fix bug with xaos interpolation, by setting all xaos values to zero first.
Remove unnecessary resize() in Interpolate(). These are from Simon Detheridge's PR: Set file name padding in EmberRender and EmberAnimate based on the log10() of how many images are getting rendered, rather than hardcoding it to 5. Use non-locale-imbued stream for writing filename in EmberAnimate. Properly cast immediate float value used with pow() in density filter kernel.
This commit is contained in:
@ -28,6 +28,7 @@ bool EmberRender(EmberOptions& opt)
|
||||
Timing t;
|
||||
bool writeSuccess = false;
|
||||
byte* finalImagep;
|
||||
uint padding;
|
||||
size_t i, channels;
|
||||
size_t strips;
|
||||
size_t iterCount;
|
||||
@ -144,6 +145,7 @@ bool EmberRender(EmberOptions& opt)
|
||||
|
||||
//Final setup steps before running.
|
||||
os.imbue(std::locale(""));
|
||||
padding = uint(log10((double)embers.size())) + 1;
|
||||
renderer->EarlyClip(opt.EarlyClip());
|
||||
renderer->YAxisUp(opt.YAxisUp());
|
||||
renderer->LockAccum(opt.LockAccum());
|
||||
@ -259,10 +261,10 @@ bool EmberRender(EmberOptions& opt)
|
||||
}
|
||||
else
|
||||
{
|
||||
ostringstream ssLocal;
|
||||
ostringstream fnstream;
|
||||
|
||||
ssLocal << inputPath << opt.Prefix() << setfill('0') << setw(5) << i << opt.Suffix() << "." << opt.Format();
|
||||
filename = ssLocal.str();
|
||||
fnstream << inputPath << opt.Prefix() << setfill('0') << setw(padding) << i << opt.Suffix() << "." << opt.Format();
|
||||
filename = fnstream.str();
|
||||
}
|
||||
|
||||
//TotalIterCount() is actually using ScaledQuality() which does not get reset upon ember assignment,
|
||||
|
Reference in New Issue
Block a user