Volume scatter and absorption shaders do not work with mesh to volume modifier in eevee #103683

Open
opened 2023-01-06 12:49:22 +01:00 by Wouter Stomp · 7 comments

System Information
Operating system: macOS-13.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Max 1.2

Blender Version
Broken: 3.2.1; version: 3.5.0 Alpha, branch: master, commit date: 2023-01-06 00:40, hash: bc5337a05a
Worked: unknown

Short description of error
When using the mesh to volume modifier, volumes are not visible with the volume scatter and absorption shaders in eevee. They are visible with the principled volume shader. They are also visible when using the geometry nodes mesh to volume node instead of the modifier.

Additionally a very specific bug occurs: when I have the scatter or absorption node attached, then go to eevee rendered view, switch back to cycles rendered view and then attach the principled volume, the geonodes volume becomes invisible. That becomes visible again when I manipulate the blackbody intensity value (but not any of the other values in the shader node).

Exact steps for others to reproduce the error
See attached blend file
When in viewport shading or eevee rendered view, the cube with the mesh to volume modifier does not render when volume scatter or absorption nodes are connected. Attach the principled volume node and it does render.

Volume shader test.blend

**System Information** Operating system: macOS-13.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Max 1.2 **Blender Version** Broken: 3.2.1; version: 3.5.0 Alpha, branch: master, commit date: 2023-01-06 00:40, hash: `bc5337a05a` Worked: unknown **Short description of error** When using the mesh to volume modifier, volumes are not visible with the volume scatter and absorption shaders in eevee. They are visible with the principled volume shader. They are also visible when using the geometry nodes mesh to volume node instead of the modifier. Additionally a very specific bug occurs: when I have the scatter or absorption node attached, then go to eevee rendered view, switch back to cycles rendered view and then attach the principled volume, the geonodes volume becomes invisible. That becomes visible again when I manipulate the blackbody intensity value (but not any of the other values in the shader node). **Exact steps for others to reproduce the error** See attached blend file When in viewport shading or eevee rendered view, the cube with the mesh to volume modifier does not render when volume scatter or absorption nodes are connected. Attach the principled volume node and it does render. [Volume shader test.blend](https://archive.blender.org/developer/F14120725/Volume_shader_test.blend)
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

Added subscriber: @Michael-Parkin-White-Apple

Added subscriber: @Michael-Parkin-White-Apple

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

It is indeed strange that Eevee and Cycles behave differently with this material.
On the one hand I can understand the Eevee side that needs to read attributes like "density" to represent a volume.
Cycles seems to initialize a value for each Voxel.

I'm not sure if it's a bug.

It is indeed strange that Eevee and Cycles behave differently with this material. On the one hand I can understand the Eevee side that needs to read attributes like "density" to represent a volume. Cycles seems to initialize a value for each Voxel. I'm not sure if it's a bug.
Author

The difference is mainly within eevee depending on how the volume is generated (volume to mesh modifier vs the other two methods). The density attribute is also used by the principled volume shader and that doesn't have this issue.

The difference is mainly within eevee depending on how the volume is generated (volume to mesh modifier vs the other two methods). The density attribute is also used by the principled volume shader and that doesn't have this issue.
Author

This also affects Eevee next:

  • With the volume scatter node connected none of the cubes appear
  • With the volume absorption node connected only the the cube with the volume shader appears
  • With the principled volume node connected all three appear correctly
This also affects Eevee next: - With the volume scatter node connected none of the cubes appear - With the volume absorption node connected only the the cube with the volume shader appears - With the principled volume node connected all three appear correctly
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#103683
No description provided.