Cycles rendering, packed images render differently from unpacked #44643

Closed
opened 2015-05-09 15:23:01 +02:00 by MasterOfCode1986 · 12 comments

System Information
Windows 64 bit, NVIDIA 750M Blender Version: 2.74.5 eb81153
also confirmed on:
Linux 64-bit, CPU rendering, Blender Version: 2.74 b50c6e3

Blender Version
Broken: Blender Version: 2.74.5 eb81153 , also Blender Version: 2.74 b50c6e3

Short description of error
If textures get packed into the .blend file, they get distorted in a way that the uv seams become visible (although the textures itself do not have seams). This is especially noticable with normal maps.

Exact steps for others to reproduce the error
I have provided an example .blend as well as example textures. Download the .blend and the textures seperately. First, make sure, you have "automatically pack in .blend" (under File > External Data) unchecked. In the shader, connect the normal map (texture node, set to Non-Color-Data) with the glossy shader, using a normal map node. Now save your file and render or use render preview. The texture won't show seams.

Then check "automatically pack into .blend". Blender will tell you that it has packed one file - the normal map. Now render. You will see that the texture has gotten seams where the seams were set for unwrapping. You can use the linked color map to make this more visible. Please use an HDRI for lighting to view the error better.

Test .blend file: blender_bug_test.blend
Normal map: Material_Normal_OpenGL.png
Color map: Material_Base_Color.png

**System Information** Windows 64 bit, NVIDIA 750M Blender Version: 2.74.5 eb81153 also confirmed on: Linux 64-bit, CPU rendering, Blender Version: 2.74 b50c6e3 **Blender Version** Broken: Blender Version: 2.74.5 eb81153 , also Blender Version: 2.74 b50c6e3 **Short description of error** If textures get packed into the .blend file, they get distorted in a way that the uv seams become visible (although the textures itself do not have seams). This is especially noticable with normal maps. **Exact steps for others to reproduce the error** I have provided an example .blend as well as example textures. Download the .blend and the textures seperately. First, make sure, you have "automatically pack in .blend" (under File > External Data) unchecked. In the shader, connect the normal map (texture node, set to Non-Color-Data) with the glossy shader, using a normal map node. Now save your file and render or use render preview. The texture won't show seams. Then check "automatically pack into .blend". Blender will tell you that it has packed one file - the normal map. Now render. You will see that the texture has gotten seams where the seams were set for unwrapping. You can use the linked color map to make this more visible. Please use an HDRI for lighting to view the error better. Test .blend file: [blender_bug_test.blend](https://archive.blender.org/developer/F171863/blender_bug_test.blend) Normal map: ![Material_Normal_OpenGL.png](https://archive.blender.org/developer/F171864/Material_Normal_OpenGL.png) Color map: ![Material_Base_Color.png](https://archive.blender.org/developer/F171866/Material_Base_Color.png)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @sharazam

Added subscriber: @sharazam

#53902 was marked as duplicate of this issue

#53902 was marked as duplicate of this issue
Sergey Sharybin was assigned by Bastien Montagne 2015-05-09 16:46:59 +02:00

Added subscribers: @ThomasDinges, @MartijnBerger, @mont29

Added subscribers: @ThomasDinges, @MartijnBerger, @mont29

Added subscriber: @brecht

Added subscriber: @brecht

You can set the color space to "Linear" instead of "sRGB" for the normal map image in the image editor to solve this.

You can set the color space to "Linear" instead of "sRGB" for the normal map image in the image editor to solve this.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Currently packed images are following color management rules from blender while non-packed images uses kinda simplified color management implemented in Cycles. This causes Color Space from the node to be ignored for packed images.

We could try making it so packed images are also aware of color management settings in the node, but that'd make color pipeline even more obscure. Proper way would be to implement same CM pipeline in Cycles, so it all becomes consistent in all areas of blender. This is already in our TODO list tho.

So thanks for the report, but improving this situation is already on the list, and meanwhile just use Image datablock CM settings if they're packed.

Currently packed images are following color management rules from blender while non-packed images uses kinda simplified color management implemented in Cycles. This causes Color Space from the node to be ignored for packed images. We could try making it so packed images are also aware of color management settings in the node, but that'd make color pipeline even more obscure. Proper way would be to implement same CM pipeline in Cycles, so it all becomes consistent in all areas of blender. This is already in our TODO list tho. So thanks for the report, but improving this situation is already on the list, and meanwhile just use Image datablock CM settings if they're packed.

Added subscribers: @Renderbicks, @lichtwerk, @SteffenD

Added subscribers: @Renderbicks, @lichtwerk, @SteffenD

Just a reminder: This bug still exist in the latest builds.

Just a reminder: This bug still exist in the latest builds.

I found the issue. In Data-Blocks the Color Space Settings of the non-color textures is set to sRGB. Setting them to Non-Color will fix the issue.

180912_Packed_Non-Color_Images_Issue.png

I found the issue. In Data-Blocks the Color Space Settings of the non-color textures is set to sRGB. Setting them to Non-Color will fix the issue. ![180912_Packed_Non-Color_Images_Issue.png](https://archive.blender.org/developer/F4673210/180912_Packed_Non-Color_Images_Issue.png)

Here's the scene with the issue. The original non-packed scene renders fine. In the node-tree the textures "apple_roughness.png" and "apple_normal.png" are set to "non-color". But when packed the "Color Space Setting" in the "Data-Blocks" is set to sRGB. Setting to "Non-Color" will fix the issue.

Conclusion: The "Color Space Setting" must be set to the color space of the texture nodes.

RB180125_BugReport_2.79.0-9b32248.zip

Here's the scene with the issue. The original non-packed scene renders fine. In the node-tree the textures "apple_roughness.png" and "apple_normal.png" are set to "non-color". But when packed the "Color Space Setting" in the "Data-Blocks" is set to sRGB. Setting to "Non-Color" will fix the issue. Conclusion: The "Color Space Setting" must be set to the color space of the texture nodes. [RB180125_BugReport_2.79.0-9b32248.zip](https://archive.blender.org/developer/F4673232/RB180125_BugReport_2.79.0-9b32248.zip)
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#44643
No description provided.