Material view broken in recent build #45491

Closed
opened 2015-07-19 09:12:59 +02:00 by Sanc Tuary · 25 comments

System Information
Intel G41 win32

Blender Version
Broken: blender-2.75-23c7603-win32
Worked: blender 2.75a and all previous versions that had Material display in Blender render mode

Short description of error
Material display is visually broken in latest buildbot

Exact steps for others to reproduce the error
Here's the blend :
http://www.pasteall.org/blend/37130

load it with "Load UI" enabled , you should be presented with this :
http://i.imgur.com/VvfyCd5.jpg

Now change solid display to material display, you should see this :
http://i.imgur.com/Ox7lnlB.jpg

There i can already say it's broken, the normal map effect aren't correct in the arm and face in comparison to how they look in 2.75a/earlier

Then after some zoom in, rotate the view, etc... things will completely break visually after a few seconds :
http://i.imgur.com/7oMz93s.jpg

My blender system settings :
http://i.imgur.com/Nd6Oluj.jpg

I guess some of those viewport optimisations aren't that friendly with my intel g41 (that support opengl 2.1 ) , but it's really bad considering material view worked great in 2.75a and earlier

**System Information** Intel G41 win32 **Blender Version** Broken: blender-2.75-23c7603-win32 Worked: blender 2.75a and all previous versions that had Material display in Blender render mode **Short description of error** Material display is visually broken in latest buildbot **Exact steps for others to reproduce the error** Here's the blend : http://www.pasteall.org/blend/37130 load it with "Load UI" enabled , you should be presented with this : http://i.imgur.com/VvfyCd5.jpg Now change solid display to material display, you should see this : http://i.imgur.com/Ox7lnlB.jpg There i can already say it's broken, the normal map effect aren't correct in the arm and face in comparison to how they look in 2.75a/earlier Then after some zoom in, rotate the view, etc... things will completely break visually after a few seconds : http://i.imgur.com/7oMz93s.jpg My blender system settings : http://i.imgur.com/Nd6Oluj.jpg I guess some of those viewport optimisations aren't that friendly with my intel g41 (that support opengl 2.1 ) , but it's really bad considering material view worked great in 2.75a and earlier

#45511 was marked as duplicate of this issue

#45511 was marked as duplicate of this issue
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @sanctuary

Added subscriber: @sanctuary
Author

Forgot to mention, but it may be important :

if i add a level 1 subsurf modifier, the visual is fixed :
http://i.imgur.com/FvIrG8h.jpg

but if i remove the modifier or set the level of the subsurf to 0 , it's back to being really badly displayed

Forgot to mention, but it may be important : if i add a level 1 subsurf modifier, the visual is fixed : http://i.imgur.com/FvIrG8h.jpg but if i remove the modifier or set the level of the subsurf to 0 , it's back to being really badly displayed

Added subscribers: @Psy-Fi, @ideasman42, @mont29

Added subscribers: @Psy-Fi, @ideasman42, @mont29

@sanctuary please always attach the blend and images here (and create smaller .blend, we do not need 20Mb one for such a simple case!).

@ideasman42 @Psy-Fi looks like more winding issue…

@sanctuary please always attach the blend and images here (and create smaller .blend, we do not need 20Mb one for such a simple case!). @ideasman42 @Psy-Fi looks like more winding issue…
Campbell Barton was assigned by Bastien Montagne 2015-07-19 11:06:59 +02:00

This is not winding related, it is due to tangents which haven't been ported yet to looptri system, it's on my list to fix.

This is not winding related, it is due to tangents which haven't been ported yet to looptri system, it's on my list to fix.

@Psy-Fi

Hi, you said you were looking into this, but since the report is assigned to me, I had a look at a patch just to resolve the obviously bad tangents.

P242

However it it should have special quad detection to give compatible tangents (as we discussed already).

You said you were looking into this, but if you didn't start yet, I could finish the patch off and support quad detection.


Side note, it would be quite nice to support tangents on polygons but seems quite a big reworking of mikktspace.

