Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usdPreviewSurface spec for reading alpha channel from grayscale image has inconsistent adoption #2731

Closed
dgovil opened this issue Oct 12, 2023 · 5 comments

Comments

@dgovil
Copy link
Collaborator

dgovil commented Oct 12, 2023

The usdPreviewSurface spec specifies that reading alpha channel of a grayscale texture should return 1:

“If a single-channel texture is fed into a UsdUVTexture, the r, g , and b components of the rgb output will repeat the channel’s value, while the single a output will be set to 1.0.”

However, in usdview, the alpha channel returns the image. In other contexts (RealityKit, Maya, Houdini) the alpha channel returns 1 per the spec

Steps To Reproduce:

  • View attached usdz in various renderers.
  • See usdview is an outlier

vistest_texture_format_grayscale_alpha.usdz.zip

Screenshot 2023-10-11 at 11 44 49 PM
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8828

@klucknav
Copy link
Contributor

klucknav commented Dec 7, 2023

I tested the attached usdz file and was unable to repro the issue you are seeing here. Are you still seeing this issue? Do you have another repro case? Or more information about when you are seeing this?

@dgovil
Copy link
Collaborator Author

dgovil commented Dec 7, 2023

@klucknav Unfortunately I'm still seeing this with USD 23.11.

Would you be able to share a screenshot of what you're seeing on your end with the attached file in USD 23.11? I assume you're checking on a Linux machine with an NVIDIA gpu using OpenGL?

I'm curious if it may be a difference between graphics backends that hasn't been accounted for. I'm on a Mac with a Metal on an Apple GPU.

@klucknav
Copy link
Contributor

klucknav commented Dec 7, 2023

Ok, it does seem to be a Metal specific issue. Thank you for clarifying your setup for where you are seeing the problem.

@dgovil
Copy link
Collaborator Author

dgovil commented Dec 7, 2023

Ah great, I'm glad you were able to repro on a Mac. Apologies, I should have mentioned that earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants