Regression: when the scene has multiple volumes, some of them get wrong transformation in Eevee's render #101402

Closed
opened 2022-09-27 13:16:28 +02:00 by Marius Eugen Mihai · 17 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.2.0, caused by fa3bd17ae8
Worked: (3.1.2)

Short description of error
When rendering a scene in eevee, that contains volumetric materials applied to volume objects, the rendered result doesn't match the viewport preview. Some volumes are missing and the lighting is wrong. There are also strange rectangular voxel streaks. The issue is also present in Blender 3.2 and 3.4 alpha. It works fine in Blender 3.1.

I'm attaching a file where this error is present.

I've created a few "smoke streaks" by making some simple mesh geometry using the skin modifier and subdivision, then using a mesh to volume and a couple of volume displace modifiers. I've then applied a material with a principled volume shader to the volumes and added some point lights to the scene.

When previewing the scene in the viewport with Eevee, everything looks as desired. But when rendering the scene (using F12), also using Eevee as the renderer, the final rendered image does not coincide with the preview in the viewport. I expect some slight differences between the preview and the final render, but in this case the two results look drastically different and the final render looks wrong and has some visible voxel streak artifacts.

The issue is also present in Blender 3.2.2 and 3.4.0 alpha. However, this exact same scene renders just as previewed in Blender 3.1.2.

For example, this is what the scene looks like in the viewport, and also rendered in Blender 3.1.2, where the issue isn't present:
eevee volumetrics render - blender 3-1-2.jpg

And this is what it looks like when rendered in Blender 3.3.1 (and also in 3.2.2 and 3.4.0 alpha):
eevee volumetrics render - blender 3-3-1.jpg

Exact steps for others to reproduce the error

  • Open attached eevee_volumetric_render_bug-3_2.blend file
  • press {key F12} to render
    Compare viewport result with Render result

Simplified file:
eevee_volumetric_render_bug-3_2.blend

Original file:
blender 3.2+ eevee volumetric render bug 001.blend

Thank you for your time and development!

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.2.0, caused by fa3bd17ae8 Worked: (3.1.2) **Short description of error** When rendering a scene in eevee, that contains volumetric materials applied to volume objects, the rendered result doesn't match the viewport preview. Some volumes are missing and the lighting is wrong. There are also strange rectangular voxel streaks. The issue is also present in Blender 3.2 and 3.4 alpha. It works fine in Blender 3.1. I'm attaching a file where this error is present. I've created a few "smoke streaks" by making some simple mesh geometry using the skin modifier and subdivision, then using a mesh to volume and a couple of volume displace modifiers. I've then applied a material with a principled volume shader to the volumes and added some point lights to the scene. When previewing the scene in the viewport with Eevee, everything looks as desired. But when rendering the scene (using F12), also using Eevee as the renderer, the final rendered image does not coincide with the preview in the viewport. I expect some slight differences between the preview and the final render, but in this case the two results look drastically different and the final render looks wrong and has some visible voxel streak artifacts. The issue is also present in Blender 3.2.2 and 3.4.0 alpha. However, this exact same scene renders just as previewed in Blender 3.1.2. For example, this is what the scene looks like in the viewport, and also rendered in Blender 3.1.2, where the issue isn't present: ![eevee volumetrics render - blender 3-1-2.jpg](https://archive.blender.org/developer/F13580918/eevee_volumetrics_render_-_blender_3-1-2.jpg) And this is what it looks like when rendered in Blender 3.3.1 (and also in 3.2.2 and 3.4.0 alpha): ![eevee volumetrics render - blender 3-3-1.jpg](https://archive.blender.org/developer/F13580945/eevee_volumetrics_render_-_blender_3-3-1.jpg) **Exact steps for others to reproduce the error** - Open attached `eevee_volumetric_render_bug-3_2.blend` file - press {key F12} to render Compare viewport result with Render result Simplified file: [eevee_volumetric_render_bug-3_2.blend](https://archive.blender.org/developer/F13582050/eevee_volumetric_render_bug-3_2.blend) Original file: [blender 3.2+ eevee volumetric render bug 001.blend](https://archive.blender.org/developer/F13580972/blender_3.2__eevee_volumetric_render_bug_001.blend) Thank you for your time and development!

Added subscriber: @MariusEugenMihai

Added subscriber: @MariusEugenMihai

#101941 was marked as duplicate of this issue

#101941 was marked as duplicate of this issue

#101620 was marked as duplicate of this issue

#101620 was marked as duplicate of this issue
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

I can confirm the difference. But it runs a bit too slow for me to debug this, so I will leave that to someone else.
It appears to me that some of the objects that are disabled in render also have their volume objects disabled in render.

I can confirm the difference. But it runs a bit too slow for me to debug this, so I will leave that to someone else. It appears to me that some of the objects that are disabled in render also have their volume objects disabled in render.

Hi Omar, thank you for the quick reply! The mesh objects used for the mesh to volume modifier of the volume objects are, indeed, hidden from render. But this is desired (as otherwise the mesh objects themselves would also be rendered), and it doesn't affect the final render in Blender 3.1.2, thus behaving as expected. The problem is only in newer versions of Blender.

Hi Omar, thank you for the quick reply! The mesh objects used for the mesh to volume modifier of the volume objects are, indeed, hidden from render. But this is desired (as otherwise the mesh objects themselves would also be rendered), and it doesn't affect the final render in Blender 3.1.2, thus behaving as expected. The problem is only in newer versions of Blender.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

I can confirm the problem.
It looks like an old regression.
Here is a simplified file.

eevee_volumetric_render_bug-3_2.blend

(I will bisect at another time)

I can confirm the problem. It looks like an old regression. Here is a simplified file. [eevee_volumetric_render_bug-3_2.blend](https://archive.blender.org/developer/F13582050/eevee_volumetric_render_bug-3_2.blend) (I will bisect at another time)
Germano Cavalcante changed title from Blender 3.3 - volumetrics rendered in Eevee have image errors not present when previewing in viewport to Regression: the volume obtained from 'Mesh to Volume' gets wrong transformation in Eevee's render 2022-09-29 03:04:52 +02:00
Germano Cavalcante changed title from Regression: the volume obtained from 'Mesh to Volume' gets wrong transformation in Eevee's render to Regression: when the scene has multiple volumes, some of them get wrong transformation in Eevee's render 2022-10-05 20:46:43 +02:00

Added subscriber: @Haddas

Added subscriber: @Haddas

Added subscriber: @Rui-huang

Added subscriber: @Rui-huang
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Also happens in viewport rendering. I expect the transform matrices. Also able to reproduce inside the viewport by limiting the number of samples to 1 and switch from workbench to material mode.

Also happens in viewport rendering. I expect the transform matrices. Also able to reproduce inside the viewport by limiting the number of samples to 1 and switch from workbench to material mode.
Member

Added subscriber: @pragma37

Added subscriber: @pragma37
Miguel Pozo self-assigned this 2022-11-24 20:02:51 +01:00

This issue was referenced by f32939af53

This issue was referenced by f32939af53a110365a7563e9a43cba6423f8e94a

This issue was referenced by b918c079da

This issue was referenced by b918c079daf591ce95d0951a6914f9d80c69ffcb
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
6 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#101402
No description provided.