Inconsistent behaviour of Texture Baker #32537

Closed
opened 2012-09-11 18:39:05 +02:00 by Gaia Clary · 13 comments
Member

%%%The attached .blend file contains a simple cube with a material based on a magic texture and an image texture.
the image texture is also assigned to the cube as UV texture. This example uses GLSL mode.

The attached .blend file also contains a step by step description how to reproduce the (inconsistent?) behaviour.

The system actually behaves as i expect it to behave as long as i do NOT store it as .blend file.
When i store it as .blend file and reopen the stored .blend file, then the behaviour of the bake tool changes.

I also recorded a video to demonstrate what I see in my computer as i am unsrure if maybe i just see
some error due to a wrong build:

http://www.youtube.com/watch?v=yNxjz67Q4sE&feature=youtu.be

If anything is unclear, please ask me back. I tried hard to explain the issue in the nlender irc this afternoon.
And it looks like i am confusing myself with that issue. Please if its not a bug, can you give me a short
explanation what is going wrong here ?

thanks!

  • Gaia-%%%
%%%The attached .blend file contains a simple cube with a material based on a magic texture and an image texture. the image texture is also assigned to the cube as UV texture. This example uses GLSL mode. The attached .blend file also contains a step by step description how to reproduce the (inconsistent?) behaviour. The system actually behaves as i expect it to behave as long as i do NOT store it as .blend file. When i store it as .blend file and reopen the stored .blend file, then the behaviour of the bake tool changes. I also recorded a video to demonstrate what I see in my computer as i am unsrure if maybe i just see some error due to a wrong build: http://www.youtube.com/watch?v=yNxjz67Q4sE&feature=youtu.be If anything is unclear, please ask me back. I tried hard to explain the issue in the nlender irc this afternoon. And it looks like i am confusing myself with that issue. Please if its not a bug, can you give me a short explanation what is going wrong here ? thanks! - Gaia-%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%The issue is that using a texture for rendering and baking causes a feedback loop (baking to same image thats being rendered).

This wasn't being detected, it still fails but it reports there is a feedback loop now.

fixed r50541.

closing.%%%

%%%The issue is that using a texture for rendering and baking causes a feedback loop (baking to same image thats being rendered). This wasn't being detected, it still fails but it reports there is a feedback loop now. fixed r50541. closing.%%%
Author
Member

%%%There is still something wrong:

  • open the attached file "cube_feedback_loop.blend"
the cube displays black (expected)
  • Hover the mouse over the Bake button.
  • Click the Bake button but do NOT(!) move the mouse.
 The texture renders black, no error reported.
  • Wait for some time (seconds, minutes, whatever ...) without moving the mouse.
  • Move the mouse a tiny bit.
An Error message appears in the info bar: "Feedback loop detected"

I expect to see the error message right after i clicked on the Bake-Button,
and independent from mouse moves.

My environment is:

  • Windows 7 64 bit (32 bit blender release build with cmake and visual c++ express)
  • blender 50577
  • nvidia gtx480
    %%%
%%%There is still something wrong: - open the attached file "cube_feedback_loop.blend" ``` the cube displays black (expected) ``` - Hover the mouse over the Bake button. - Click the Bake button but do NOT(!) move the mouse. ``` The texture renders black, no error reported. ``` - Wait for some time (seconds, minutes, whatever ...) without moving the mouse. - Move the mouse a tiny bit. ``` An Error message appears in the info bar: "Feedback loop detected" ``` I expect to see the error message right after i clicked on the Bake-Button, and independent from mouse moves. My environment is: - Windows 7 64 bit (32 bit blender release build with cmake and visual c++ express) - blender 50577 - nvidia gtx480 %%%

%%%This sounds like a UI glitch - rather than an issue with baking, keeping open since its still a bug.%%%

%%%This sounds like a UI glitch - rather than an issue with baking, keeping open since its still a bug.%%%

%%%fixed r50936.%%%

%%%fixed r50936.%%%
Member

%%%I will revert this, and assign to self for investigation. The 'add mousemove' in a thread job is not the solution, it is causing modal tools to go bezerk.

(for example grab gets 20+ mousemoves per second now when a preview render job runs).%%%

%%%I will revert this, and assign to self for investigation. The 'add mousemove' in a thread job is not the solution, it is causing modal tools to go bezerk. (for example grab gets 20+ mousemoves per second now when a preview render job runs).%%%

%%%@Ton, I cant redo 20+ mouse moves per second problem, Running with --debug-jobs, shows one job per preview and its not more then one a second, also good to give revisions - revert was r56883.

Note that this is calling from the main thread (no running in thread job), so no threading issues here.

Ill check on issue reported in commit log of r56883.%%%

%%%@Ton, I cant redo 20+ mouse moves per second problem, Running with --debug-jobs, shows one job per preview and its not more then one a second, also good to give revisions - revert was r56883. Note that this is calling from the main thread (no running in thread job), so no threading issues here. Ill check on issue reported in commit log of r56883.%%%

%%%Ok, can redo the feedback loop bug now,
Checking on this simple example and I get an unrelated crash in r58177 (press bake in cube_feedback_loop.blend 3x times -> crash)%%%

%%%Ok, can redo the feedback loop bug now, Checking on this simple example and I get an unrelated crash in r58177 (press bake in cube_feedback_loop.blend 3x times -> crash)%%%

%%%fixed crash mentioned above.

Checking on the UI glitch further. This seems to be more a UI/notifier/listener bug the related to baking.

Attached a patch 'notify_report.diff', This should work but doesn't, the listener isn't handling the notifier until after a mouse-move.%%%

%%%fixed crash mentioned above. Checking on the UI glitch further. This seems to be more a UI/notifier/listener bug the related to baking. Attached a patch 'notify_report.diff', This should work but doesn't, the listener isn't handling the notifier until after a mouse-move.%%%

Added subscriber: @Sergey

Added subscriber: @Sergey

@ideasman42, what is the status here?

@ideasman42, what is the status here?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

The remaining issue is a small UI glitch, https://developer.blender.org/T32537#5 -

Issue remains but this is minor enough I think its not useful to keep the issue open.

The remaining issue is a small UI glitch, https://developer.blender.org/T32537#5 - Issue remains but this is minor enough I think its not useful to keep the issue open.
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
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
4 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#32537
No description provided.