From 524bb7e9c943405a9b7cafe8c4daf497706509c6 Mon Sep 17 00:00:00 2001 From: Rodney Date: Sep 24 2020 02:55:22 +0000 Subject: Merge pull request #3498 from shun-iwasawa/g/fix_fractal_noise_fx_iwa Fix Fractal Noise Fx Iwa --- diff --git a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp index e3388f0..b734db0 100644 --- a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp +++ b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp @@ -155,9 +155,6 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame, TAffine subAff = TTranslation(param.subOffset) * TScale(param.subScaling) * TRotation(-param.subRotation); - TAffine offsetAff = - TTranslation((double)outDim.lx * 0.5, (double)outDim.ly * 0.5); - TAffine genAff; // for cyclic evolution, rotate the sample position in ZW space instead of @@ -178,7 +175,7 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame, for (int gen = 0; gen < genCount; gen++) { // affine transformation for the current generation TAffine currentAff = - (globalAff * parentOffsetAff * parentAff * genAff * offsetAff).inv(); + (globalAff * parentOffsetAff * parentAff * genAff).inv(); // scale of the current pattern ( used for the Dynamic / Dynamic Twist // offset ) double scale = sqrt(std::abs(currentAff.det()));