Autodesk / Autodesk/maya-usd

[MAYA-126919] Request to use displayColor when disabling "Textured" in the viewport

Open
#2,802 6 comments 4 reactions 1 assignee Claimed by @santosd View on GitHub
enhancement
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

Hi maya-usd team, happy new year!

I was unsure if this is a bug or a feature request, so I'm logging this as a "Feature request".

**Context**
This relates to the request from https://github.com/Autodesk/maya-usd/issues/2206 to allow a USD Stage to "listen" to the `Textured` control from the viewport toolbar:

![image](https://user-images.githubusercontent.com/8294116/210458645-95cc753d-bdda-47ee-ad44-4c6b64585adc.png)

**Current Behavior**

With the update from https://github.com/Autodesk/maya-usd/pull/2599, textures get disabled (good) but meshes are drawn with black color instead of drawing according to their `displayColor` property.

This [magazines.zip](https://github.com/Autodesk/maya-usd/files/10340728/magazines.zip) zip file contains the `usdz` stage from `entity/books_magazines01/books_magazines01.usda` from the [ALab phase 2](https://dpel.aswf.io/alab/).

Go to `Create / Universal Scene Description (USD) / Stage From File...` and select the zip file. You can see how toggling the `Textured` button goes from textured geometry to black geometry:

![maya_disable_materials](https://user-images.githubusercontent.com/8294116/210468866-b91a0f40-e887-418d-91ea-21447e65dc7a.gif)

When loading the complete ALab set, the same happens:

![texture_disabled_shows_black_instead_of_displayColor](https://user-images.githubusercontent.com/8294116/210458977-c73cbe97-786b-437b-9894-1f43db11c09b.gif)

**Expected Behavior**

USDView and Houdini respect `displayColor` when disabling scene materials, which is why as a user, I would expect for Maya to do the same. In the ALab example, we can see that meshes which did not have a material previously applied, continue to draw with `displayColor`:

![image](https://user-images.githubusercontent.com/8294116/210459577-cb70bde3-a7ad-48d9-ade1-ec137d8a85da.png)

USDView exposes this with the `Enable Scene Materials` menu:

![image](https://user-images.githubusercontent.com/8294116/210458749-137de950-2057-4e9f-89f4-9b0b2da2c3b2.png)

![usdview_disable_materials](https://user-images.githubusercontent.com/8294116/210469352-4f3a9e81-de46-4b57-81b0-1bf8d66a47c0.gif)

Houdini does it with the `Display Materials on Objects` toggle:

![houdini_disable_materials](https://user-images.githubusercontent.com/8294116/210468691-841e6176-ae7d-4146-8267-eedb48f5b25a.gif)

Could the Maya `Textured` toggle follow the same approach?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.