eevee not showing multi material object properly when blend is loaded until mesh is updated #68826

Closed
opened 2019-08-19 14:38:03 +02:00 by MACHIN3 · 46 comments

System Information
Operating system: Linux-4.13.10-041310-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.67

Blender Version
Broken: version: 2.81 (sub 2), branch: master, commit date: 2019-08-16 13:02, hash: 078d02f557
Worked: 4074ab361e

Short description of error
I have an object with 3 material slots and a different material on each slot. When the blend is loaded in SOLID shading mode, and you switch to lookdev or rendered mode with eevee being the rendered, the material of the last slot is shown covering the entire mesh, when in reality only a few polygons have that slots material index assigned. If you update the mesh, either by going manually into edit mode, or by running obj.data.update() the material's are updated and shown properly - until the blend is loaded again.

eevee_and_multi_material_objects.blend

Exact steps for others to reproduce the error

  • load the blend file above
    • if you are loading it without UI, make sure you are in SOLID shading
  • switch to lookdev or rendered shading
    • note how the entire object is metallic
  • go into edit mode
    • note how the materials update and all three are now shown on different parts of the model
**System Information** Operating system: Linux-4.13.10-041310-generic-x86_64-with-debian-stretch-sid 64 Bits Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.67 **Blender Version** Broken: version: 2.81 (sub 2), branch: master, commit date: 2019-08-16 13:02, hash: `078d02f557` Worked: `4074ab361e` **Short description of error** I have an object with 3 material slots and a different material on each slot. When the blend is loaded in SOLID shading mode, and you switch to lookdev or rendered mode with eevee being the rendered, the material of the last slot is shown covering the entire mesh, when in reality only a few polygons have that slots material index assigned. If you update the mesh, either by going manually into edit mode, or by running `obj.data.update()` the material's are updated and shown properly - until the blend is loaded again. [eevee_and_multi_material_objects.blend](https://archive.blender.org/developer/F7673043/eevee_and_multi_material_objects.blend) **Exact steps for others to reproduce the error** * load the blend file above - if you are loading it without UI, make sure you are in SOLID shading * switch to lookdev or rendered shading - note how the entire object is metallic * go into edit mode - note how the materials update and all three are now shown on different parts of the model
Author

Added subscriber: @MACHIN3

Added subscriber: @MACHIN3

#68754 was marked as duplicate of this issue

#68754 was marked as duplicate of this issue

#70008 was marked as duplicate of this issue

#70008 was marked as duplicate of this issue

#70058 was marked as duplicate of this issue

#70058 was marked as duplicate of this issue

#69945 was marked as duplicate of this issue

#69945 was marked as duplicate of this issue

#69695 was marked as duplicate of this issue

#69695 was marked as duplicate of this issue

#69329 was marked as duplicate of this issue

#69329 was marked as duplicate of this issue

#69142 was marked as duplicate of this issue

#69142 was marked as duplicate of this issue

Added subscriber: @ThatAsherGuy

Added subscriber: @ThatAsherGuy

Added subscriber: @FinbarrORiordan

Added subscriber: @FinbarrORiordan

Bug reproduced using the linked .blend:

system-info.txt

