Cycles Baking result does not show up #40709

Closed
opened 2014-06-19 18:29:49 +02:00 by Erich Brutus · 15 comments

System Information
Operating system and graphics card

Win 7 premium
GTX 670

Blender Version
Broken: 2.71 a19c1be

Short description of error

Add any texture to the material, create empty texture and make it active in the node editor, press bake, no errors but in the UV/Image editor it doesn't show the proper result, just a blank texture with alpha of 0

CubeBakeFail.blend

**System Information** Operating system and graphics card Win 7 premium GTX 670 **Blender Version** Broken: 2.71 a19c1be **Short description of error** Add any texture to the material, create empty texture and make it active in the node editor, press bake, no errors but in the UV/Image editor it doesn't show the proper result, just a blank texture with alpha of 0 [CubeBakeFail.blend](https://archive.blender.org/developer/F94760/CubeBakeFail.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ErichBrutus

Added subscriber: @ErichBrutus
Dalai Felinto was assigned by Bastien Montagne 2014-06-19 19:41:53 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Dalai, I’ll let you check on this one. :)

Dalai, I’ll let you check on this one. :)

@ErichBrutus If I try to bake your file I get: "Error: No active image found in material "Material" (0) for object "Cube""
Anyways, after initializing the image I'm getting the following error:

Assertion failed: (index >= 0 && index < width), function fetch, file blender/intern/cycles/kernel/./kernel_compat_cpu.h, line 42
The full backtrace log is P85

Your file ready to reproduce that is: CubeBakeFail2.blend

That said, there is something wrong with your file. How did you create it?
Here a file created from scratch that pretty much mimics what you were trying to do and it works: CubeBakeFail3.blend

[I can try with 2.71rc2 later, but for now I tested it with d43ba1b3 since it includes some fixes that were not merged into the 2.71rc branch yet]

@ErichBrutus If I try to bake your file I get: "Error: No active image found in material "Material" (0) for object "Cube"" Anyways, after initializing the image I'm getting the following error: Assertion failed: (index >= 0 && index < width), function fetch, file blender/intern/cycles/kernel/./kernel_compat_cpu.h, line 42 The full backtrace log is [P85](https://archive.blender.org/developer/P85.txt) Your file ready to reproduce that is: [CubeBakeFail2.blend](https://archive.blender.org/developer/F94775/CubeBakeFail2.blend) That said, there is something wrong with your file. How did you create it? Here a file created from scratch that pretty much mimics what you were trying to do and it works: [CubeBakeFail3.blend](https://archive.blender.org/developer/F94778/CubeBakeFail3.blend) [I can try with 2.71rc2 later, but for now I tested it with d43ba1b3 since it includes some fixes that were not merged into the 2.71rc branch yet]
Author

Well yes, it does say "...No active image found in material...", I didn't pack the empty image with the Blend file, just press new.

If I make it from scratch, then yes, it does work, it's just that I had a textured model in there previously, I deleted it and made it as simple as possible in order to figure out what was causing the error. Needless to say I couldn't figure it out. In a word, I can't reproduce it when opening a fresh file, I guess it will remain a mystery then.

Well yes, it does say "...No active image found in material...", I didn't pack the empty image with the Blend file, just press new. If I make it from scratch, then yes, it does work, it's just that I had a textured model in there previously, I deleted it and made it as simple as possible in order to figure out what was causing the error. Needless to say I couldn't figure it out. In a word, I can't reproduce it when opening a fresh file, I guess it will remain a mystery then.

@ErichBrutus did you created this file with blender from inbetween releases? (meaning after 2.70 but before 2.71rc)?

@ErichBrutus did you created this file with blender from inbetween releases? (meaning after 2.70 but before 2.71rc)?

Added subscriber: @brecht

Added subscriber: @brecht

The problem in this file is in the render layer, where it has exclude layers set and the object is excluded.

Do we want render layers to influence baking? I guess options like the material override, use hair and even these exclude layers could be useful for baking. But there should at least be a warning message if the object is excluded.

The problem in this file is in the render layer, where it has exclude layers set and the object is excluded. Do we want render layers to influence baking? I guess options like the material override, use hair and even these exclude layers could be useful for baking. But there should at least be a warning message if the object is excluded.

Do we want render layers to influence baking? I guess options like the material override, use hair and even these exclude layers could be useful for baking.

On the other hand we can only bake one layer, so for baking we assume "render_use_single_layer" to always be True. I'm not sure if this would be clear to the user.

> Do we want render layers to influence baking? I guess options like the material override, use hair and even these exclude layers could be useful for baking. On the other hand we can only bake one layer, so for baking we assume "render_use_single_layer" to always be True. I'm not sure if this would be clear to the user.

Right, well it seems reasonable to me to disable render layer settings for baking. It's not that useful.

Right, well it seems reasonable to me to disable render layer settings for baking. It's not that useful.

Added subscribers: @dfelinto, @ThomasDinges

Added subscribers: @dfelinto, @ThomasDinges

@dfelinto, any updates here?

@dfelinto, any updates here?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Moved to the TODO list: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Render#Baking
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
5 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#40709
No description provided.