From f4a22cc8d9e1c329a1c1c9518bc0c638168e9bd7 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Tue, 25 Jan 2022 18:03:19 +0900 Subject: [PATCH] fix dynamic conical fractal noise --- toonz/sources/stdfx/iwa_fractalnoisefx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp index 649c0b9a..486170c2 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