3D View shading issue dependent on Normal map channel #48772

Closed
opened 2016-07-01 11:17:50 +02:00 by Jerry Yeung · 28 comments

Macbook Pro late 2013, Intel core i7 2,6 Ghz, 16 GB Ram
OS X El Capitan v10.11.5
Intel Iris Pro, NVIDIA GeForce GT 750M 2048 MB

Blender 2.77a official
Broken: 2.77a official, latest daily blender-2.77.0-git20160629.29a7310-x86_64
Worked: 2.76b

Shading in 3D View will brake when Normal Map channel is checked. I made a video here
https:*www.youtube.com/watch?v=fi_c4SfH2xI
Blender 2.77a and 2.76b running simultaneously.testfile.blend

Macbook Pro late 2013, Intel core i7 2,6 Ghz, 16 GB Ram OS X El Capitan v10.11.5 Intel Iris Pro, NVIDIA GeForce GT 750M 2048 MB Blender 2.77a official Broken: 2.77a official, latest daily blender-2.77.0-git20160629.29a7310-x86_64 Worked: 2.76b Shading in 3D View will brake when Normal Map channel is checked. I made a video here [https:*www.youtube.com/watch?v=fi_c4SfH2xI ](https:*www.youtube.com/watch?v=fi_c4SfH2xI) Blender 2.77a and 2.76b running simultaneously.[testfile.blend](https://archive.blender.org/developer/F319177/testfile.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Jerry_Yeung

Added subscriber: @Jerry_Yeung

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Tested in 2.77a on Linux, GeForce GTS 450 and its working properly.

Could you show the output of the console by running Blender from a terminal?
https://www.blender.org/manual/render/workflows/command_line.html#mac-osx

(GLSL errors may be printed there).

Tested in 2.77a on Linux, GeForce GTS 450 and its working properly. Could you show the output of the console by running Blender from a terminal? https://www.blender.org/manual/render/workflows/command_line.html#mac-osx (GLSL errors may be printed there).
Author

Nothing special happens in the Terminal. Even when I change the normal map channel.
This is the only output I get:
xxx-MBP:blender.app akirawillow$ /Users/akirawillow/Desktop/blender_2.77a/blender.app/Contents/MacOs/blender
found bundled python: /Users/akirawillow/Desktop/blender_2.77a/blender.app/Contents/MacOs/../Resources/2.77/python
read blend: /Users/xxx/Dropbox/xxx/Jobs/2016/xxx/3d_Assets/testfile.blend
^[^[^[^[^[^[Saved session recovery to '/tmp/quit.blend'

So if it's ok in Linux it seems to happen only on Mac. I tested it in Windows on the same machine and on another. Its working properly.

But Blender is somehow behaving awkward when it's started from the Terminal. It's impossible to control blender. The mouse seems to has an offset long way to the right. Well, but that's another issue though.

Nothing special happens in the Terminal. Even when I change the normal map channel. This is the only output I get: xxx-MBP:blender.app akirawillow$ /Users/akirawillow/Desktop/blender_2.77a/blender.app/Contents/MacOs/blender found bundled python: /Users/akirawillow/Desktop/blender_2.77a/blender.app/Contents/MacOs/../Resources/2.77/python read blend: /Users/xxx/Dropbox/xxx/Jobs/2016/xxx/3d_Assets/testfile.blend ^[^[^[^[^[^[Saved session recovery to '/tmp/quit.blend' So if it's ok in Linux it seems to happen only on Mac. I tested it in Windows on the same machine and on another. Its working properly. But Blender is somehow behaving awkward when it's started from the Terminal. It's impossible to control blender. The mouse seems to has an offset long way to the right. Well, but that's another issue though.

Added subscribers: @MikeErwin, @brecht

Added subscribers: @MikeErwin, @brecht

I can't reproduce this bug on OS X 10.11.5 with Intel Iris Graphics 6100. I also can't find a specific commit between 276b and 2.77a that could have caused this.

@MikeErwin, do you by any chance have OS X + NVidia to narrow down this bug to a specific commit?

I can't reproduce this bug on OS X 10.11.5 with Intel Iris Graphics 6100. I also can't find a specific commit between 276b and 2.77a that could have caused this. @MikeErwin, do you by any chance have OS X + NVidia to narrow down this bug to a specific commit?
Member

Yes my Mac is the previous year's model, with Intel HD 4000 + NVIDIA GeForce GT 650M. Will check it out.

Yes my Mac is the previous year's model, with Intel HD 4000 + NVIDIA GeForce GT 650M. Will check it out.
Member

Confirmed broken on nVidia + Mac.
Works fine on Intel + Mac same system.

Confirmed broken on nVidia + Mac. Works fine on Intel + Mac same system.
Member

Broken in the official 2.77 (no letter) release, so it was before that.

Broken in the official 2.77 (no letter) release, so it was before that.

Added subscriber: @Sergey

Added subscriber: @Sergey
Mike Erwin was assigned by Sergey Sharybin 2016-07-27 14:59:09 +02:00

Mike, since you're the only one who can reproduce the issue afraid you're the only candidate to fix it ;)

Mike, since you're the only one who can reproduce the issue afraid you're the only candidate to fix it ;)
Member

This broke between 2.75a and 2.76. Getting closer...

This broke between 2.75a and 2.76. Getting closer...
Member

Had to reboot into MacOS 10.9 to build older code with older XCode/SDK. Problem never appears on 10.9! Even with latest Blender 2.77a from web site.

Making a few test builds in 10.9 and running them on 10.11 narrows the problem:

1 Sept 2015 — WORKS
1 Oct 2015 — BROKEN

Should find the exact commit that broke things soon.

Had to reboot into MacOS 10.9 to build older code with older XCode/SDK. Problem never appears on 10.9! Even with latest Blender 2.77a from web site. Making a few test builds in 10.9 and running them on 10.11 narrows the problem: 1 Sept 2015 — WORKS 1 Oct 2015 — BROKEN Should find the exact commit that broke things soon.
Member

a9c5e1d9b7 from 17 Sept 2015

BLENDER_VERSION transition from 275 to 276 caused the break.

Is this a file versioning issue? Which only affects nVidia on MacOS 10.11??

Remember that 277 is also affected, so it seems like a VERSION > 275 problem.

@Jerry_Yeung can you confirm Blender 2.76 does work on your system? On mine 2.75 works but 2.76 is broken. Visually it's the exact same problem shown in your video.

a9c5e1d9b7 from 17 Sept 2015 BLENDER_VERSION transition from 275 to 276 caused the break. Is this a file versioning issue? Which only affects nVidia on MacOS 10.11?? Remember that 277 is also affected, so it seems like a VERSION > 275 problem. @Jerry_Yeung can you confirm Blender 2.76 **does** work on your system? On mine 2.75 works but 2.76 is broken. Visually it's the exact same problem shown in your video.
Author

@ Mike Erwin (merwin) Ok! I just tested it. Blender 2.76 works on my system!

@ Mike Erwin (merwin) Ok! I just tested it. Blender 2.76 works on my system!
Author

Added subscriber: @(Deleted)

Added subscriber: @(Deleted)
Member

@Jerry_Yeung In 2.76 go to Help > System Info and verify the NVIDIA GPU is active. I expected NVIDIA to be broken here, while Intel works fine.

On my laptop:

****
renderer:	'Intel HD Graphics 4000 OpenGL Engine'
vendor:		'Intel Inc.'
version:	'2.1 INTEL-10.14.73'

vs

renderer:	'NVIDIA GeForce GT 650M OpenGL Engine'
vendor:		'NVIDIA Corporation'
version:	'2.1 NVIDIA-10.10.13 310.42.25f01'

I use a tool called gfxCardStatus that lets you switch between the integrated and discrete GPU; it usually switches automatically.

@Jerry_Yeung In 2.76 go to Help > System Info and verify the NVIDIA GPU is active. I expected NVIDIA to be broken here, while Intel works fine. On my laptop: ```OpenGL **** renderer: 'Intel HD Graphics 4000 OpenGL Engine' vendor: 'Intel Inc.' version: '2.1 INTEL-10.14.73' ``` vs ``` renderer: 'NVIDIA GeForce GT 650M OpenGL Engine' vendor: 'NVIDIA Corporation' version: '2.1 NVIDIA-10.10.13 310.42.25f01' ``` I use a tool called gfxCardStatus that lets you switch between the integrated and discrete GPU; it usually switches automatically.
Author

@MikeErwin Mine looks like this when using Nvidia:

OpenGL


renderer: 'NVIDIA GeForce GT 750M OpenGL Engine'
vendor: 'NVIDIA Corporation'
version: '2.1 NVIDIA-10.10.10 310.42.25f01'

And this with integrated graphic:

renderer: 'Intel Iris Pro OpenGL Engine'
vendor: 'Intel Inc.'
version: '2.1 INTEL-10.14.66'

I'm using gfxCardStatus as well.
And Blender 2.76 works on both cards. Tried again with 2.77a and it's still broken on Nvidia mode.

@MikeErwin Mine looks like this when using Nvidia: OpenGL **** renderer: 'NVIDIA GeForce GT 750M OpenGL Engine' vendor: 'NVIDIA Corporation' version: '2.1 NVIDIA-10.10.10 310.42.25f01' And this with integrated graphic: renderer: 'Intel Iris Pro OpenGL Engine' vendor: 'Intel Inc.' version: '2.1 INTEL-10.14.66' I'm using gfxCardStatus as well. And Blender 2.76 works on both cards. Tried again with 2.77a and it's still broken on Nvidia mode.
Member

Thanks for the info!

Just to recap what we know so far:

We're running the same OS on similar (not identical) hardware.

Current OS 10.11 shows the problem. Older OS 10.9 (with older bundled drivers) works with any Blender version, up to the latest release. MacOS 10.10 was not tried.

Mike first sees problem on Blender 2.76, the moment BLENDER_VERSION changes from 275 to 276. Jerry first sees the problem on Blender 2.77a.

Does the earlier 2.77 (no letter) work for you @Jerry_Yeung?

Thanks for the info! Just to recap what we know so far: We're running the same OS on similar (not identical) hardware. Current OS 10.11 shows the problem. Older OS 10.9 (with older bundled drivers) works with any Blender version, up to the latest release. MacOS 10.10 was not tried. Mike first sees problem on Blender 2.76, the **moment** BLENDER_VERSION changes from 275 to 276. Jerry first sees the problem on Blender 2.77a. Does the earlier 2.77 (no letter) work for you @Jerry_Yeung?
Author

@MikeErwin Blender 2.77 is not working as well. So for me it is broken after Blender 2.76b.

@MikeErwin Blender 2.77 is not working as well. So for me it is broken after Blender 2.76b.

@MikeErwin, do you have different user preferences for 2.75 and 2.76? That seems like the most logical explanation for BLENDER_VERSION causing changes, since they are stored separate per version.

Another possibility is some versioning thing in versioning_270.c, but I can't see anything suspicous.

@MikeErwin, do you have different user preferences for 2.75 and 2.76? That seems like the most logical explanation for BLENDER_VERSION causing changes, since they are stored separate per version. Another possibility is some versioning thing in `versioning_270.c`, but I can't see anything suspicous.
Member

Good point @brecht. I'll try factory settings for both versions and see if results still differ.

I also looked at versioning_270 and saw nothing weird.

Good point @brecht. I'll try factory settings for both versions and see if results still differ. I also looked at versioning_270 and saw nothing weird.

Added subscriber: @jaimi

Added subscriber: @jaimi

I'm seeing this issue as well, it's like it's using the wrong format for normal maps (inverted green channel?) Using the "renderer" shading for the viewport works correctly, just not the "material". I originally assumed it was object vs tangent normal maps, but changing the normal map type on the material did not work (seems like tangent is the only thing that has an effect).

In addition, the normal map occasionally "glitches" in the scene, and looks like dark splotches.

I'm seeing this issue as well, it's like it's using the wrong format for normal maps (inverted green channel?) Using the "renderer" shading for the viewport works correctly, just not the "material". I originally assumed it was object vs tangent normal maps, but changing the normal map type on the material did not work (seems like tangent is the only thing that has an effect). In addition, the normal map occasionally "glitches" in the scene, and looks like dark splotches.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Blender 3D viewport has been rewritten in newer versions (2.80).

Blender 3D viewport has been rewritten in newer versions (2.80).
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
7 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#48772
No description provided.