USD import: investigate texture color space conversion issue #93904
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93904
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@brurpo Reported the following issue:
I'll be looking into this.
Added subscribers: @brurpo, @makowalski
#97136 was marked as duplicate of this issue
@brurpo thank you for the test assets to reproduce this. I'll look into this and will let you know what I find.
@makowalski You are awesome! Let me know if you need anything, even if you want a call for me to show you the process or if you want a simpler usd.
Hi @makowalski ! Recently, maya released an update that fixed this, so it was not a problem on blenders side afterall. What was weird is that maya was importing the colorspace correctly, maybe it used something that only maya could read and now it uses something that is more generic?
If you want, I can send you the new exported USD.
Cheers.
@brurpo I'm glad there's a fix in Maya!
I tracked the issue down to the following: the
colorSpace
metadata in that USD is given as "Raw" (note the capitalization). Lowercase "raw" is the actual standard, I believe. In my code I was checking for "raw" as well as "RAW" (all caps) which is another variant I've seen. If I change my code to do a case-insensitive string comparison against "raw", the color space comes is correctly for this USD.I'm guessing that Maya updated their code to use the standard "raw" token now, so we'll have to consider whether doing this fix is worth the effort. I'll give it some thought.
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
@makowalski: I assume this can be confirmed then?
It would still be good to have an example .USD here (maybe alongside screenshots expected vs. actual behavior) just in case someone else will end up looking at this
Hi @lichtwerk. Thanks for following up on this. Yes, this bug can be confirmed, and I'll provide a USD example, as you suggested. This is a relatively simple change, and I will most likely make the fix after the latest USD Preview Surface import patch (https://developer.blender.org/D13297) has been approved and merged into master.
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
I'm uploading the notebook.7z archive originally provided by @brurpo that contains the USDs and textures that exhibit the behavior. Note that this example is for Windows only, as it references textures in the
c:
drive. To test on Windows, extract the contents under thec:
root for the texture paths to resolve correctly.notebook.7z
An example of the issue is that the roughness textures in the USD
is imported with color space
sRGB
:Added subscribers: @weirdmonkey2807, @mano-wii
Added subscriber: @codeloadgame