USD: Support UDIMs inside USDz archives #118925

Open
opened 2024-02-29 20:18:51 +01:00 by Jesse Yurkovich · 0 comments

Support for UDIMs inside USDz archives was added in the USD 23.05 release, available with our 3.6 LTS series and onwards.

This issue is a placeholder for work to go and address this on both the Import and Export side of things.

The relevant USD PR also added a few supporting methods on UsdUtils that might be useful:
https://github.com/PixarAnimationStudios/OpenUSD/pull/2133

Current Problems

Export:
The UDIM image files make it into the USDz archive, and are even viewable in usdview, but they are under the wrong path and the following warnings are produced on the console:

Warning: in _EnqueueDependency at line 113 of ...\pxr\usd\usdUtils\assetLocalization.cpp -- Failed to resolve reference @./textures/tiled-1.<UDIM>.png@ with computed asset path @t:/temp/blender_a07496/USDZ/textures/tiled-1.<UDIM>.png@ found in layer @t:\temp\blender_a07496\USDZ\usd-test-usdz_udim.usdc@.

The files are stored inside a 0/ directory instead of our textures/ directory.

Import:
During Import we resolve the UDIM asset_path but we skip the USDz extraction path entirely. Subsequent attempts to load will then fail:

WARN (io.usd): ...\blender\source\blender\io\usd\intern\usd_reader_material.cc:1191 load_tex_image: Couldn't open image file '0/tiled-1.<UDIM>.png' for Texture Image node
Support for UDIMs inside USDz archives was added in the USD 23.05 release, available with our 3.6 LTS series and onwards. This issue is a placeholder for work to go and address this on both the Import and Export side of things. The relevant USD PR also added a few supporting methods on `UsdUtils` that might be useful: https://github.com/PixarAnimationStudios/OpenUSD/pull/2133 #### Current Problems Export: The UDIM image files make it into the USDz archive, and are even viewable in `usdview`, but they are under the wrong path and the following warnings are produced on the console: ``` Warning: in _EnqueueDependency at line 113 of ...\pxr\usd\usdUtils\assetLocalization.cpp -- Failed to resolve reference @./textures/tiled-1.<UDIM>.png@ with computed asset path @t:/temp/blender_a07496/USDZ/textures/tiled-1.<UDIM>.png@ found in layer @t:\temp\blender_a07496\USDZ\usd-test-usdz_udim.usdc@. ``` The files are stored inside a `0/` directory instead of our `textures/` directory. Import: During Import we resolve the UDIM asset_path but we skip the USDz extraction path entirely. Subsequent attempts to load will then fail: ``` WARN (io.usd): ...\blender\source\blender\io\usd\intern\usd_reader_material.cc:1191 load_tex_image: Couldn't open image file '0/tiled-1.<UDIM>.png' for Texture Image node ```
Jesse Yurkovich added the
Interest
USD
Module
Pipeline, Assets & IO
Type
To Do
labels 2024-02-29 20:18:51 +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
1 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#118925
No description provided.