Eevee volume shader on imported VDB influences other volumetrics density (specified density attribute makes a difference) #84541

Open
opened 2021-01-08 22:00:40 +01:00 by Andrew Walsh · 17 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: 0f45cab862
Worked: (newest version of Blender that worked as expected)

Short description of error
I've noticed for a while now that if I bring in a vdb file, to a scene that already has fog via a large cube with principled volume shader applied, once I either import the vdb or, if it's hidden and I unhide it, the scene fog via the large cube will suddenly turn off. There's no way to get it back other than to reload the scene/restart Blender.

Exact steps for others to reproduce the error
Make a scene, envelop it in a large cube, apply principled volume shader. Something like 0.025 density or thereabouts. Whatever is thick enough to see the scene and appreciate the fog is there.
Import a vdb file and apply a volume shader to it. The main fog should disappear.
Then try putting the fog on the cube up to 1.0 density and you'll notice you get fog back, but, it's not as dense as it should be, even at 1.0 density.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `0f45cab862` Worked: (newest version of Blender that worked as expected) **Short description of error** I've noticed for a while now that if I bring in a vdb file, to a scene that already has fog via a large cube with principled volume shader applied, once I either import the vdb or, if it's hidden and I unhide it, the scene fog via the large cube will suddenly turn off. There's no way to get it back other than to reload the scene/restart Blender. **Exact steps for others to reproduce the error** Make a scene, envelop it in a large cube, apply principled volume shader. Something like 0.025 density or thereabouts. Whatever is thick enough to see the scene and appreciate the fog is there. Import a vdb file and apply a volume shader to it. The main fog should disappear. Then try putting the fog on the cube up to 1.0 density and you'll notice you get fog back, but, it's not as dense as it should be, even at 1.0 density.
Author

Added subscriber: @andywalshart

Added subscriber: @andywalshart

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

In what viewport shading mode and with which render engine are you viewing these volumetrics? In my test using the smoke1.vdb provided on the OpenVDB website , I couldn't reproduce the problem. Can you please share a*minimal// example file that demonstrates the issue or provide more detailed instructions? Overlapping volumes in Cycles can cause artifacts, see #83604.

Does this file work properly for you?

T84541_intersecting_volumes.blend

In what viewport shading mode and with which render engine are you viewing these volumetrics? In my test using the `smoke1.vdb` provided on the [OpenVDB website ](https:*www.openvdb.org/download/), I couldn't reproduce the problem. Can you please share a*minimal// example file that demonstrates the issue or provide more detailed instructions? Overlapping volumes in Cycles can cause artifacts, see #83604. Does this file work properly for you? [T84541_intersecting_volumes.blend](https://archive.blender.org/developer/F9556997/T84541_intersecting_volumes.blend)
Author

smoke-test.blend

Try this. There's a cube in the scene with fog density set to 1.0 so you can't see anything. Look in the scene collections for the vdb file which is currently hidden. Unhide it and the fog will reduce in density visibly but will still be at 1.0

[smoke-test.blend](https://archive.blender.org/developer/F9557000/smoke-test.blend) Try this. There's a cube in the scene with fog density set to 1.0 so you can't see anything. Look in the scene collections for the vdb file which is currently hidden. Unhide it and the fog will reduce in density visibly but will still be at 1.0

If I open the file you've provided I see no difference in material preview or rendered mode with or without the vdb object being visible. Please answer the questions from my last comment and provide precise instructions how to reproduce the problem with the file you've provided.

If I open the file you've provided I see no difference in material preview or rendered mode with or without the vdb object being visible. Please answer the questions from my last comment and provide *precise* instructions how to reproduce the problem with the file you've provided.
Author

2021-01-09_14-38-16.mp4

I uploaded a video to show how it looks for me. Unfortunately the audio didn't capture but if you just re-read what I said above it's about as precise as it needs to be. In the video I open the file, note that there's nothing visible in the scene because the fog density of the shader (that's applied to a cube encompassing the scene) is set to 1.0. I unhide the vdb file and it erroneously causes the fog density to change, so now, once the vdb file is unhidden, we CAN see the scene. However, the density has not changed from 1.0. At the end of the video I re-load the file and it's still broken (the volumetric fog is neither 0 or 1, it's somewhere in between). You have to restart Blender to fix it. Using Eevee.

