USDZ - Normal and Roughness maps imported as 'sRGB' instead 'Non Color' #108005

Closed
opened 2023-05-17 10:56:40 +02:00 by Markus Lanxinger · 4 comments

System Information
Operating system: Windows 11
Graphics card: RTX 3090

Blender Version
Broken: (3.60, 6daa3f6b8a)
Worked: NA

Short description of error

When importing a sample USDZ file it imports correctly but has no Occlusion applied on the shader. When exporting back out to USDZ the Occlusion map is not included inside the USDZ anymore.

When checking the original file (extract the usdz via a 7zip) it does have the AO texture inside the directory.

Exact steps for others to reproduce the error

  1. Download sample USDZ file from Apple: https://developer.apple.com/ar/photogrammetry/Rock.usdz
  2. Import USDZ into Blender
  3. Go to Shading Tab
  4. See the Normal Map Shader Color Space set to sRGB
System Information Operating system: Windows 11 Graphics card: RTX 3090 Blender Version Broken: (3.60, 6daa3f6b8a) Worked: NA Short description of error When importing a sample USDZ file it imports correctly but has no Occlusion applied on the shader. When exporting back out to USDZ the Occlusion map is not included inside the USDZ anymore. When checking the original file (extract the usdz via a 7zip) it does have the AO texture inside the directory. Exact steps for others to reproduce the error 1) Download sample USDZ file from Apple: https://developer.apple.com/ar/photogrammetry/Rock.usdz 2) Import USDZ into Blender 3) Go to Shading Tab 4) See the Normal Map Shader Color Space set to sRGB
Markus Lanxinger added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-05-17 10:56:40 +02:00

I guess this is related to this ticket:

#93904

I guess this is related to this ticket: https://projects.blender.org/blender/blender/issues/93904
Member

cc @makowalski as well

We probably want to fix this as normal map images never really uses any color space, but rather just data.

/* Set texture color space.
   * TODO(makowalski): For now, just checking for RAW color space,
   * assuming sRGB otherwise, but more complex logic might be
   * required if the color space is "auto". */

  pxr::TfToken color_space = get_source_color_space(usd_shader);
cc @makowalski as well We probably want to fix this as normal map images never really uses any color space, but rather just data. ``` /* Set texture color space. * TODO(makowalski): For now, just checking for RAW color space, * assuming sRGB otherwise, but more complex logic might be * required if the color space is "auto". */ pxr::TfToken color_space = get_source_color_space(usd_shader); ```
YimingWu added the
Module
Pipeline, Assets & IO
Interest
Pipeline, Assets & IO
labels 2023-05-17 13:16:48 +02:00

This also happens with Roughness maps fyi.

Attached is a sample.

image

This also happens with Roughness maps fyi. Attached is a sample. ![image](/attachments/d9d13abd-3747-4744-b7fe-369e4cef405a)
Germano Cavalcante changed title from USDZ - Normal Map Shader wrongly assigned as sRGB to USDZ - Normal and Roughness maps imported as 'sRGB' instead 'Non Color' 2023-05-18 17:07:07 +02:00
Germano Cavalcante added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-05-18 17:07:29 +02:00
Philipp Oeser added
Interest
USD
and removed
Interest
Pipeline, Assets & IO
labels 2023-05-22 09:21:15 +02:00

This should be fixed with b7fa45b68d (4.1 onwards) where we work around the missing color space settings in USD assets.

This should be fixed with b7fa45b68d94388357f9ecd4af16576b59a38076 (4.1 onwards) where we work around the missing color space settings in USD assets.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-12-21 20:38:59 +01:00
Jesse Yurkovich added
Status
Resolved
and removed
Status
Archived
labels 2023-12-21 20:39:00 +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
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#108005
No description provided.