@Psy-Fi Hi, you said you were looking into this, but since the report is assigned to me, I had a look at a patch just to resolve the obviously bad tangents. [P242](https://archive.blender.org/developer/P242.txt) However it it _should_ have special quad detection to give compatible tangents (as we discussed already). You said you were looking into this, but if you didn't start yet, I could finish the patch off and support quad detection. ---- *Side note, it would be quite nice to support tangents on polygons but seems quite a big reworking of mikktspace.*

I've been trying to make baking code work at the same (which uses tangents). Patch looks OKish blender side but let me check the tangent code a little bit, see if I can bend it into shape.

I've been trying to make baking code work at the same (which uses tangents). Patch looks OKish blender side but let me check the tangent code a little bit, see if I can bend it into shape.

Added subscribers: @Sergey, @MassimilianoPuliero

Added subscribers: @Sergey, @MassimilianoPuliero

This issue was referenced by 2ec00ea0c1

This issue was referenced by 2ec00ea0c1be1ace7cd0c7b68e43cc8e87dd07c7

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author

Just posting to confirm after testing on blender-2.75-6b7313b-win32.zip from today's buildbot (folder named Blender-2.75.0-git.6b7313b-AMD64) that it is working correctly in several of my material view tests.
Thank you.

Just posting to confirm after testing on blender-2.75-6b7313b-win32.zip from today's buildbot (folder named Blender-2.75.0-git.6b7313b-AMD64) that it is working correctly in several of my material view tests. Thank you.
Author

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Author

Sorry to re-open, but since it has been fixed, i noticed in today (and yesterday too) build, material view is broken again.

blend is still available there and exhibit the re-breakage :
http://www.pasteall.org/blend/37130
but i made a much smaller version with packed texture very scaled down so i can attach it here to make it easier to download :
brokenmatnew.blend

Load with "Load UI" enabled to get the view directly to the object

what worked in 2.75a and worked after the bug previously mentionned in this report was fixed ( in blender-2.75-6b7313b-win32.zip ) :
http://i.imgur.com/78SBi04.jpg

and now in blender-2.75-5668fc0-win32.zip , it's just broken again visually, though a bit differently than before :
http://i.imgur.com/o19cQB1.jpg

Sorry to re-open, but since it has been fixed, i noticed in today (and yesterday too) build, material view is broken again. blend is still available there and exhibit the re-breakage : http://www.pasteall.org/blend/37130 but i made a much smaller version with packed texture very scaled down so i can attach it here to make it easier to download : [brokenmatnew.blend](https://archive.blender.org/developer/F225359/brokenmatnew.blend) Load with "Load UI" enabled to get the view directly to the object what worked in 2.75a and worked after the bug previously mentionned in this report was fixed ( in blender-2.75-6b7313b-win32.zip ) : http://i.imgur.com/78SBi04.jpg and now in blender-2.75-5668fc0-win32.zip , it's just broken again visually, though a bit differently than before : http://i.imgur.com/o19cQB1.jpg

Tested in 5668fc0, and it works fine for me. (Looks like http://i.imgur.com/78SBi04.jpg)

Latest build, 4224d22039 also works for me, with/without VBO.

Could you please re-check?

Tested in 5668fc0, and it works fine for me. (Looks like http://i.imgur.com/78SBi04.jpg) Latest build, 4224d22039 also works for me, with/without VBO. Could you please re-check?
Author

just tested on blender-2.75-a6457f2-win32.zip

that is a few hours old on buildbot at the time i write and sadly i see the same broken material view.

it seems completely related to GLSL though as if i switch to Textured display and set the Shading (in the N panel) to GLSL instead of Multitexture, i see the same broken display.

Too bad the buildbot do not keep archives, as i had not tried any build since" blender-2.75-6b7313b-win32.zip " that had both Material and Textured/GLSL view working correctly and so can't say when exactly the problem started to appear with GLSL/Material view.

Additionally, i notice that if in Solid display i enable in the "N panel" Shading tab "Ambient Occlusion," Blender freeze for a few seconds and then just crash.
While the feature worked great both in 2.75a and in the last builds i tried back in July.

As you can't see it on your system and that my old G41 is using OpenGL 2.1and had no problem with the build from the 31 of July, could it be something requiring superior OpenGL that appeared in the GLSL code since the beginning of August ?
Whatever it is, it breaks anything GLSL for me while it worked great before.

just tested on blender-2.75-a6457f2-win32.zip that is a few hours old on buildbot at the time i write and sadly i see the same broken material view. it seems completely related to GLSL though as if i switch to Textured display and set the Shading (in the N panel) to GLSL instead of Multitexture, i see the same broken display. Too bad the buildbot do not keep archives, as i had not tried any build since" blender-2.75-6b7313b-win32.zip " that had both Material and Textured/GLSL view working correctly and so can't say when exactly the problem started to appear with GLSL/Material view. Additionally, i notice that if in Solid display i enable in the "N panel" Shading tab "Ambient Occlusion," Blender freeze for a few seconds and then just crash. While the feature worked great both in 2.75a and in the last builds i tried back in July. As you can't see it on your system and that my old G41 is using OpenGL 2.1and had no problem with the build from the 31 of July, could it be something requiring superior OpenGL that appeared in the GLSL code since the beginning of August ? Whatever it is, it breaks anything GLSL for me while it worked great before.

Added subscriber: @sindra1961

Added subscriber: @sindra1961

It works fine here.
brokenmatnew.png
windows XP/SP3 32bits
version 2.75 (sub 4), branch b'master', commit date b'2015-08-20' b'02:50', hash b'a6457f2', b'Release'

It works fine here. ![brokenmatnew.png](https://archive.blender.org/developer/F225616/brokenmatnew.png) windows XP/SP3 32bits version 2.75 (sub 4), branch b'master', commit date b'2015-08-20' b'02:50', hash b'a6457f2', b'Release'

Hi @sanctuary, this is definitely a shader compilation issue, can you try running blender from command line with blender --d, opening the file in material mode and attaching the errors that appear in the command line?

Hi @sanctuary, this is definitely a shader compilation issue, can you try running blender from command line with blender --d, opening the file in material mode and attaching the errors that appear in the command line?
Author

You're right, after launching blender with --d , i see in the console when opening that blend :

GPUShader: compile error:
WARNING: 1:1: extension: 'GL_ARB_texture_query_lod' is not supported

WARNING: 1:2: extension: 'GL_ARB_gpu_shader5' is not supported

ERROR: 1:3: '' : extension : 'GL_ARB_explicit_attrib_location' is not supported

WARNING: 1:4: extension: 'GL_EXT_gpu_shader4' is not supported

I highly suspect intel and their "legendary" graphic chipset and their related drivers are playing a part in that problem

unfortunately i have not kept the build from the 31 july to compare the error message

You're right, after launching blender with --d , i see in the console when opening that blend : GPUShader: compile error: WARNING: 1:1: extension: 'GL_ARB_texture_query_lod' is not supported WARNING: 1:2: extension: 'GL_ARB_gpu_shader5' is not supported ERROR: 1:3: '' : extension : 'GL_ARB_explicit_attrib_location' is not supported WARNING: 1:4: extension: 'GL_EXT_gpu_shader4' is not supported I highly suspect intel and their "legendary" graphic chipset and their related drivers are playing a part in that problem unfortunately i have not kept the build from the 31 july to compare the error message

This issue was referenced by 3fd89df6e7

This issue was referenced by 3fd89df6e7f3cecb108bb604100218e1bea85c63

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This time it was the legendary absent mindedness of blender devs ;). At least that's fixable.

This time it was the legendary absent mindedness of blender devs ;). At least that's fixable.
Author

Just reporting to confirm that it's working great (and ambient occlusion is working again too) in today's build blender-2.75-10edaff-win32.zip
Thank you for your work.

Just reporting to confirm that it's working great (and ambient occlusion is working again too) in today's build blender-2.75-10edaff-win32.zip Thank you for your work.
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
6 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#45491
No description provided.