Shaders not displayed properly with USD #95203

Closed
opened 2022-01-25 20:15:59 +01:00 by Robert Rioux · 12 comments

System Information
Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro Vega 64 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.18

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: (newest version of Blender that worked as expected)

Short description of error
I have an object that has been cached in USD with multiple shaders in it. When I load it in Blender, only one shader is applied to everything but it looks ok in edit mode.

Exact steps for others to reproduce the error
Please open the attached file and relink the USD if needed. The woman will be green. Go in edit mode, she will have different colors on her. Doesn't work in Linux with an Nvidia card either.

shaderBug.zip

**System Information** Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro Vega 64 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.18 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: (newest version of Blender that worked as expected) **Short description of error** I have an object that has been cached in USD with multiple shaders in it. When I load it in Blender, only one shader is applied to everything but it looks ok in edit mode. **Exact steps for others to reproduce the error** Please open the attached file and relink the USD if needed. The woman will be green. Go in edit mode, she will have different colors on her. Doesn't work in Linux with an Nvidia card either. [shaderBug.zip](https://archive.blender.org/developer/F12823810/shaderBug.zip)
Author

Added subscriber: @Funnybob

Added subscriber: @Funnybob
Author

It works properly with alembic

It works properly with alembic

Added subscriber: @makowalski

Added subscriber: @makowalski

Thanks for reporting this. I'll take a look.

Thanks for reporting this. I'll take a look.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Looks fine here (tested 3.0 and 3.1 Alpha)

**System Information**
Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44
version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `rBf1cca3055776`

image.png

Seems to be a GPU issue?

@makowalski : can you actually reproduce this?

Looks fine here (tested 3.0 and 3.1 Alpha) ``` **System Information** Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44 version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `rBf1cca3055776` ``` ![image.png](https://archive.blender.org/developer/F12824902/image.png) Seems to be a GPU issue? @makowalski : can you actually reproduce this?

Hi @lichtwerk: Yes, I can reproduce this, but not always as originally described. One way I can reliably reproduce it is to import that USD directly and attempt to change the material colors, which has no effect unless in edit mode. I haven't had a chance to investigate this yet but will do so in the next day or so.

Hi @lichtwerk: Yes, I can reproduce this, but not always as originally described. One way I can reliably reproduce it is to import that USD directly and attempt to change the material colors, which has no effect unless in edit mode. I haven't had a chance to investigate this yet but will do so in the next day or so.

@Funnybob My apologies for the delay looking into this. I've identified the source of the bug in the logic for setting material face sets when the mesh sequence cache modifier is applied. I have a solution which I'm currently testing and will update this thread when the fix is ready.

@Funnybob My apologies for the delay looking into this. I've identified the source of the bug in the logic for setting material face sets when the mesh sequence cache modifier is applied. I have a solution which I'm currently testing and will update this thread when the fix is ready.
Author

I sent a bug report for Maya in 1996 and it's still not fixed. You found a solution for this one in about a week. So you're not going to hear any complaints from me. No need to apologize. You deserve all my respect. Thanks Michael!

I sent a bug report for Maya in 1996 and it's still not fixed. You found a solution for this one in about a week. So you're not going to hear any complaints from me. No need to apologize. You deserve all my respect. Thanks Michael!

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Michael Kowalski self-assigned this 2023-01-29 23:46:46 +01:00

This bug was actually fixed some time ago as part of refactoring by Hans in https://developer.blender.org/rBf1c0249f34c4. The materials should now be loading correctly. My apologies for not updating the status of this bug sooner.

This bug was actually fixed some time ago as part of refactoring by Hans in https://developer.blender.org/rBf1c0249f34c4. The materials should now be loading correctly. My apologies for not updating the status of this bug sooner.
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
3 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#95203
No description provided.