Mantaflow: OpenVDB glitches due to Adaptive Domain #79711

Open
opened 3 years ago by Iago-Diogo-de-Vasconcelos-Mota · 36 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.
Added subscriber: @Iago-Diogo-de-Vasconcelos-Mota
Collaborator

#83990 was marked as duplicate of this issue

#83990 was marked as duplicate of this issue
Collaborator

#80884 was marked as duplicate of this issue

#80884 was marked as duplicate of this issue
Collaborator

#80382 was marked as duplicate of this issue

#80382 was marked as duplicate of this issue
Collaborator

Added subscribers: @sebbas, @JacquesLucke

Added subscribers: @sebbas, @JacquesLucke
Collaborator

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.
Collaborator

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

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

Added subscriber: @BlendedBrain

Added subscriber: @BlendedBrain
Collaborator

Added subscriber: @mano-wii

Added subscriber: @mano-wii
srghvn commented 2 years ago

Added subscriber: @srghvn

Added subscriber: @srghvn
Collaborator

Added subscriber: @Gadas

Added subscriber: @Gadas

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.
rjg commented 2 years ago
Collaborator

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.
Dxn commented 2 years ago

Added subscriber: @Dxn

Added subscriber: @Dxn
Dxn commented 2 years ago

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
zrp commented 2 years ago

Added subscriber: @zrp

Added subscriber: @zrp

Added subscriber: @kursadk

Added subscriber: @kursadk

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.
Samu89 commented 1 year ago

Added subscriber: @Samu89

Added subscriber: @Samu89
Samu89 commented 1 year ago

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
Dxn commented 1 year ago

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 :)
Dawe69 commented 1 year ago

Added subscriber: @Dawe69

Added subscriber: @Dawe69
Dawe69 commented 1 year ago

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

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
Owner

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 :(
lichtwerk removed the
legacy module/Nodes & Physics
label 6 hours ago
lichtwerk removed the
Interest/Nodes & Physics
label 6 hours ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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
19 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#79711
Loading…
There is no content yet.