[Bf-blender-cvs] [4d63dfca4c6] blender-v2.83-release: Fluid: Reset noise emission value at the beginning of an adaptive frame
Sebastián Barschkis
noreply at git.blender.org
Thu Apr 30 15:54:45 CEST 2020
Commit: 4d63dfca4c63a3a0d159050bebd2ac05b3408838
Author: Sebastián Barschkis
Date: Mon Apr 27 13:22:47 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB4d63dfca4c63a3a0d159050bebd2ac05b3408838
Fluid: Reset noise emission value at the beginning of an adaptive frame
Emission values should not accumulate beyond one frame, only during the adaptive steps of one frame.
===================================================================
M intern/mantaflow/intern/strings/smoke_script.h
===================================================================
diff --git a/intern/mantaflow/intern/strings/smoke_script.h b/intern/mantaflow/intern/strings/smoke_script.h
index 146106fd147..fdb58543cec 100644
--- a/intern/mantaflow/intern/strings/smoke_script.h
+++ b/intern/mantaflow/intern/strings/smoke_script.h
@@ -302,6 +302,9 @@ def smoke_adaptive_step_$ID$(framenr):\n\
setObstacleFlags(flags=flags_s$ID$, phiObs=phiObs_s$ID$, phiOut=phiOut_s$ID$, phiIn=phiIn_s$ID$, boundaryWidth=1)\n\
flags_s$ID$.fillGrid()\n\
\n\
+ # reset emission accumulation at the beginning of an adaptive frame\n\
+ if not s$ID$.timePerFrame:\n\
+ emission_s$ID$.setConst(0.)\n\
# accumulate emission value per adaptive step for later use in noise computation\n\
emission_s$ID$.join(emissionIn_s$ID$)\n\
\n\
More information about the Bf-blender-cvs
mailing list