Bug reproduced using the linked .blend: [system-info.txt](https://archive.blender.org/developer/F7678520/system-info.txt)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Cannot reproduce (f041d2f116), immediate multiple materials here...
system-info.txt

Cannot reproduce (f041d2f116), immediate multiple materials here... [system-info.txt](https://archive.blender.org/developer/F7678702/system-info.txt)
Member

Seeing I have a newer driver than both of you: mind checking if upgrading the drivers fixes the problem?

Seeing I have a newer driver than both of you: mind checking if upgrading the drivers fixes the problem?

Added subscriber: @MarcClintDion

Added subscriber: @MarcClintDion

It's confirmed here.

Windows 10
GTX 1070 - driver(430.86)

Broken material stack.jpg

It's confirmed here. Windows 10 GTX 1070 - driver(430.86) ![Broken material stack.jpg](https://archive.blender.org/developer/F7678925/Broken_material_stack.jpg)
Author

I have just confirmed it on Windows as well, with newer drivers than yours @lichtwerk

renderer:	'Quadro P4000/PCIe/SSE2'
vendor:		'NVIDIA Corporation'
version:	'4.5.0 NVIDIA 431.02'

system-info.txt

You need to make sure you are loading the scene while in SOLID shading or with the Load UI option enabled.

I have just confirmed it on Windows as well, with newer drivers than yours @lichtwerk ``` renderer: 'Quadro P4000/PCIe/SSE2' vendor: 'NVIDIA Corporation' version: '4.5.0 NVIDIA 431.02' ``` [system-info.txt](https://archive.blender.org/developer/F7678945/system-info.txt) You need to make sure you are loading the scene while in SOLID shading or with the Load UI option enabled.
Clément Foucault was assigned by Philipp Oeser 2019-08-21 11:07:04 +02:00
Member

Added subscriber: @fclem

Added subscriber: @fclem
Member

Ah, here we go, I can reproduce loading having Load UI ON.
Thx everyone for poking.
[ still cannot reproduce having Load UI OFF -- even though in SOLID, but I guess that is not mandatory for calling this a bug :) ]

Anyways: would kindly ask @fclem to have a look here...

Ah, here we go, I can reproduce loading having `Load UI` ON. Thx everyone for poking. [ still cannot reproduce having `Load UI` OFF -- even though in SOLID, but I guess that is not mandatory for calling this a bug :) ] Anyways: would kindly ask @fclem to have a look here...

This issue was referenced by d357e7b065

This issue was referenced by d357e7b0653588d5fb85deec270464778a252406

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by f16a28c4af

This issue was referenced by f16a28c4afbfab86362898c19aa177227c9f47ed

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Reverted since this caused various crashes:

  • #69087 (Error when using vertex color)
  • #69083 (Blender crashes when switching from solid view to rendered or lookdev mode in eevee.)
  • #69088 (Assert entering editmode with a UVEditor open)
  • #69096 (Crash in drawcode in a BI character file.)
Reverted since this caused various crashes: * #69087 (Error when using vertex color) * #69083 (Blender crashes when switching from solid view to rendered or lookdev mode in eevee.) * #69088 (Assert entering editmode with a UVEditor open) * #69096 (Crash in drawcode in a BI character file.)
Member

Added subscribers: @item412, @AbidMaqbool

Added subscribers: @item412, @AbidMaqbool

This issue was referenced by 742119bcb5

This issue was referenced by 742119bcb50a83b7f8bb6ceefb34861ac54d9cc8

Changed status from 'Open' to: 'Resolved'

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

Changed status from 'Resolved' to: 'Open'

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

Have to repopen this, doesnt seem fixed for me (and has been reported again in #69329 (Eevee: Only one material is displayed before enter in Edit mode when mesh has multiple materials))
@fclem: mind checking again?

Have to repopen this, doesnt seem fixed for me (and has been reported again in #69329 (Eevee: Only one material is displayed before enter in Edit mode when mesh has multiple materials)) @fclem: mind checking again?
Member

Added subscribers: @MarcinTwarowski, @antoniov

Added subscribers: @MarcinTwarowski, @antoniov
Member

@fclem : I have added this to 2.81 milestone (since it was set to "High"), mind checking again?

@fclem : I have added this to 2.81 milestone (since it was set to "High"), mind checking again?
Member

Added subscriber: @NiekKort

Added subscriber: @NiekKort

Added subscriber: @DanielPaul

Added subscriber: @DanielPaul
Member

Added subscriber: @ME2

Added subscriber: @ME2
Member

Added subscribers: @jerrsoundripper, @ideasman42

Added subscribers: @jerrsoundripper, @ideasman42

Edit THE cube, Duplicate it in edit mode, create new material and assign new material to the new one. The second material won't show up in Eevee
Capture d’écran 2019-09-19 à 10.18.59.png

Edit THE cube, Duplicate it in edit mode, create new material and assign new material to the new one. The second material won't show up in Eevee ![Capture d’écran 2019-09-19 à 10.18.59.png](https://archive.blender.org/developer/F7757758/Capture_d_e_cran_2019-09-19_a__10.18.59.png)

Added subscriber: @crantisz

Added subscriber: @crantisz

Added subscribers: @alonabrany, @JacquesLucke

Added subscribers: @alonabrany, @JacquesLucke
Member

Added subscribers: @3di, @capnm

Added subscribers: @3di, @capnm

The bug I encounter is the same as in #70106

The bug I encounter is the same as in #70106

This comment was removed by @MarcClintDion

*This comment was removed by @MarcClintDion*

Removed subscriber: @antoniov

Removed subscriber: @antoniov

Removed subscriber: @capnm

Removed subscriber: @capnm

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Fixed by 1d1ef2e797

Fixed by 1d1ef2e797
Thomas Dinges added this to the 2.81 milestone 2023-02-08 16:46:59 +01:00
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
13 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#68826
No description provided.