Renderings vom 2.9 LTS produce different results than 3.0 #93710
Labels
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93710
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12
Blender Version
Broken: version: 3.0
Worked: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash:
a791bdabd0
Short description of error
Render looks broken in 3.0 with denoising
Exact steps for others to reproduce the error
Download https://drive.google.com/file/d/10VwtBGw_wD3nBIFMGLUW8qooYDEs8sta/view?usp=sharing
Render it with the settings in that exact same resolution with denoising enablebed. The denoised image hast some strange light shining on the humans in the very front row. the noisy image does not have that. It works as expected in 2.9 LTS
This image shows the artifact. It's the "yellow" arms in the bottom of the image that only shows up after denoising.
Here is a simplified file and set of steps provided by @Alaska
Added subscriber: @DMan
#95814 was marked as duplicate of this issue
Added subscribers: @pmoursnv, @Alaska
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
I am able to reproduce this issue on my setup. However I can't figure out what's wrong because if I enable
Denoising Data
so I can look at it and investigate what's wrong, the issue goes away.Here is an image showing the artifacts (Notice that the people in the bottom portion of the image have yellow "glowing" arms):
CC @pmoursnv as it appears to be limited to the OptiX denoiser.
System Information
Operating system: Linux-5.15.0-2-amd64-x86_64-with-glibc2.32 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44
Blender version: 3.1.0 Alpha, branch: master, commit date: 2021-12-04 01:26, hash:
5ef5a9fc24
Added subscriber: @Sergey
I will also CC @Sergey because upon further testing the issue mostly disappears if
Use tiling
is disabled or the tile size is increased to cover the entire image.Note: I also tested with Blender 3.0 and the same thing I've noticed also occur there.
I have simplified the file and got some steps to reproduce it from scratch.
9464 x 4320
(I couldn't reproduce the issue with other render resoltuions)Adaptive Sampling
is on. You can reduce theMax Samples
parameter to something like 64 to speed up renders.OptiX
with the passes set toAlbedo and Normal
Use Tiling
is enabled and the tile size is less than the render resolution.Render Properties
tab and enable ONLY these render passes.Here is a file with steps 1-6 done for you.
#93710 Simplified.blend
The artifact is the horizontal line near the top of this image:
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
So the problem here is a traditional case of integer overflow. What is happening is that for denoising, Cycles loads the entire huge image into a GPU buffer. Since
1766549418
this now theoretically works with the OptiX denoiser by splitting up this image buffer into smaller tiles that are denoised separately. But there is a catch: thewidth
,height
androwStrideInBytes
values passed to the denoiser are 32-bit integers and unfortunately there is code to calculate the size of the entire image by multiplyingheight
(or a y coordinate close to that) androwStrideInBytes
. In this case the result is larger than what a 32-bit integer can hold and therefore overflows, causing the denoiser to read/write data at bogus locations, which shows up as artifacts.rowStrideInBytes
is affected by the width of the image and how many render passes are active, hence why the problem goes away if you reduce the width or disable enough render passes (including hidden render passes that one does not select in the GUI, e.g. enabling auto tiling adds a hidden render pass, adaptive sampling adds two hidden render passes). To fix this the calculation will need to be done in 64-bit (by casting to 64-bit before multiplying).Unfortunately this needs fixing in both Cycles and inside the driver, so it's not a quick thing to do ...
Added subscriber: @Raimund58
Added subscriber: @Wovchick
Added subscriber: @Renderbicks
@pmoursnv, Think is better (for the time being, at least) copy an implementation of the tiled denoiser to
optix/device_impl.cpp
so that we don't bump driver version requirement.Additionally to the integer overflow in the
optixUtilDenoiserInvokeTiled
we might have an overflow in the denoiser related kernels. I've tried addressing those, but is only the first tile which is denoised correctly. There is something I am missing and wouldn't mind a second pair of eyes. Attached current state of the patch. It is a bit excessive on int64 usage in theoptixUtilDenoiserInvokeTiled
, in theory should be enough to cast before multiplication, I was just trying to eliminate any doubt of me missing some overflow.optix_int_overflow.patch
I was able to get rid of the artifacts with just this patch and a driver that has the driver-side fixes (they made it into the last r510 release, so need at least Windows 511.79 or Linux 510.54):
But had last tried this a while ago, and had since been waiting for the driver to release, so will need to recheck too.
Have you also tested the latest Studio driver 511.65?
Like I said, you need at least 511.79 on Windows, 511.65 is too old.
This issue was referenced by
8cdee3a6d4
Changed status from 'Confirmed' to: 'Resolved'