Maniphest T39422

Stencil maps ignore normal maps
Closed, Archived

Assigned To
Sergey Sharybin (sergey)
Authored By
James Thompson (megatrousers)
Mar 26 2014, 1:40 AM
Tags
  • BF Blender
Subscribers
James Thompson (megatrousers)
Kévin Dietrich (kevindietrich)
Massimiliano Puliero (mmaaxx)
Sergey Sharybin (sergey)

Description

System Information
Win 7 64bit
GF 560ti 2gb

Blender Version
Broken: (example: 2.70 19e627c
Worked: (optional)

Short description of error
When using a stack of textures with painted masks (stencils), normal maps are unaffected so both are fully visible.
Example, in the attached blend, the brick pattern is visible via the interaction of specular highlights with its normal map, even in areas that should only show moss. The other maps - diffuse, spec and gloss, appear to work correctly.
The bug presents in the viewport (GLSL), game engine and blender internal renderer.

Exact steps for others to reproduce the error

  1. Open .blend file.

2 Look at screen :)

Event Timeline

James Thompson (megatrousers) created this task.Mar 26 2014, 1:40 AM
James Thompson (megatrousers) raised the priority of this task from to 90.
James Thompson (megatrousers) updated the task description.
James Thompson (megatrousers) added a project: BF Blender.
James Thompson (megatrousers) edited a custom field.
James Thompson (megatrousers) added a subscriber: James Thompson (megatrousers).
Kévin Dietrich (kevindietrich) changed the task status from Unknown Status to Unknown Status.Mar 26 2014, 8:22 PM
Kévin Dietrich (kevindietrich) claimed this task.

This is not a bug, the stencil texture in the stack only affects the textures below it. For example, in your setup, the Brick_Speck map also affects the moss, while it shouldn't.

The only way to get around that, in the current system, would be through a node based system (Texture or Shader nodes).

James Thompson (megatrousers) added a comment.Mar 27 2014, 1:08 AM

Are you sure? Maybe I'm missing something.
I adjusted the mask and the brick spec map to make things clearer.
In the attached screenshot, I've disabled normal and gloss maps. I see no hint of the brick spec in the moss area - I know its still there as you say, because disabling moss spec reveals brick spec completely in spite of the mask, but with the mask and both spec channels active, the moss spec appears to completely replace brick spec in the appropriate areas. This doesn't happen for normal maps.

Kévin Dietrich (kevindietrich) changed the task status from Unknown Status to Unknown Status.EditedMar 27 2014, 5:48 PM

Actually it appears to be a known limitation, see http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Rendering and its report T26184.

Kévin Dietrich (kevindietrich) removed Kévin Dietrich (kevindietrich) as the assignee of this task.Mar 27 2014, 5:54 PM
Kévin Dietrich (kevindietrich) added a subscriber: Kévin Dietrich (kevindietrich).
Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.Apr 10 2014, 7:17 PM
Sergey Sharybin (sergey) claimed this task.

Stencils might be improved, but this indeed seems to be a known TODO.

Brecht Van Lommel (brecht) added a subscriber: Massimiliano Puliero (mmaaxx).