Mantaflow: OpenVDB glitches due to Adaptive Domain #79711

Open
opened 2020-08-11 16:12:34 +02:00 by Iago Mota · 37 comments

System Information
Operating system: Windows 10
Graphics card: Nvidia GeForce GTX 650 Ti
Processor: Intel® Core™ i7-3770

Blender Version
Broken: Blender 2.91.0 (b522e834ec)
Worked: never

Short description of error
The Adaptive Domain causes the smoke to shift when imported as a volume object (Import OpenVDB)
VDB_Ad_D-vid-C.mp4

Exact steps to reproduce the error (based on the .blend file)
VDB_Adaptive_Domain.blend

  1. Enable Adaptive Domain.
  2. Bake the smoke simulation.
  3. The file uses relative paths, so it should import the cache automatically after the first step, but if it doesn't, select fluid_data_0001 and load the cached files.
  4. Play the animation.
**System Information** Operating system: Windows 10 Graphics card: Nvidia GeForce GTX 650 Ti Processor: Intel® Core™ i7-3770 **Blender Version** Broken: Blender 2.91.0 (b522e834ec30) Worked: never **Short description of error** The Adaptive Domain causes the smoke to shift when imported as a volume object (Import OpenVDB) [VDB_Ad_D-vid-C.mp4](https://archive.blender.org/developer/F8769740/VDB_Ad_D-vid-C.mp4) **Exact steps to reproduce the error (based on the .blend file)** [VDB_Adaptive_Domain.blend](https://archive.blender.org/developer/F8769745/VDB_Adaptive_Domain.blend) 1. Enable Adaptive Domain. 2. Bake the smoke simulation. 3. The file uses relative paths, so it should import the cache automatically after the first step, but if it doesn't, select fluid_data_0001 and load the cached files. 4. Play the animation.
Author
Added subscriber: @Iago-Diogo-de-Vasconcelos-Mota

#83990 was marked as duplicate of this issue

#83990 was marked as duplicate of this issue

#80884 was marked as duplicate of this issue

#80884 was marked as duplicate of this issue

#80382 was marked as duplicate of this issue

#80382 was marked as duplicate of this issue
Member

Added subscribers: @sebbas, @JacquesLucke

Added subscribers: @sebbas, @JacquesLucke
Member

I can confirm that. Not sure how an adaptive domain works in openvdb caches. Maybe @sebbas can give us some insights.

I can confirm that. Not sure how an adaptive domain works in openvdb caches. Maybe @sebbas can give us some insights.

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @BlendedBrain

Added subscriber: @BlendedBrain

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Added subscriber: @srghvn

Added subscriber: @srghvn

Added subscriber: @Gadas

Added subscriber: @Gadas
Author

Little update here. I just tested this example file in 2.92 9a7da1242d, and the behavior seems a lot stranger. On the left, you see the imported VDB smoke, which hasn't been scaled or rotated, only translated to the left of the original simulation.

VDB_Ad_D-vid2.mp4

Something else to notice is how the bounds are slightly skewed.

Little update here. I just tested this example file in 2.92 9a7da1242d9f, and the behavior seems a lot stranger. On the left, you see the imported VDB smoke, which hasn't been scaled or rotated, only translated to the left of the original simulation. [VDB_Ad_D-vid2.mp4](https://archive.blender.org/developer/F9218459/VDB_Ad_D-vid2.mp4) Something else to notice is how the bounds are slightly skewed.

Added subscriber: @CGJ

Added subscriber: @CGJ

Added subscriber: @jumaku87

Added subscriber: @jumaku87

https://youtu.be/TNVuq5-0Zlk yup.. adaptive domain generated openvdb in mantaflow does generate these weird issues - scale, position etc. Something like its missing origin and related scale and position... something very weird.
Only deactivating adaptive domain will leave these glitches out. :/

https://youtu.be/TNVuq5-0Zlk?t=97 this might be better angle view...
And I also tried to applied scaling (ctrl + a -> all transforms, or scale... no affect - blender just says: objects have no data to transform ) - so that didn't work either.. no matter is it accepted/applied or not. same weird bug/glitches happen if openvdb import is generated in mantaflow with adaptvive domain..

And I am using density_noise in this one, but same does happen with basic data density - domain / openvdb version is jumping/vibrating when adaptive domain scales bigger - so it looks like it has no origin (or origin is changing its position) and scale relation is wrong (its changing) when adaptive domain scale get bigger or smaller.

Also border collisions doesn't seem to work with adaptive domain if i remember right.

https://youtu.be/TNVuq5-0Zlk yup.. adaptive domain generated openvdb in mantaflow does generate these weird issues - scale, position etc. Something like its missing origin and related scale and position... something very weird. Only deactivating adaptive domain will leave these glitches out. :/ https://youtu.be/TNVuq5-0Zlk?t=97 this might be better angle view... And I also tried to applied scaling (ctrl + a -> all transforms, or scale... no affect - blender just says: objects have no data to transform ) - so that didn't work either.. no matter is it accepted/applied or not. same weird bug/glitches happen if openvdb import is generated in mantaflow with adaptvive domain.. And I am using density_noise in this one, but same does happen with basic data density - domain / openvdb version is jumping/vibrating when adaptive domain scales bigger - so it looks like it has no origin (or origin is changing its position) and scale relation is wrong (its changing) when adaptive domain scale get bigger or smaller. Also border collisions doesn't seem to work with adaptive domain if i remember right.

Added subscriber: @Dxn

Added subscriber: @Dxn

I think this is because the center of the object is to one side and it scales in relation to that center

I think this is because the center of the object is to one side and it scales in relation to that center

Added subscriber: @Julia-11

Added subscriber: @Julia-11

Added subscriber: @god1ged

Added subscriber: @god1ged

In #79711#1108269, @Dxn wrote:
I think this is because the center of the object is to one side and it scales in relation to that center

So how to solve this ? I've got the same problem

> In #79711#1108269, @Dxn wrote: > I think this is because the center of the object is to one side and it scales in relation to that center So how to solve this ? I've got the same problem

Added subscriber: @finalflasher

Added subscriber: @finalflasher

In #79711#1110552, @god1ged wrote:

In #79711#1108269, @Dxn wrote:
I think this is because the center of the object is to one side and it scales in relation to that center

So how to solve this ? I've got the same problem

it has to be fixed... since Dalai sar has taken it in account so we can expect quite soon

> In #79711#1110552, @god1ged wrote: >> In #79711#1108269, @Dxn wrote: >> I think this is because the center of the object is to one side and it scales in relation to that center > > So how to solve this ? I've got the same problem it has to be fixed... since Dalai sar has taken it in account so we can expect quite soon

Added subscriber: @Sparazza

Added subscriber: @Sparazza

Added subscriber: @zrp

Added subscriber: @zrp
Member

Added subscriber: @kursadk

Added subscriber: @kursadk
Member

Is there an eta for this? I got hit by this issue very hard atm myself. So I can totally confirm this on 3.0 nightly blender-3.0.0-alpha+master.118803893e65-windows.amd64-release.

It would be at least great to know if this will be fixed anytime soon since this is a pipeline problem really and there does not seem to exists an easy solution for it.

Is there an eta for this? I got hit by this issue very hard atm myself. So I can totally confirm this on 3.0 nightly blender-3.0.0-alpha+master.118803893e65-windows.amd64-release. It would be at least great to know if this will be fixed anytime soon since this is a pipeline problem really and there does not seem to exists an easy solution for it.

Added subscriber: @Samu89

Added subscriber: @Samu89

I have the same problem with 2.93.0
This post is the only reference to the problem I could find. So unless we are missing something I reckon it's a bug. And a big one imo. The whole vdb workflow is broken, because without adaptive domain, simulating anything is an absolute pain. I'm actually a bit surprised that there's not more people complaining about this all over the internet. That's what makes me think it's a fixable problem in Blender's current state

I have the same problem with 2.93.0 This post is the only reference to the problem I could find. So unless we are missing something I reckon it's a bug. And a big one imo. The whole vdb workflow is broken, because without adaptive domain, simulating anything is an absolute pain. I'm actually a bit surprised that there's not more people complaining about this all over the internet. That's what makes me think it's a fixable problem in Blender's current state

bug.mp4

bug.blend

In the vdb file, the center of the object is in the corner and not in the center, so when resizing the domain moves that way outside of that, we can notice that the way of scaling does not work well.

thanks for your great work to all developers :)

