GPU+Adaptive sampling Bakes incomplete textures #94355

Closed
opened 2021-12-24 00:56:49 +01:00 by TaylorS · 17 comments

System Information
Operating system: Windows 11 Pro N - Version 10.0.22000 - Build 22000
Graphics card: MSI Nvidia RTX 2070 Super

Blender Version
Broken: The latest 3.1.0 Alpha, and the latest Stable 3.0
Worked: Last I tested that worked was the Stable 2.93

Short description of error
When I bake a texture with GPU + Adaptive sampling that directly uses Vectors as Colors, the bakes are incomplete, or buggy.
When I dont use texture coordinate, and I just use the material color, it bakes fine.

Exact steps for others to reproduce the error

CPU Cuda Optix
Blender 2.93.7 image.png image.png Not available
Blender 3.0 image.png image.png image.png
Blender 3.1 image.png image.png image.png
**System Information** Operating system: Windows 11 Pro N - Version 10.0.22000 - Build 22000 Graphics card: MSI Nvidia RTX 2070 Super **Blender Version** Broken: The latest 3.1.0 Alpha, and the latest Stable 3.0 Worked: Last I tested that worked was the Stable 2.93 **Short description of error** When I bake a texture with GPU + Adaptive sampling that directly uses Vectors as Colors, the bakes are incomplete, or buggy. When I dont use texture coordinate, and I just use the material color, it bakes fine. **Exact steps for others to reproduce the error** - Open .blend file - Set device to GPU - Select `Noise Threshold` - Bake image textures of selected objects [Minecraft Skin Generator.blend](https://archive.blender.org/developer/F12773683/Minecraft_Skin_Generator.blend) | | CPU | Cuda | Optix | | -- | -- | -- | -- | |Blender 2.93.7 | ![image.png](https://archive.blender.org/developer/F12774269/image.png) |![image.png](https://archive.blender.org/developer/F12774266/image.png) | Not available | |Blender 3.0 | ![image.png](https://archive.blender.org/developer/F12774250/image.png) |![image.png](https://archive.blender.org/developer/F12774252/image.png) | ![image.png](https://archive.blender.org/developer/F12774255/image.png) | |Blender 3.1 | ![image.png](https://archive.blender.org/developer/F12774282/image.png) | ![image.png](https://archive.blender.org/developer/F12774275/image.png) | ![image.png](https://archive.blender.org/developer/F12774278/image.png) |
Author

Added subscriber: @MisterSirCode-4

Added subscriber: @MisterSirCode-4

#95172 was marked as duplicate of this issue

#95172 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Sometimes it seems to bake specific faces of the model perfectly. Sometimes theyll be darkened, sometimes weird lines and missing pixels will appear

Hi, thanks for the report. I am unable to see any differences between 2.93 and 3.1.0

2.93.0 3.1.0
prog.PNG prog.PNG

Perhaps an issue for specific GPUs only? (or I am missing something to reproduce)


System Information

Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
> Sometimes it seems to bake specific faces of the model perfectly. Sometimes theyll be darkened, sometimes weird lines and missing pixels will appear Hi, thanks for the report. I am unable to see any differences between 2.93 and 3.1.0 | 2.93.0 | 3.1.0 | | -- | -- | | ![prog.PNG](https://archive.blender.org/developer/F12774164/prog.PNG) | ![prog.PNG](https://archive.blender.org/developer/F12774166/prog.PNG) | Perhaps an issue for specific GPUs only? (or I am missing something to reproduce) --- **System Information** ```Operating system : Windows-10-10.0.18362-SP0 64 Bits Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Author

In #94355#1278015, @PratikPB2123 wrote:

Sometimes it seems to bake specific faces of the model perfectly. Sometimes theyll be darkened, sometimes weird lines and missing pixels will appear

Hi, thanks for the report. I am unable to see any differences between 2.93 and 3.1.0
| 2.93.0 | 3.1.0 |
| prog.PNG | prog.PNG |

Perhaps an issue for specific GPUs only? (or I am missing something to reproduce)

Then what can I do? I have no other options.. Ive updated drivers, Ive deleted caches and reinstalled blender, and another user experienced the same problem on their system using my file. No one I ask has any clue what to do...

I really need to be able to bake... its just so irritating..

> In #94355#1278015, @PratikPB2123 wrote: >> Sometimes it seems to bake specific faces of the model perfectly. Sometimes theyll be darkened, sometimes weird lines and missing pixels will appear > Hi, thanks for the report. I am unable to see any differences between 2.93 and 3.1.0 > | 2.93.0 | 3.1.0 | > | ![prog.PNG](https://archive.blender.org/developer/F12774164/prog.PNG) | ![prog.PNG](https://archive.blender.org/developer/F12774166/prog.PNG) | > > Perhaps an issue for specific GPUs only? (or I am missing something to reproduce) Then what can I do? I have no other options.. Ive updated drivers, Ive deleted caches and reinstalled blender, and another user experienced the same problem on their system using my file. No one I ask has any clue what to do... I really need to be able to bake... its just so irritating..

Added subscriber: @JoranKlaui

Added subscriber: @JoranKlaui

I'm able to reproduce this issue on both Blender 3.0 and 3.1. The issue might be specific to Nvidia GPUs.

CPU Cuda Optix
Blender 2.93.7 image.png image.png Not available
Blender 3.0 image.png image.png image.png
Blender 3.1 image.png image.png image.png

System Information

Operating system : Linux-5.10.84-1-MANJARO-x86_64-with-glibc2.33
Graphics card : NVIDIA GeForce RTX 2060/PCIe/SSE2
Graphics driver : 4.5.0 NVIDIA 495.44
I'm able to reproduce this issue on both Blender 3.0 and 3.1. The issue might be specific to Nvidia GPUs. | | CPU | Cuda | Optix | | -- | -- | -- | -- | |Blender 2.93.7 | ![image.png](https://archive.blender.org/developer/F12774269/image.png) |![image.png](https://archive.blender.org/developer/F12774266/image.png) | Not available | |Blender 3.0 | ![image.png](https://archive.blender.org/developer/F12774250/image.png) |![image.png](https://archive.blender.org/developer/F12774252/image.png) | ![image.png](https://archive.blender.org/developer/F12774255/image.png) | |Blender 3.1 | ![image.png](https://archive.blender.org/developer/F12774282/image.png) | ![image.png](https://archive.blender.org/developer/F12774275/image.png) | ![image.png](https://archive.blender.org/developer/F12774278/image.png) | **System Information** ``` Operating system : Linux-5.10.84-1-MANJARO-x86_64-with-glibc2.33 Graphics card : NVIDIA GeForce RTX 2060/PCIe/SSE2 Graphics driver : 4.5.0 NVIDIA 495.44 ```

Unchecking 'Noise Threshold' in the render settings seems to fix the issue.

Cuda Optix
image.png image.png
Unchecking 'Noise Threshold' in the render settings seems to fix the issue. | Cuda | Optix | | -- | -- | | ![image.png](https://archive.blender.org/developer/F12774296/image.png) | ![image.png](https://archive.blender.org/developer/F12774294/image.png) |
Pratik Borhade changed title from Baking causes unstable and incomplete textures on 3.0 and 3.1 alpha, no matter render library or settings. to GPU+Adaptive sampling Bakes incomplete textures 2022-01-06 07:26:56 +01:00
Member

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

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

Added subscriber: @deadpin

Added subscriber: @deadpin
Member

@deadpin was able to reproduce this issue with GPU+Adaptive sampling so I will set its status to Confirmed

(Feel free to change the status. I personally can not reproduce)

@deadpin was able to reproduce this issue with GPU+Adaptive sampling so I will set its status to Confirmed (Feel free to change the status. I personally can not reproduce)

Added subscriber: @MaleneThyssen

Added subscriber: @MaleneThyssen

I suspect this is related. Baking textures (Combined) from a multi material object only the first material in the list bakes right. The next materials bakes a mix of the previous materials + their own. This happens in Blender 3.0 with GPU and Denoise/Noise Threshold on. If I turn off Denoise and Noise Threshold the textures will bake right, albeit a lot slower and more noisy of course (If i switch to Diffuse though - the issue is back with these settings too). Whether I use OptiX or OpenImageDenoise seems to make no difference. Switching the materials in the list it will still be the top material that works and the ones lover in the list will be messed up. If I bake in CPU I have no issue.

System info:

Blender version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557, type: release
build date: 2021-12-03, 00:44:02
platform: 'Windows-10-10.0.19043-SP0'
NVIDIA GeForce GTX 1070/PCIe/SSE2'
4.5.0 NVIDIA 472.84'

A few screenshots of the setup:
5f23e2823f42fd1b5e37079479d44062.png
c4d7d31b4c68c2d1cbd196454d032a6d.png
09ae6f122bbfaa10e7de0aaef7006d44.png
f685cdfd31ab4271614577d72f5317df.png

I posted this in a similar thread (i think?): https://developer.blender.org/T94217

I suspect this is related. Baking textures (Combined) from a multi material object only the first material in the list bakes right. The next materials bakes a mix of the previous materials + their own. This happens in Blender 3.0 with GPU and Denoise/Noise Threshold on. If I turn off Denoise and Noise Threshold the textures will bake right, albeit a lot slower and more noisy of course (If i switch to Diffuse though - the issue is back with these settings too). Whether I use OptiX or OpenImageDenoise seems to make no difference. Switching the materials in the list it will still be the top material that works and the ones lover in the list will be messed up. If I bake in CPU I have no issue. System info: --------------- Blender version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca3055776, type: release build date: 2021-12-03, 00:44:02 platform: 'Windows-10-10.0.19043-SP0' NVIDIA GeForce GTX 1070/PCIe/SSE2' 4.5.0 NVIDIA 472.84' A few screenshots of the setup: ![5f23e2823f42fd1b5e37079479d44062.png](https://archive.blender.org/developer/F12805547/5f23e2823f42fd1b5e37079479d44062.png) ![c4d7d31b4c68c2d1cbd196454d032a6d.png](https://archive.blender.org/developer/F12805550/c4d7d31b4c68c2d1cbd196454d032a6d.png) ![09ae6f122bbfaa10e7de0aaef7006d44.png](https://archive.blender.org/developer/F12805552/09ae6f122bbfaa10e7de0aaef7006d44.png) ![f685cdfd31ab4271614577d72f5317df.png](https://archive.blender.org/developer/F12805554/f685cdfd31ab4271614577d72f5317df.png) I posted this in a similar thread (i think?): https://developer.blender.org/T94217

This issue was referenced by blender/cycles@7e439d17ef

This issue was referenced by blender/cycles@7e439d17efcdcd5ee7483c7bb6572b0fffbf9a33

This issue was referenced by 04c3b08518

This issue was referenced by 04c3b085188616c375dd5ba3a0632665629b9208

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2022-01-24 19:26:32 +01:00

Added subscribers: @lictex_1, @lichtwerk, @brecht

Added subscribers: @lictex_1, @lichtwerk, @brecht
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#94355
No description provided.