Adaptive Domain causing 'twitches' in gas position when noise applied #69870

Open
opened 2019-09-14 06:27:53 +02:00 by Mark Spink · 37 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36

Blender Version
Broken: version: 2.81 (sub 3), branch: fluid-mantaflow (modified), commit date: 2019-08-27 23:26, hash: 552149d8f5
Worked: (optional)

Short description of error
When I use adaptive domain, I have been noticing odd 'twitches' in the smoke's position once I've baked a noise pass.

Exact steps for others to reproduce the error
Bake the attached .blend and watch the sim playback, then bake the noise and watch the sim playback, you should see the 'twitches' I'm on about.
Here's my result- https://www.youtube.com/watch?v=-DPv9mUfQiI&feature=youtu.be

If you bake the sim without adaptive domain, it looks completely different, but there are no 'twitches' when the noise is added.
Here's my result of that- https://www.youtube.com/watch?v=Qda23EtCR2w&feature=youtu.be

I don't notice the problem every time I use adaptive domain, but I'd guess it happens to all sims, but maybe it's just not noticed if it's small enough.

Cheers!
Mark
MantaflowDomainTwitch.blend

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36 **Blender Version** Broken: version: 2.81 (sub 3), branch: fluid-mantaflow (modified), commit date: 2019-08-27 23:26, hash: `552149d8f5` Worked: (optional) **Short description of error** When I use adaptive domain, I have been noticing odd 'twitches' in the smoke's position once I've baked a noise pass. **Exact steps for others to reproduce the error** Bake the attached .blend and watch the sim playback, then bake the noise and watch the sim playback, you should see the 'twitches' I'm on about. Here's my result- https://www.youtube.com/watch?v=-DPv9mUfQiI&feature=youtu.be If you bake the sim without adaptive domain, it looks completely different, but there are no 'twitches' when the noise is added. Here's my result of that- https://www.youtube.com/watch?v=Qda23EtCR2w&feature=youtu.be I don't notice the problem every time I use adaptive domain, but I'd guess it happens to all sims, but maybe it's just not noticed if it's small enough. Cheers! Mark [MantaflowDomainTwitch.blend](https://archive.blender.org/developer/F7746838/MantaflowDomainTwitch.blend)
Author

Added subscriber: @marks-4

Added subscriber: @marks-4

#90703 was marked as duplicate of this issue

#90703 was marked as duplicate of this issue

Closed as duplicate of #70678

Closed as duplicate of #70678
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Changed status from 'Duplicate' to: 'Open'

Changed status from 'Duplicate' to: 'Open'
Member

This task is not a duplicate of #70678

This task is not a duplicate of #70678
Member

Added subscriber: @sebbas

Added subscriber: @sebbas
Member

@sebbas, wanna have a look if this issue is relevant as it is mentioning only the mantafluid branch.

@sebbas, wanna have a look if this issue is relevant as it is mentioning only the mantafluid branch.
Sebastián Barschkis self-assigned this 2019-10-17 11:31:03 +02:00

Yes, this looks some data is missing during the noise bake. I.e. the noise bake job is not loading some data from the previous low res job. "Twitches" are usually missing velocities.

I am currently rewriting parts of the caching. That might resolve this issue. I'll come back to this once the refactored caching is finished.

Yes, this looks some data is missing during the noise bake. I.e. the noise bake job is not loading some data from the previous low res job. "Twitches" are usually missing velocities. I am currently rewriting parts of the caching. That might resolve this issue. I'll come back to this once the refactored caching is finished.
Author

As requested-

Typically: when I re-baked the old scene I couldn't see anything much wrong- until I removed the 2 Turbulence fields I was using to make the smoke look interesting, after which I was rewarded with an absolute corker of an example of the issue (TC 06:21 to 06:22)-

https://www.youtube.com/watch?v=OWt1Yp9IrRc&feature=youtu.be
SmokeTwitch.mp4

You can also see something suspicious happening at TC 00:17 to 00:18 from the overhead camera.

Here's the scene file-
MantaflowSmokeTwitch.blend

Something I have noticed, don't know if it's related but- adaptive domain doesn't seem to give a toss about the domain size & position once baked: i.e. in the attached scene the bottom of the domain goes way below where the domain was originally defined, and had it's scale applied, before baking.
Like so-
pre-bake
PreAdaptiveBake.JPG

