Game Editing > Video Channel
Circular Reference in Texture Stack error
(1/1)
kat:
How to fix the "Circular reference in texture stack" error message when baking Normal maps to low resolution meshes.
Problem
When baking a Normal map from models where the low resolution mesh has been UV mapped and textured, the "Texture Bake" process will fail showing an incomplete render in the UV/Image Editor and an error message in the main application Header/Info bar which reads "Circular reference in texture stack", temporarily replacing text relating to the Scene (note: for Blender 2.64 to 2.67 the message displayed read as "Feedback loop detected", else for Blender 2.68 and above it reads as "Circular....").
Information
Due to a change introduced in Blender 2.64, the Texture Bake process for rendering Normal Maps requires an empty Texture slot[1] for successful map generation. If not and the slot contains data, usually in the form of a bitmap image or generated UV Grid mapped to the UV/object, the process fails because it cannot overwrite data already present in the slot (the slot is occupied); essentially the process 'loops' because it's trying to both 'read' data that's already present, and 'write' (overwrite) at the same time (as was the previous behavior available in Blender 2.63 and below). In other words the process of baking Normal maps is akin to generating a 'UV Grid' texture, the 'virtual' texture data (the results of a bake or 'generation process') is the 'image' associated with the Texture slot.
Solution
To fix the problem two steps should be taken. 1) if the low resolution mesh has a Texture slot active in Texture Properties and it contains a texture (bitmap) image, deactivate it by clicking the checkbox to the right of the listing (shown below, third from the top). And 2) create a new slot, set it to "Image or Movie" and make sure it's selected (active) before then baking the Normal map (shown below, third from the top again). This should then allow Blender to generate the temporary data it needs to the empty slot which can be saved once the process is complete. Once the image is saved it should not be necessary to repeat the above, as data can be rewritten to the same slot and saved as required [2].
Navigation
[0] Message Index
Go to full version