Importing an FBX file loses any texture assignments that point to broken texture paths

Open
#48 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

No files, tests, or entry points are named. Locate the FBX importer’s texture-reference handling and inspect how broken paths are discarded. Done means imported materials retain broken texture assignments; optionally, same-named textures from the source folder are selected with a warning.

Written by the indexing model from the issue text.

Description

When importing an FBX file, it is common that some of the texture paths are broken. This is due to the lack of tooling to properly export relative paths for FBX textures.

A typical fallback is to look for the texture in the source directory, the one containing the source FBX file being imported.

In addition, completely discarding textures that are not found makes it impossible to fix the texture paths in a post-processing pass, as it would be usual in an asset ingest pipeline.

Expected Behaviour

Importing an FBX file with broken texture references will result in materials with the broken textures still assigned, so that it is possible to inspect the usd stage and proceed with fixing the paths.

Optional Extension

As a fallback, any textures with the same filename, present in the source folder, will be picked instead, but a warning will be logged so that the user is aware of the tentative fix.

Actual Behaviour

The texture is completely ignored and the material will be missing the texture assignment, making it impossible to reassign the texture at a later stage.

Dominant language
C++
Stars
396
Forks
42
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from adobe/USD-Fileformat-plugins

All issues in adobe/USD-Fileformat-plugins

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.