post-bake
PostAdaptiveBake.JPG

Also I've noticed when baking the noise, there seem to be instances of 2-3 frames baking way faster than the rest (observed while watching the timeline play head whilst baking), I couldn't swear to it, but I think it's around when the twitches occur.
Additionally the twitch coincides with the time the wee box in the bottom corner of the domain moves in x,y,or z, which doesn't happen without adaptive domain being enabled.

Here's my current system info-
System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48

Blender Version
Broken: version: 2.81 (sub 12), branch: fluid-mantaflow, commit date: 2019-09-27 09:45, hash: 114783000d

IMHO my issue is totally to do with adaptive domain, not with the domain being moved. I've never used a non-static domain so far (nice idea though, shall do in future!).

Cheers!
Mark

As requested- Typically: when I re-baked the old scene I couldn't see anything much wrong- until I removed the 2 Turbulence fields I was using to make the smoke look interesting, after which I was rewarded with an absolute corker of an example of the issue (TC 06:21 to 06:22)- https://www.youtube.com/watch?v=OWt1Yp9IrRc&feature=youtu.be [SmokeTwitch.mp4](https://archive.blender.org/developer/F7828283/SmokeTwitch.mp4) You can also see something suspicious happening at TC 00:17 to 00:18 from the overhead camera. Here's the scene file- [MantaflowSmokeTwitch.blend](https://archive.blender.org/developer/F7828214/MantaflowSmokeTwitch.blend) Something I have noticed, don't know if it's related but- adaptive domain doesn't seem to give a toss about the domain size & position once baked: i.e. in the attached scene the bottom of the domain goes way below where the domain was originally defined, and had it's scale applied, before baking. Like so- pre-bake ![PreAdaptiveBake.JPG](https://archive.blender.org/developer/F7828241/PreAdaptiveBake.JPG) post-bake ![PostAdaptiveBake.JPG](https://archive.blender.org/developer/F7828244/PostAdaptiveBake.JPG) Also I've noticed when baking the noise, there seem to be instances of 2-3 frames baking way faster than the rest (observed while watching the timeline play head whilst baking), I couldn't swear to it, but I think it's around when the twitches occur. Additionally the twitch coincides with the time the wee box in the bottom corner of the domain moves in x,y,or z, which doesn't happen without adaptive domain being enabled. Here's my current system info- **System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48 **Blender Version** Broken: version: 2.81 (sub 12), branch: fluid-mantaflow, commit date: 2019-09-27 09:45, hash: `114783000d` IMHO my issue is totally to do with adaptive domain, not with the domain being moved. I've never used a non-static domain so far (nice idea though, shall do in future!). Cheers! Mark
Author

This still happens in the 21-11-19 build by the looks of it.
AdaptiveTwitch2.mp4

Here's the blend-
MantaflowDomainTwitch2.blend

This still happens in the 21-11-19 build by the looks of it. [AdaptiveTwitch2.mp4](https://archive.blender.org/developer/F8157903/AdaptiveTwitch2.mp4) Here's the blend- [MantaflowDomainTwitch2.blend](https://archive.blender.org/developer/F8157905/MantaflowDomainTwitch2.blend)
Author

While strangely the 21-11-19 build seems to have fixed it for the original blend I put in this thread-
AdaptiveTwitchFixed.mp4
Odd!

While strangely the 21-11-19 build seems to have fixed it for the original blend I put in this thread- [AdaptiveTwitchFixed.mp4](https://archive.blender.org/developer/F8158101/AdaptiveTwitchFixed.mp4) Odd!
Author

Tried the above 'DomainTwitch2' file in the 22-11-19 build- re-baked smoke & noise & rendered, and here are the results-
AdaptiveTwitch_22-11-19.mp4

The twitches are at different times and places, and occasionally parts of the smoke disappear from the bake with noise, which seems to be a new behaviour- I've not noticed it before anyway.
The blend should be the same as the one uploaded above, but here it is again-
MantaflowDomainTwitch2.blend

Tried the above 'DomainTwitch2' file in the 22-11-19 build- re-baked smoke & noise & rendered, and here are the results- [AdaptiveTwitch_22-11-19.mp4](https://archive.blender.org/developer/F8160548/AdaptiveTwitch_22-11-19.mp4) The twitches are at different times and places, and occasionally parts of the smoke disappear from the bake with noise, which seems to be a new behaviour- I've not noticed it before anyway. The blend should be the same as the one uploaded above, but here it is again- [MantaflowDomainTwitch2.blend](https://archive.blender.org/developer/F8160559/MantaflowDomainTwitch2.blend)
Author

Hello All

FYI; I tried the scene in the 16-12-2019 build and it looks like this issue persists if noise is added to a sim using Adaptive Domain-
NoiseDomainTwitch 16-12-19-Build.mp4
Here's the blend file-
DomainTwitch_16-12.blend

Hello All FYI; I tried the scene in the 16-12-2019 build and it looks like this issue persists if noise is added to a sim using Adaptive Domain- [NoiseDomainTwitch 16-12-19-Build.mp4](https://archive.blender.org/developer/F8238507/NoiseDomainTwitch_16-12-19-Build.mp4) Here's the blend file- [DomainTwitch_16-12.blend](https://archive.blender.org/developer/F8238508/DomainTwitch_16-12.blend)
Sebastián Barschkis was unassigned by Dalai Felinto 2019-12-23 13:50:51 +01:00
Author

Hello

This issue still exists in the 15th January build of 2.82Beta-

DomainTwitch_2.82Jan16Build.mp4

here's the (simple as I can make it) .blend-
MantaflowSmokeTwitch2.82.blend

Made using this build-
2.82Version.JPG

Bake it, then bake the noise, and you should get the 'twitches' between frames 118-119 & 122-123.

Just to mention it; with this build and the one I was using yesterday (14th Jan build I believe)- I've never had so many crashes while attempting to bake, either the sim or the noise. It's awful compared to the old 26th of November build (mantaflow branch). I can't report it as a bug as it's not repeatable / too inconsistent. Creating this file I must had had at least 5 crashes while trying to bake the sim, but eventually managed to get all the way through.
Sometimes re-starting the machine helps, sometimes makes no difference.
And it's a completely-disappears-have-to-run-blender-again type crash, always during baking either sim or noise.

Hello This issue still exists in the 15th January build of 2.82Beta- [DomainTwitch_2.82Jan16Build.mp4](https://archive.blender.org/developer/F8281106/DomainTwitch_2.82Jan16Build.mp4) here's the (simple as I can make it) .blend- [MantaflowSmokeTwitch2.82.blend](https://archive.blender.org/developer/F8281107/MantaflowSmokeTwitch2.82.blend) Made using this build- ![2.82Version.JPG](https://archive.blender.org/developer/F8281108/2.82Version.JPG) Bake it, then bake the noise, and you should get the 'twitches' between frames 118-119 & 122-123. Just to mention it; with this build and the one I was using yesterday (14th Jan build I believe)- I've never had so many crashes while attempting to bake, either the sim or the noise. It's *awful* compared to the old 26th of November build (mantaflow branch). I can't report it as a bug as it's not repeatable / too inconsistent. Creating this file I must had had at least 5 crashes while trying to bake the sim, but eventually managed to get all the way through. Sometimes re-starting the machine helps, sometimes makes no difference. And it's a completely-disappears-have-to-run-blender-again type crash, always during baking either sim or noise.

With the latest commits (4dbaee0293) in branch blender-v2.82-release the 'twitch issue' seems to be resolved. Can you confirm that?

With the latest commits (4dbaee02937e) in branch blender-v2.82-release the 'twitch issue' seems to be resolved. Can you confirm that?
Author

Shall do Boss: I'm still seeing this on blender.org at about 11AM Sydney time:
Main Branch-
MantaDownload.JPG
Experimental Branch-
MantaExpDownload.JPG

So I'll have to wait an hour or 3 for it to change.
(any chance we could lose the Experimental branch from the downloads? It's well out of date, and I myself was waiting to see it updated until I realised it was obsolete about the 15th of Jan...)

Shall do Boss: I'm still seeing this on blender.org at about 11AM Sydney time: Main Branch- ![MantaDownload.JPG](https://archive.blender.org/developer/F8290844/MantaDownload.JPG) Experimental Branch- ![MantaExpDownload.JPG](https://archive.blender.org/developer/F8290847/MantaExpDownload.JPG) So I'll have to wait an hour or 3 for it to change. (any chance we could lose the Experimental branch from the downloads? It's well out of date, and I myself was waiting to see it updated until I realised it was obsolete about the 15th of Jan...)
Author

Here's what I get in 2.82 (sub 6), branch: master, commit date: 2020-01-19 22:44, hash: 81b7f8efaf version. I didn't even have to bake the noise to see it.

Interestingly, this version won't allow me to render as a dos process without crashing (my usual trick to use all my GPUs to do an Eevee render, Nvidia drivers allow running a dos process on each GPU). Edit, forget the Dos process crashes thing- me being a dick-head: had moved the scene file...

Hash_81b7f8efaf7a_Build.mp4

Here's what I get in 2.82 (sub 6), branch: master, commit date: 2020-01-19 22:44, hash: `81b7f8efaf` version. I didn't even have to bake the noise to see it. Interestingly, this version won't allow me to render as a dos process without crashing (my usual trick to use all my GPUs to do an Eevee render, Nvidia drivers allow running a dos process on each GPU). *Edit, forget the Dos process crashes thing- me being a dick-head: had moved the scene file...* [Hash_81b7f8efaf7a_Build.mp4](https://archive.blender.org/developer/F8290928/Hash_81b7f8efaf7a_Build.mp4)
Author

Hello, I downloaded version: 2.82 (sub 6), branch: master, commit date: 2020-01-20 22:06, hash: 902209eda5 and rendered-
DomainTwitch2.82_20JanBuild.mp4
No cigar I'm afraid! It 'twitches' between frames 116 & 117, looking in the viewport the whole domain drops about 7cm (measure tool).
The domain stays the same size, but it's at it's full original dimensions by then in the sim anyway.
I tried on another system (laptop) and got the same result, on the same frames. I did notice that, when viewed from the side view, the smoke passes beyond the collision plane after the 'twitch' and stays below it to the end..
When noise is disabled the smoke respects the collision plane throughout the sim.

I'm off to test the new build for the other bugs I reported now...

Cheers!
Mark

Hello, I downloaded version: 2.82 (sub 6), branch: master, commit date: 2020-01-20 22:06, hash: `902209eda5` and rendered- [DomainTwitch2.82_20JanBuild.mp4](https://archive.blender.org/developer/F8291119/DomainTwitch2.82_20JanBuild.mp4) No cigar I'm afraid! It 'twitches' between frames 116 & 117, looking in the viewport the whole domain drops about 7cm (measure tool). The domain stays the same size, but it's at it's full original dimensions by then in the sim anyway. I tried on another system (laptop) and got the same result, on the same frames. I did notice that, when viewed from the side view, the smoke passes beyond the collision plane after the 'twitch' and stays below it to the end.. When noise is disabled the smoke respects the collision plane throughout the sim. I'm off to test the new build for the other bugs I reported now... Cheers! Mark

Thanks for the in-depth tests! The video just above, was that re-simulated with 902209eda5 before rendering? Did you see the 'twitches' in the viewport too?

Can confirm that there was a bug in the 81b7f8efaf build. With the newer 902209eda5 is was not able to reproduce the twitches though.

Thanks for the in-depth tests! The video just above, was that re-simulated with 902209eda5 before rendering? Did you see the 'twitches' in the viewport too? Can confirm that there was a bug in the 81b7f8efaf build. With the newer 902209eda5 is was not able to reproduce the twitches though.
Author

Sorry! But yes here's what I'm seeing-
DomainTwitch2.82_16JanBuild_2.mp4
Hopefully you can see the 'xxxeda527' from the splash screen, speeded up the dull baking bit (such a shame you can't do this in real life!)...
Did this on my laptop (I'm still ever so slightly paranoid about my Threadripper), so an Iniel i7 box / GTX 1060 6Gb.

Here's the .blend again, just in case it differs at all from the earlier upload-
MantaflowSmokeTwitch2.82.blend

***Sorry!*** But yes here's what I'm seeing- [DomainTwitch2.82_16JanBuild_2.mp4](https://archive.blender.org/developer/F8293400/DomainTwitch2.82_16JanBuild_2.mp4) Hopefully you can see the '*xxx*eda527' from the splash screen, speeded up the dull baking bit (such a shame you can't do this in real life!)... Did this on my laptop (I'm still ever so slightly paranoid about my Threadripper), so an Iniel i7 box / GTX 1060 6Gb. Here's the .blend again, just in case it differs at all from the earlier upload- [MantaflowSmokeTwitch2.82.blend](https://archive.blender.org/developer/F8293415/MantaflowSmokeTwitch2.82.blend)
Author

I was getting my congratulations speech ready; but unfortunately not...
2020-01-24 21-05-23.mp4
Same frame as with the 'xxx4a11f' build I grabbed today, re-baked obviously. Sorry...

I was getting my congratulations speech ready; but unfortunately not... [2020-01-24 21-05-23.mp4](https://archive.blender.org/developer/F8299059/2020-01-24_21-05-23.mp4) Same frame as with the 'xxx4a11f' build I grabbed today, re-baked obviously. Sorry...

@marks-4 I see, that is very odd. I am baking the file on macOS and am not able to reproduce the twitches. Will try on Windows too.

I assume the file from your previous post is the one you used for the video? And also, have "All Transformations" been applied to the smoke domain before baking. Just checking .. Thanks!

@marks-4 I see, that is very odd. I am baking the file on macOS and am not able to reproduce the twitches. Will try on Windows too. I assume the file from your previous post is the one you used for the video? And also, have "All Transformations" been applied to the smoke domain before baking. Just checking .. Thanks!

@marks-4 Can confirm the twitches on Windows.

@marks-4 Can confirm the twitches on Windows.
Author

@sebbas Sorry, was busy throwing an animatic together for a job (you've got to love Eevee for that!), I just re baked after resetting all transforms (position was not zeroed out) and it didn't twitch!
2020-01-25 02-26-07.mp4

Apologies! I'll see if I can find any other scenes which used to have the issue and try them (and see if I was an arse-biscuit with the domain transforms in them as well!).

@sebbas Sorry, was busy throwing an animatic together for a job (you've got to love Eevee for that!), I just re baked after resetting all transforms (position was not zeroed out) and it didn't twitch! [2020-01-25 02-26-07.mp4](https://archive.blender.org/developer/F8299553/2020-01-25_02-26-07.mp4) Apologies! I'll see if I can find any other scenes which used to have the issue and try them (and see if I was an arse-biscuit with the domain transforms in them as well!).

Ah, I see! So when I baked on Windows I must have forgotten to apply the transformations too!

That at least explains the issue - and this time there is no issue on Windows.

Ah, I see! So when I baked on Windows I must have forgotten to apply the transformations too! That at least explains the issue - and this time there is no issue on Windows.
Author

Just baking the scene I put in #72214 as that had a decent twitch in it - have zeroed all transforms on that as well... I think you may well have found the culprit (namely me by the looks of it!).
I'll throw it on here once it's rendered.

Just baking the scene I put in #72214 as that had a decent twitch in it - have zeroed all transforms on that as well... I think you may well have found the culprit (namely me by the looks of it!). I'll throw it on here once it's rendered.
Author

Bugger! This one still twitches-
SmokeTwitch_Twister.mp4

But the domain is animated (parented to the emitter), would that be the culprit? )I'll put this on #72214 as well)

Here's the scene file-
SandTwister.blend

Bugger! This one still twitches- [SmokeTwitch_Twister.mp4](https://archive.blender.org/developer/F8299636/SmokeTwitch_Twister.mp4) But the domain is animated (parented to the emitter), would that be the culprit? )I'll put this on #72214 as well) Here's the scene file- [SandTwister.blend](https://archive.blender.org/developer/F8299639/SandTwister.blend)
Member

As @sebbas is working on this I mark this as a bug report.

As @sebbas is working on this I mark this as a bug report.

Added subscriber: @AndrewPrice

Added subscriber: @AndrewPrice

Just chiming in to confirm this bug. I've also encountered it several times.

Just chiming in to confirm this bug. I've also encountered it several times.

Added subscriber: @BeckersC

Added subscriber: @BeckersC
Sebastián Barschkis was assigned by Gottfried Hofmann 2020-03-16 16:04:50 +01:00

Added subscriber: @GottfriedHofmann

Added subscriber: @GottfriedHofmann
Added subscriber: @Iago-Diogo-de-Vasconcelos-Mota

This comment was removed by @Iago-Diogo-de-Vasconcelos-Mota

*This comment was removed by @Iago-Diogo-de-Vasconcelos-Mota*

Added subscribers: @Wizard_Semyon, @mano-wii, @lichtwerk

Added subscribers: @Wizard_Semyon, @mano-wii, @lichtwerk

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
10 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#69870
No description provided.