Unexpected Behavior - Smoke domain does not match viewport container #70868

Closed
opened 2019-10-16 09:04:17 +02:00 by J. Kissel · 12 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.15

Blender Version
Broken: version: 2.81 (sub 11), branch: master, commit date: 2019-09-16 21:02, hash: 76650402f3
Worked: (optional)

Short description of error
When the domainobject is modified in edit mode the domain calculation does not follow
I dont know how to say that but - "The Code Under the Hood" seems not to recognize this.

Exact steps for others to reproduce the error

  • Create a cube
  • go to edit mode
  • move verticies around -> e.g. Bottom to Zero instead of -1 and top to 2 instead of 1
  • leave edit mode and for savety apply trandformations
  • go to Physics Tab and make a domain out of the cube
  • add flow object press Play and play a few frames
  • turn on Debug Velocity
  • Velocity is not matching smoke visualization in vieport

it seems that recentering the Pivot fixes that

[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.15 **Blender Version** Broken: version: 2.81 (sub 11), branch: master, commit date: 2019-09-16 21:02, hash: `76650402f3` Worked: (optional) **Short description of error** When the domainobject is modified in edit mode the domain calculation does not follow I dont know how to say that but - "The Code Under the Hood" seems not to recognize this. **Exact steps for others to reproduce the error** - Create a cube - go to edit mode - move verticies around -> e.g. Bottom to Zero instead of -1 and top to 2 instead of 1 - leave edit mode and for savety apply trandformations - go to Physics Tab and make a domain out of the cube - add flow object press Play and play a few frames - turn on Debug Velocity - Velocity is not matching smoke visualization in vieport **it seems that recentering the Pivot fixes that** [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @Masterheavy

Added subscriber: @Masterheavy
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Might be related to #70678, not sure.

Might be related to #70678, not sure.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Don't know if this is the same issue, but I can confirm the issue described here.

debug_velocity_offset.blend

  1. Open the file.
  2. Play the animation.

image.png

Don't know if this is the same issue, but I can confirm the issue described here. [debug_velocity_offset.blend](https://archive.blender.org/developer/F7825681/debug_velocity_offset.blend) 1. Open the file. 2. Play the animation. ![image.png](https://archive.blender.org/developer/F7825685/image.png)
Author

Jupp - Looks the same.
if you now center the origin, ist gone.

Jupp - Looks the same. if you now center the origin, ist gone.

Added subscriber: @mano-wii

Added subscriber: @mano-wii
Clément Foucault was assigned by Germano Cavalcante 2019-10-16 22:51:32 +02:00

I can confirm.
As seen in the image attached by @JacquesLucke, the needles indicating speed are partially out of the domain.

I can confirm. As seen in the image attached by @JacquesLucke, the needles indicating speed are partially out of the domain.
Member

I can take a look at this one. Is more in my alley than the fragment shader

I can take a look at this one. Is more in my alley than the fragment shader
Member

Cause is inside the volume_velocity_vert.glsl here it is assumed that the velocity texture has to be drawn around the center of the object.

  vec3 pos = (vec3(cell_co) + 0.5) / vec3(volume_size);
  pos = pos * 2.0 - 1.0;

We should add an offset that has been calculated from the bounding box of the object cq mesh, currently checking if the the SmokeDomainSettings already has needed data.

image.png

is the worst case situation. Note that the voxel size debug cube is correct (due to D6076).

Object scale + pivot transform needs to be fixed.

Voxel size is also incorrect (visible when enabling adaptive domains)

Cause is inside the `volume_velocity_vert.glsl` here it is assumed that the velocity texture has to be drawn around the center of the object. ``` vec3 pos = (vec3(cell_co) + 0.5) / vec3(volume_size); pos = pos * 2.0 - 1.0; ``` We should add an offset that has been calculated from the bounding box of the object cq mesh, currently checking if the the SmokeDomainSettings already has needed data. ![image.png](https://archive.blender.org/developer/F7828865/image.png) is the worst case situation. Note that the voxel size debug cube is correct (due to [D6076](https://archive.blender.org/developer/D6076)). Object scale + pivot transform needs to be fixed. Voxel size is also incorrect (visible when enabling adaptive domains)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This seems to have been fixed.

This seems to have been fixed.
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
5 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#70868
No description provided.