Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix bokeh fx artifacts

shun-iwasawa32ddcd44bfff
diff --git a/toonz/sources/stdfx/iwa_bokeh_advancedfx.cpp b/toonz/sources/stdfx/iwa_bokeh_advancedfx.cpp
index 5ff077ddb..7fd6e433a 100644
--- a/toonz/sources/stdfx/iwa_bokeh_advancedfx.cpp
+++ b/toonz/sources/stdfx/iwa_bokeh_advancedfx.cpp
@@ -232,11 +232,12 @@ void Iwa_BokehAdvancedFx::doCompute(TTile& tile, double frame,
// compute the input tiles
QMap<int, TTile*> sourceTiles;
+ TRenderSettings infoOnInput(settings);
+ infoOnInput.m_bpp = 64;
for (auto index : sourceIndices) {
TTile* layerTile = new TTile();
m_layerParams[index].m_source->allocateAndCompute(
- *layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
- settings);
+ *layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
sourceTiles[index] = layerTile;
}
diff --git a/toonz/sources/stdfx/iwa_bokehfx.cpp b/toonz/sources/stdfx/iwa_bokehfx.cpp
index c96169997..79848ba58 100644
--- a/toonz/sources/stdfx/iwa_bokehfx.cpp
+++ b/toonz/sources/stdfx/iwa_bokehfx.cpp
@@ -136,11 +136,12 @@ void Iwa_BokehFx::doCompute(TTile& tile, double frame,
//----------------------------
// Compute the input tiles first
QMap<int, TTile*> sourceTiles;
+ TRenderSettings infoOnInput(settings);
+ infoOnInput.m_bpp = 64;
for (auto index : sourceIndices) {
TTile* layerTile = new TTile();
m_layerParams[index].m_source->allocateAndCompute(
- *layerTile, _rectOut.getP00(), dimOut, tile.getRaster(), frame,
- settings);
+ *layerTile, _rectOut.getP00(), dimOut, 0, frame, infoOnInput);
sourceTiles[index] = layerTile;
}
diff --git a/toonz/sources/stdfx/iwa_bokehreffx.cpp b/toonz/sources/stdfx/iwa_bokehreffx.cpp
index 5042429ce..c8971f762 100644
--- a/toonz/sources/stdfx/iwa_bokehreffx.cpp
+++ b/toonz/sources/stdfx/iwa_bokehreffx.cpp
@@ -148,11 +148,13 @@ void Iwa_BokehRefFx::doCompute(TTile& tile, double frame,
// rasterList.append(allocateRasterAndLock<double4>(&source_buff, dimOut));
LayerValue layerValue;
+ TRenderSettings infoOnInput(settings);
+ infoOnInput.m_bpp = 64;
// source tile is used only in this focus.
// normalized source image data is stored in source_buff.
layerValue.sourceTile = new TTile();
m_source->allocateAndCompute(*layerValue.sourceTile, rectOut.getP00(), dimOut,
- tile.getRaster(), frame, settings);
+ 0, frame, infoOnInput);
// - - - iris image - - -
// Get the original size of Iris image