Weird bake results with non integer color values #47727

Closed
opened 2016-03-08 21:06:36 +01:00 by Vitor Balbio · 23 comments

System Information
Win7 64
Geforce GTX 960

Blender Version
Broken: (example: 2.77 RC2)

Short description of error
Baking Diffuse and Glossy channels we get weird results when your color need to use the float precision.

Example:
Baking with color (1,0,0) in Diffuse BSDF Node:
http://puu.sh/nzvPw/952908aecc.jpg

Baking with color (1,0.1,.01) in Diffuse BSDF Node:
http://puu.sh/nzvPw/952908aecc.jpg

That bug seams to happen too with the Glossy pass using Glossy BSDF Node.

Exact steps for others to reproduce the error
Change the current active node conected to the output
Change the pass that you want to bake.
Check the results

BugDiffuse.blend

**System Information** Win7 64 Geforce GTX 960 **Blender Version** Broken: (example: 2.77 RC2) **Short description of error** Baking Diffuse and Glossy channels we get weird results when your color need to use the float precision. Example: Baking with color (1,0,0) in Diffuse BSDF Node: http://puu.sh/nzvPw/952908aecc.jpg Baking with color (1,0.1,.01) in Diffuse BSDF Node: http://puu.sh/nzvPw/952908aecc.jpg That bug seams to happen too with the Glossy pass using Glossy BSDF Node. **Exact steps for others to reproduce the error** Change the current active node conected to the output Change the pass that you want to bake. Check the results [BugDiffuse.blend](https://archive.blender.org/developer/F289071/BugDiffuse.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @vitorbalbio-3

Added subscriber: @vitorbalbio-3
Author

The link to the wrong result:
http://puu.sh/nzwf2/7a5db52513.jpg

The link to the wrong result: http://puu.sh/nzwf2/7a5db52513.jpg

Added subscriber: @dfelinto

Added subscriber: @dfelinto

I can't reproduce the issue on OSX ec99778 (master - own build)

I can't reproduce the issue on OSX ec99778 (master - own build)
Author

I'm still getting this problem here with both GPU and CPU render.
Win7 x64
GTX 960 4GB
rev 02cabda

I'm still getting this problem here with both GPU and CPU render. Win7 x64 GTX 960 4GB rev 02cabda
Author

Another .blend example with this problem. Just change the Diffuse Node, bake and check the results. I could confirm that this problem was happening in Blender 2.76 also.
Bug.blend

Another .blend example with this problem. Just change the Diffuse Node, bake and check the results. I could confirm that this problem was happening in Blender 2.76 also. [Bug.blend](https://archive.blender.org/developer/F289523/Bug.blend)

Does it happen every single time? Or is it only eventually?

Does it happen every single time? Or is it only eventually?

Added subscriber: @mont29

Added subscriber: @mont29
Author

Every single time.
Also why that was marked as "Incomplete"? It seams a very completed report to me.
Bye!

Every single time. Also why that was marked as "Incomplete"? It seams a very completed report to me. Bye!

Incomplete also means 'waiting further info from reporter'…

Incomplete also means 'waiting further info from reporter'…

Added subscriber: @Sergey

Added subscriber: @Sergey

You are only baking indirect light component which is not supposed to have any color information in it. So your expectation of wrong and correct baking results are inverted.

Will commit fix which makes sure light pass gets properly divided by color shortly.

You are only baking indirect light component which is not supposed to have any color information in it. So your expectation of wrong and correct baking results are inverted. Will commit fix which makes sure light pass gets properly divided by color shortly.

This issue was referenced by f74c7fcca2

This issue was referenced by f74c7fcca2f9e2603b426fb5c0400f30b4b9ff86

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscribers: @brecht, @robertm

Added subscribers: @brecht, @robertm

I can reproduce it on Debian.
But the patch doesn't fix the problem.
Before the patch the direct light was buggy.
After the patch the indirect light is buggy.

@Sergey As I understand it indirect light has to carry color information from surface to surface.
About direct light I'm not sure. It was something like object color + AO, as I remember.
I'm sure @brecht will correct me.

I can reproduce it on Debian. But the patch doesn't fix the problem. Before the patch the direct light was buggy. After the patch the indirect light is buggy. @Sergey As I understand it indirect light has to carry color information from surface to surface. About direct light I'm not sure. It was something like object color + AO, as I remember. I'm sure @brecht will correct me.

Indirect looks correct to me. It's still red, but that's because it's only showing light reflected off red surfaces. If you place the object in an environment with different colored surfaces those colors will show up in the indirect pass too. Direct light can have colors too if you use colored lamps.

Indirect looks correct to me. It's still red, but that's because it's only showing light reflected off red surfaces. If you place the object in an environment with different colored surfaces those colors will show up in the indirect pass too. Direct light can have colors too if you use colored lamps.

Seems that baking produces wrong results only for the RGB(1; 0; 0) diffuse color case.
The intermediate values are ok.

Seems that baking produces wrong results only for the RGB(1; 0; 0) diffuse color case. The intermediate values are ok.

That's what Sergey's commit is supposed to fix, are you sure you're using a build with the fix included? The ones on builder.blender.org don't include the fix yet.

That's what Sergey's commit is supposed to fix, are you sure you're using a build with the fix included? The ones on builder.blender.org don't include the fix yet.

Yes I compiled it myself, hash 89df672.
Hmm, thats strange: To produce correct indirect diffuse color, all RGB channels have to be non-zero.
If only one channel is non-zero then the result is always grey. (although there are different colored objects that should reflect their light onto the baked object)
Can someone confirm this?

Yes I compiled it myself, hash 89df672. Hmm, thats strange: To produce correct indirect diffuse color, all RGB channels have to be non-zero. If only one channel is non-zero then the result is always grey. (although there are different colored objects that should reflect their light onto the baked object) Can someone confirm this?

Sorry for the noise. I came to the conclusion that my understanding of correct and incorrect is wrong.

Sorry for the noise. I came to the conclusion that my understanding of correct and incorrect is wrong.

This issue was referenced by blender/cycles@d3ca7f1eae

This issue was referenced by blender/cycles@d3ca7f1eaeea906bdf32dba6b49d87cf150c48c0
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
7 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#47727
No description provided.