[2021-01-09_14-38-16.mp4](https://archive.blender.org/developer/F9557142/2021-01-09_14-38-16.mp4) I uploaded a video to show how it looks for me. Unfortunately the audio didn't capture but if you just re-read what I said above it's about as precise as it needs to be. In the video I open the file, note that there's nothing visible in the scene because the fog density of the shader (that's applied to a cube encompassing the scene) is set to 1.0. I unhide the vdb file and it erroneously causes the fog density to change, so now, once the vdb file is unhidden, we CAN see the scene. However, the density has not changed from 1.0. At the end of the video I re-load the file and it's still broken (the volumetric fog is neither 0 or 1, it's somewhere in between). You have to restart Blender to fix it. Using Eevee.

I can't reproduce this in Blender 2.91 or the current master branch.

I can't reproduce this in Blender 2.91 or the current master branch.
Author

2021-01-09_15-02-36.mp4
smoke-test-new.blend
Round_Clouds.0032.vdb

Watch the attached video. Open the new Blender file and do what I do in the video. I've attached the vdb file. Essentially import the vdb cloud file, add the default volumetric shader and then scale it up and down and watch the density of the large cube's volumetric shader go in and out in proportion to the vdb file. It's a scaling issue of some kind related to some aspect of certain vdb files.

[2021-01-09_15-02-36.mp4](https://archive.blender.org/developer/F9557166/2021-01-09_15-02-36.mp4) [smoke-test-new.blend](https://archive.blender.org/developer/F9557172/smoke-test-new.blend) [Round_Clouds.0032.vdb](https://archive.blender.org/developer/F9557174/Round_Clouds.0032.vdb) Watch the attached video. Open the new Blender file and do what I do in the video. I've attached the vdb file. Essentially import the vdb cloud file, add the default volumetric shader and then scale it up and down and watch the density of the large cube's volumetric shader go in and out in proportion to the vdb file. It's a scaling issue of some kind related to some aspect of certain vdb files.

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Yes, I've seen the previous video and done the same steps. I will take a look at your new files and video on Monday, but it seems that I cannot reproduce the issue on my system.

Yes, I've seen the previous video and done the same steps. I will take a look at your new files and video on Monday, but it seems that I cannot reproduce the issue on my system.
Member

Added subscribers: @fclem, @lichtwerk

Added subscribers: @fclem, @lichtwerk
Member

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

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

Seems I can reproduce.

As soon as some attribute is specified (doesnt even make a difference which one, non-existent or whatever) in the Cube's Principled Volume shaders's Density Attribute, its density is influenced by other volume shaders.

@fclem: this cant be expected behavior, right?

Seems I can reproduce. As soon as some attribute is specified (doesnt even make a difference which one, non-existent or whatever) in the Cube's `Principled Volume` shaders's `Density Attribute`, its density is influenced by other volume shaders. @fclem: this cant be expected behavior, right?
Philipp Oeser changed title from importing a VDB makes scene volumetrics disappear to Eevee volume shader on imported VDB influences other volumetrics density (specified density attribute makes a difference) 2021-02-01 18:47:33 +01:00
Author

any news on this issue? can confirm it's still doing it in 2.92.0
Would appreciate someone helping me work through this. I've just permanently broke a scene that I've been working on for a few weeks because I imported a VDB file and it's stopping normal volumetrics from working at all.

edit: I think it re-scales the volumetrics in the scene. I thought volumes weren't working as it looked identical to being turned off. But I increased the density from 0.015 to 0.5 and it now looks roughly the same as it was before I imported the vdb file.

any news on this issue? can confirm it's still doing it in 2.92.0 Would appreciate someone helping me work through this. I've just permanently broke a scene that I've been working on for a few weeks because I imported a VDB file and it's stopping normal volumetrics from working at all. edit: I think it re-scales the volumetrics in the scene. I thought volumes weren't working as it looked identical to being turned off. But I increased the density from 0.015 to 0.5 and it now looks roughly the same as it was before I imported the vdb file.
Author

2021-04-09 19-20-03.mkv

Not sure if I've sent a video of the issue before but here's a video of me scaling a vdb file and like a dimmer switch, it's scale is directly affecting the cube of volume in the scene. (the cube just has a standard volumetric shader to give it some atmos).

Oops, yes I see above that I already sent such a thing. Apologies.

[2021-04-09 19-20-03.mkv](https://archive.blender.org/developer/F9927031/2021-04-09_19-20-03.mkv) Not sure if I've sent a video of the issue before but here's a video of me scaling a vdb file and like a dimmer switch, it's scale is directly affecting the cube of volume in the scene. (the cube just has a standard volumetric shader to give it some atmos). Oops, yes I see above that I already sent such a thing. Apologies.
Author

This is still present in 3.0.1
renders in cycles but, in Eevee, an imported vdb file turns off volume fog (when applied to a cube with principled volume shader applied).

This is still present in 3.0.1 renders in cycles but, in Eevee, an imported vdb file turns off volume fog (when applied to a cube with principled volume shader applied).
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:14:04 +01:00
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
3 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#84541
No description provided.