From 8a7fcb72f904c2298b8e7dffeb31da36811d50f4 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Jan 25 2022 09:03:19 +0000 Subject: fix dynamic conical fractal noise --- diff --git a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp index 649c0b9..486170c 100644 --- a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp +++ b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp @@ -384,8 +384,11 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame, // obtain sampling position // For Dynamic and Dynamic Twist patterns, the position offsets using // gradient / rotation of the parent pattern + TPointD samplePosOffset = + getSamplePos(x, y, outDim, out_buf, gen, scale, param) - + TPointD(x, y); TPointD samplePos = - getSamplePos(dx, dy, outDim, out_buf, gen, scale, param); + TPointD(dx, dy) + samplePosOffset * (D / (D + dz)); // multiply affine transformation samplePos = currentAff * samplePos; // adjust position for the block pattern