[bug.mp4](https://archive.blender.org/developer/F10472862/bug.mp4) [bug.blend](https://archive.blender.org/developer/F10472863/bug.blend) In the vdb file, the center of the object is in the corner and not in the center, so when resizing the domain moves that way outside of that, we can notice that the way of scaling does not work well. thanks for your great work to all developers :)

Added subscriber: @Dawe69

Added subscriber: @Dawe69

Really waiting for a solution to this so, is it worked on?

Best
/Daniel

Really waiting for a solution to this so, is it worked on? Best /Daniel
Author

This might be a bit of repetition, but I just wanted to make sure if the issue really was with Blender's implementation of Mantaflow and not OpenVDB. I always found it a bit strange how the problem only seemed to manifest when importing the smoke separately through OpenVDB, but not when playing back the simulation itself. But, at this point, I think it's quite clear that the problem is with Blender's Mantaflow smoke simulator.

Here, I did the same thing as with the previous examples, but I also tried recreating the original Blender simulation in Houdini, making sure that I do have a resizing container (basically Adaptive Domain in Houdini), and importing that as a VDB sequence in Blender as well. In the end, the VDB sequence imported from Houdini looks just fine, while the VDB sequence imported from Blender is resizing and shifting terribly.
VDBImportBugPRUpdate.mp4
Also, (not shown here) I imported the Mantaflow VDB sequence into Houdini, and, just like when importing it into Blender, the problem was just the same. (By the way, the original Blender simulation isn't perfect either; I think I can see an example of #91174, but I guess that's besides the point here.) Now, I want to make a correction to something I previously said that was likely misleading: The skewing in the bounds of the imported VDB sequence are either inconsequential, or a problem with Blender's OpenVDB, not Mantaflow. In the video above, you can see that even in the sequence imported from Houdini, the lines around the smoke container aren't fully aligned, the corner angles aren't rectangular. I previously raised this skewing as a concern regarding Mantaflow, but it doesn't seem to be related.

Anyway, the Blender simulation here was done in 3.0. And here's the .blend just in case:

BlenderVDBImportBug.blend

This might be a bit of repetition, but I just wanted to make sure if the issue really was with Blender's implementation of Mantaflow and not OpenVDB. I always found it a bit strange how the problem only seemed to manifest when importing the smoke separately through OpenVDB, but not when playing back the simulation itself. But, at this point, I think it's quite clear that the problem is with Blender's Mantaflow smoke simulator. Here, I did the same thing as with the previous examples, but I also tried recreating the original Blender simulation in Houdini, making sure that I do have a resizing container (basically Adaptive Domain in Houdini), and importing that as a VDB sequence in Blender as well. In the end, the VDB sequence imported from Houdini looks just fine, while the VDB sequence imported from Blender is resizing and shifting terribly. [VDBImportBugPRUpdate.mp4](https://archive.blender.org/developer/F12832629/VDBImportBugPRUpdate.mp4) Also, (not shown here) I imported the Mantaflow VDB sequence into Houdini, and, just like when importing it into Blender, the problem was just the same. (By the way, the original Blender simulation isn't perfect either; I think I can see an example of #91174, but I guess that's besides the point here.) Now, I want to make a correction to something I previously said that was likely misleading: The skewing in the bounds of the imported VDB sequence are either inconsequential, or a problem with Blender's OpenVDB, not Mantaflow. In the video above, you can see that even in the sequence imported from Houdini, the lines around the smoke container aren't fully aligned, the corner angles aren't rectangular. I previously raised this skewing as a concern regarding Mantaflow, but it doesn't seem to be related. Anyway, the Blender simulation here was done in 3.0. And here's the .blend just in case: [BlenderVDBImportBug.blend](https://archive.blender.org/developer/F12832660/BlenderVDBImportBug.blend)

looks like the imported blender adaptive vdb isn't registering and saving loc rot scale data perframe of vdb before getting exported

looks like the imported blender adaptive vdb isn't registering and saving loc rot scale data perframe of vdb before getting exported

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.

Added subscriber: @Esteban-G-Vega

Added subscriber: @Esteban-G-Vega

It is very sad that this is still the same today. It is impossible to take blender seriously as a VFX pipeline without solving basic problems like this :(

It is very sad that this is still the same today. It is impossible to take blender seriously as a VFX pipeline without solving basic problems like this :(
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:35 +01:00

This is a commit made by @Sebastián Barschkis 3 years ago: https://projects.blender.org/blender/blender/commit/995185894289

Known issues (planned to be resolved soon):

  • OpenVDB files are currently not taking into consideration the clipping value (FluidDomainSettings). Empty cells are therefore being written too. Depending on the scene, this can make file sizes unnecessarily large.
  • Domains are not being exported at their world position. Instead they are always clipped to the origin.

https://wiki.blender.org/wiki.

This is a commit made by @Sebastián Barschkis 3 years ago: https://projects.blender.org/blender/blender/commit/995185894289 Known issues (planned to be resolved soon): - OpenVDB files are currently not taking into consideration the clipping value (FluidDomainSettings). Empty cells are therefore being written too. Depending on the scene, this can make file sizes unnecessarily large. - Domains are not being exported at their world position. Instead they are always clipped to the origin. https://wiki.blender.org/wiki.
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
No Assignees
20 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#79711
No description provided.