Skip to content

Work In Progress: USD Referencing - #5807

Merged
kimkulling merged 2 commits into
assimp:masterfrom
AMZN-Gene:USD_Reference_Prototype
Nov 24, 2025
Merged

kimkulling merged 2 commits into
assimp:masterfrom
AMZN-Gene:USD_Reference_Prototype

Conversation

@AMZN-Gene

@AMZN-Gene AMZN-Gene commented Oct 10, 2024 •

Copy link
Copy Markdown
Contributor

Passing USD prims along with render nodes to search for USD references.
Saving reference path inside node->metaData['ref']

Looking for feedback on starting to implementing USD references... not sure if this is even the correct approach.
Instead of loading reference geometry directly into the scene, I want the end user to decide what to do with the reference.
In my case, O3DE will load each usd separately, create a procedural prefab for each, and then create a hierarchy of nested prefabs for USDs which reference other USDs.

Summary by CodeRabbit

  • New Features

    • USD import now properly captures and preserves composition references within scene hierarchies.
  • Bug Fixes

    • Fixed compiler compatibility warnings for newer MSVC versions.
  • Improvements

    • Refined node hierarchy setup and mesh relationship processing during USD file loading.

✏️ Tip: You can customize this high-level summary in your review settings.

…nces. Save reference path to metaData['ref']

Signed-off-by: AMZN-Gene <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@tellypresence

Copy link
Copy Markdown
Collaborator

@AMZN-Gene Please resolve conflicts so PR remains viable

@tellypresence tellypresence added the USD Bugs related to the USD format. label Apr 9, 2025

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for me.

@coderabbitai

coderabbitai Bot commented Nov 21, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes refactor USD node processing in the Tinyusdz importer by introducing a dedicated setupNodes method for mesh initialization and a higher-level nodes entry point. The nodesRecursive method signature is expanded to accept Prim context for capturing composition references. A minor MSVC pragma warning fix is also applied to STEPFile.h.

Changes

Cohort / File(s) Summary
Build Fix
code/AssetLib/Step/STEPFile.h
Added conditional pragma warning pop for MSVC when _MSC_VER > 1920 to properly close warning suppression pairs.
USD Node Processing Refactor
code/AssetLib/USD/USDLoaderImplTinyusdz.h
Added public methods setupNodes(...) and nodes(...) for node initialization; extended nodesRecursive(...) signature to include const tinyusdz::Prim &prim parameter.
USD Node Processing Implementation
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp
Implemented new methods setupNodes(...) and nodes(...) for root node setup and mesh mapping; updated nodesRecursive(...) to accept and propagate Prim parameter; added composition reference capture via metadata entries; included metadata utilities header.

Sequence Diagram

sequenceDiagram
    participant Loader as USD Importer
    participant SetupNodes as setupNodes()
    participant Nodes as nodes()
    participant NodesRec as nodesRecursive()
    participant Scene as aiScene

    Loader->>SetupNodes: Initialize mesh mappings, root node
    SetupNodes->>Nodes: Delegate traversal start
    Nodes->>NodesRec: Begin recursive traversal with Prim
    loop For each child node
        NodesRec->>NodesRec: Recursively process with Prim context
        alt Prim has composition references
            NodesRec->>NodesRec: Attach reference metadata ("ref": asset_path)
        end
    end
    NodesRec-->>Nodes: Return constructed tree
    Nodes-->>SetupNodes: Complete traversal
    SetupNodes->>Scene: Assign root node with mNumMeshes/mMeshes
    SetupNodes-->>Loader: Setup complete
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Method refactoring: Verify that the new setupNodes and nodes methods correctly encapsulate prior logic and that the delegation flow maintains correctness.
  • Prim parameter propagation: Ensure the Prim parameter is correctly threaded through all recursive calls and that its metadata extraction logic (especially composition references) is sound.
  • Composition reference handling: Validate the reference metadata attachment logic and confirm it doesn't break existing node traversal or cause memory issues.
  • Mesh relationship mapping: Confirm that mesh children are properly connected within the refactored setup flow and that root node mNumMeshes and mMeshes are accurately computed.

Poem

🐰 Nodes now take their proper place,
With Prim-aware recursive grace,
References captured in metadata's nest,
USD traversal put to the test!
Setup, then nodes, in order they bloom—
Asset hierarchies clear the room. 🌳

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title check ❓ Inconclusive The title 'Work In Progress: USD Referencing' is vague and generic, using the non-descriptive prefix 'Work In Progress' that doesn't convey meaningful information about the changeset. Replace the 'Work In Progress' prefix with a specific description of the main change, such as 'USD Referencing: Capture composition references in node metadata' or similar.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

@kimkulling
kimkulling marked this pull request as ready for review November 21, 2025 11:59

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (1)

846-919: Fix nodesRecursive: broken child traversal and reference metadata handling

All critical issues in the review comment are confirmed:

  1. meshNodes undefined: Line 905 references meshNodes which exists only in the nodes() function (line 832), not in nodesRecursive's scope.

  2. Write before allocation: Line 905 writes to cNode->mChildren[i] but cNode->mChildren is not allocated until line 912.

  3. Malformed braces: The first loop (line 904–905) has no closing }, causing control to fall through to line 906.

  4. Conflicting signatures:

    • Line 840 and 905 pass meshNodes (wrong type), but signature expects skeletons.
    • Line 226 and 917 pass only 3 arguments; signature requires 4 (needs prim).
  5. Reference metadata leak: Lines 894–901 allocate and assign metadata inside the loop, overwriting the previous node's metadata with each iteration.

Apply the suggested patch to:

  • Attach only the first reference as metadata (avoid per-iteration leaks).
  • Set mNumChildren and return early if no children, before allocating mChildren.
  • Properly iterate child nodes with both prim.children() and node.children synchronized via assertions.
🧹 Nitpick comments (2)
code/AssetLib/USD/USDLoaderImplTinyusdz.h (1)

127-145: Add <map> include and reconsider unused meshNodes parameter

  • This header now exposes std::map in the public API (setupNodes/nodes), so it should explicitly #include <map> rather than rely on transitive includes from other headers.
  • The meshNodes parameter is threaded through setupNodes/nodes but is not yet used in the implementation; if it’s only a future hook, consider documenting that or wiring it up, otherwise it’s dead API surface.
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (1)

805-841: nodes()/setupNodes() assume non-empty root prims/nodes; add basic guards

setupNodes/nodes currently do:

pScene->mRootNode = nodes(render_scene, usdStage, meshNodes, nameWExt);
// ...
return nodesRecursive(nullptr, usdStage.root_prims()[0], render_scene.nodes[0], meshNodes);

This assumes:

  • usdStage.root_prims().size() > 0
  • render_scene.nodes.size() > 0

On malformed or highly reduced inputs, either container could be empty, leading to undefined behavior via [0]. It would be safer to assert or early-return in that case.

For example:

 aiNode *USDImporterImplTinyusdz::nodes(
         const tinyusdz::tydra::RenderScene &render_scene,
         const tinyusdz::Stage &usdStage,
         std::map<size_t, tinyusdz::tydra::Node> &meshNodes,
         const std::string &nameWExt) {
     const size_t numNodes{render_scene.nodes.size()};
     (void) numNodes; // Ignore unused variable when -Werror enabled
     stringstream ss;
     ss.str("");
     ss << "nodes(): model" << nameWExt << ", numNodes: " << numNodes;
     TINYUSDZLOGD(TAG, "%s", ss.str().c_str());
-    return nodesRecursive(nullptr, usdStage.root_prims()[0], render_scene.nodes[0], meshNodes);
+    if (usdStage.root_prims().empty() || render_scene.nodes.empty()) {
+        TINYUSDZLOGE(TAG, "nodes(): no root prims or nodes; cannot build node hierarchy");
+        return nullptr;
+    }
+    return nodesRecursive(nullptr, usdStage.root_prims()[0], render_scene.nodes[0], render_scene.skeletons);
 }

(Also fixes the argument type passed to nodesRecursive.)

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ab28db5 and a240b93.

📒 Files selected for processing (3)
  • code/AssetLib/Step/STEPFile.h (1 hunks)
  • code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (4 hunks)
  • code/AssetLib/USD/USDLoaderImplTinyusdz.h (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
code/AssetLib/USD/USDLoaderImplTinyusdz.h (1)
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (6)
  • setupNodes (805-827)
  • setupNodes (805-810)
  • nodes (829-841)
  • nodes (829-833)
  • nodesRecursive (846-1028)
  • nodesRecursive (846-850)
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (2)
include/assimp/metadata.h (1)
  • Alloc (314-325)
include/assimp/types.h (1)
  • aiString (288-289)
🪛 GitHub Check: SonarCloud Code Analysis
code/AssetLib/USD/USDLoaderImplTinyusdz.cpp

[failure] 815-815: Replace the use of "new" with an operation that automatically manages the memory.

See more on https://sonarcloud.io/project/issues?id=assimp_assimp&issues=AZqmAwjXnBXBuslGLpbU&open=AZqmAwjXnBXBuslGLpbU&pullRequest=5807

🔇 Additional comments (2)
code/AssetLib/Step/STEPFile.h (1)

922-924: MSVC inner warning push/pop is now correctly balanced

The added #if _MSC_VER > 1920 / #pragma warning(pop) cleanly matches the earlier inner #pragma warning(push) for newer MSVC versions without disturbing other toolchains. Looks good.

code/AssetLib/USD/USDLoaderImplTinyusdz.cpp (1)

64-64: Metadata include is appropriate for new aiMetadata usage

Including <assimp/metadata.h> is necessary now that aiMetadata::Alloc and aiMetadata::Add are used in nodesRecursive. No issues here.

Comment on lines +223 to 226

std::map<size_t, tinyusdz::tydra::Node> meshNodes;
setupNodes(render_scene, pScene, stage, meshNodes, nameWExt);
pScene->mRootNode = nodesRecursive(nullptr, render_scene.nodes[0], render_scene.skeletons);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Root node setup is inconsistent and current call won’t compile

Here you:

std::map<size_t, tinyusdz::tydra::Node> meshNodes;
setupNodes(render_scene, pScene, stage, meshNodes, nameWExt);
pScene->mRootNode = nodesRecursive(nullptr, render_scene.nodes[0], render_scene.skeletons);

Issues:

  • nodesRecursive’s signature was changed to take a const tinyusdz::Prim &prim as the second argument, so this call no longer matches and will fail to compile.
  • Even after fixing the signature, the second assignment overwrites the root node built by setupNodes, discarding the mNumMeshes/mMeshes wiring you just did.

Given setupNodes already sets pScene->mRootNode via nodes(...), the direct call to nodesRecursive should be removed.

-    std::map<size_t, tinyusdz::tydra::Node> meshNodes;
-    setupNodes(render_scene, pScene, stage, meshNodes, nameWExt);
-    pScene->mRootNode = nodesRecursive(nullptr, render_scene.nodes[0], render_scene.skeletons);
+    std::map<size_t, tinyusdz::tydra::Node> meshNodes;
+    setupNodes(render_scene, pScene, stage, meshNodes, nameWExt);
🤖 Prompt for AI Agents
In code/AssetLib/USD/USDLoaderImplTinyusdz.cpp around lines 223-226, the direct
call assigning pScene->mRootNode = nodesRecursive(...) no longer matches
nodesRecursive(const tinyusdz::Prim&) and also overwrites the root node already
initialized by setupNodes; remove the nodesRecursive assignment (delete or
comment out the pScene->mRootNode = nodesRecursive(...) line) so setupNodes
remains the sole initializer of pScene->mRootNode and avoid the
signature/compile error and the root-node overwrite.

@kimkulling
kimkulling merged commit a989b30 into assimp:master Nov 24, 2025
kimkulling added a commit that referenced this pull request Dec 1, 2025
…nces. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
kimkulling added a commit that referenced this pull request Dec 1, 2025
* fix: texture paths issues with fbx export

* Update LICENSE (#6327)

* FBX: Fix offset calculation by adding cursor check (#6337)

- closes #6336

* [CMake] -l (#6329)

- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>

* Add null check for aiNode in AddNode method (#6348)

- Added null check for node in AddNode function.
- closes #6347

* fix large glb reading by providing a proper helper for reading size_t type (#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Updated doc/Preamble.txt & SECURITY.md (#6338)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README! Fixed discord link as well (#6351)

* Better README!

* PyAssimp: Re-add 'aiProcess_Triangulate' (#6335)

apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fixed Build.md (#6354)

* Fixed itch.io spelling from itchi.io

* Fix hasTangentsAndBitangents method in AiMesh.java (#6345)

original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>

* Added tangent handedness to glTF export (#6322)

* Added tangent handedness to glTF export

* Restore merging of near-identical vertices for JoinIdenticalVertices (#6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>

* Add BOM skip and fix mtl parsing (#6253)

* Add BOM skip and fix mtl parsing
* Remove old code
* Fix #5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>

* Clone meshlab/tinyusdz repos in default location (#6239)

* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fix an invalid offsetof warning-as-error (#6359)

The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).

* Add unit test for subdivision modifier on Blender importer (#5345)

* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>

* Change strcpy to strncpy for format hint safety (#6365)

* Update default material name handling (#6366)

* Replace strcpy by strncpy

* Bugfix/fix sonarcube findings (#6369)

* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>

* Update texture output format in AssxmlFileWriter (#6372)

* Update texture output format in AssxmlFileWriter

* Collada: Fix overflow in CopyVertex (#6374)

* Fix overflow in CopyVertex

* COB: fix validation for ascii header (#6376)

* COB: fix validation for ascii header

* MD5: Fix face index allocation in MD5Parser (#6380)

- Ensure face indices are properly allocated and resized.
- closes #6379

* Removed unnecessary copy constructor declaration in aiVector3t (#6384)

* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t

* Bump actions/upload-artifact from 4 to 5 (#6383)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/download-artifact from 5 to 6 (#6382)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Made the README more tidy & fix Build.md (#6371)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio

* Fix out-of-range access cause of aiProcess_GenNormals : array size inconsistency of members of mesh after process (#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>

* Fix Heap-buffer-overflow in Q3DImporter::InternReadFile (#6370)

Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes #6358

Co-authored-by: Kim Kulling <[email protected]>

* Revert "Refactoring: use using types (#6266)" (#6324)

* Revert "Refactoring: use using types (#6266)"

* fix: write textures to folder of PBRT file (#6099)

* fix: write textures to folder of PBRT file

* Refactor condition checks for empty vectors (#6385)

* Refactor based on SonarCube.

* Fix sonarcube stuff (#6387)

* Fix sonarcube stuff

* Update contact email for reporting vulnerabilities (#6389)

* [PyAssimp] Create `pyproject.toml` (#6378)

* Create pyproject.toml

* glTF2: Avoid lookups for generating IDs (#6120)

* glTF2: Reduce lookups for generating IDs
- closes #5661

* Refactor string checks and variable declarations (#6392)

* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop

* Fix the doxygen documentation from public headers (#6394)

* Add documentation comments to DeboneProcess.h

* Added static cast for conversion from uLong to unsigned int for compiler error (#6393)

Co-authored-by: Kim Kulling <[email protected]>

* Reorganize code top prevent security warning. (#6395)

* Reorganize code to prevent security warning.

* Fix linkage (#6388)

* Fix linkage when all importers aren't part of the build.

* Update LineSplitter.h (#6396)

* Added missing scene extras properties for glTF2Importer (#6397)

* WiP. Passing USD prims along with render nodes to look for USD references. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/checkout from 5 to 6 (#6401)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Update Readme.md (#6402)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py (#6403)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp

* Fixed DXFHelper using float instead of ai_real (#6404)

* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Pelle Johnsen <[email protected]>
Co-authored-by: AbdulRehman <[email protected]>
Co-authored-by: Steven French <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: umläute <[email protected]>
Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: fifth_light <[email protected]>
Co-authored-by: Luca Della Vedova <[email protected]>
Co-authored-by: Matt Penny <[email protected]>
Co-authored-by: Paul Bauriegel <[email protected]>
Co-authored-by: Steve M <[email protected]>
Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Sami Liedes <[email protected]>
Co-authored-by: Alexandre Avenel <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Co-authored-by: EddieBreeg <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sSsA01 <[email protected]>
Co-authored-by: Jan Grulich <[email protected]>
Co-authored-by: Jan Honsbrok <[email protected]>
Co-authored-by: thedestroyer4312 <[email protected]>
Co-authored-by: Jerome St-Louis <[email protected]>
Co-authored-by: John Curley <[email protected]>
Co-authored-by: Orleonn <[email protected]>
Co-authored-by: Gene Walters <[email protected]>
Co-authored-by: JakobPer <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Dec 9, 2025
kimkulling added a commit that referenced this pull request Jul 1, 2026
…nces. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
kimkulling added a commit that referenced this pull request Jul 1, 2026
* fix: texture paths issues with fbx export

* Update LICENSE (#6327)

* FBX: Fix offset calculation by adding cursor check (#6337)

- closes #6336

* [CMake] -l (#6329)

- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>

* Add null check for aiNode in AddNode method (#6348)

- Added null check for node in AddNode function.
- closes #6347

* fix large glb reading by providing a proper helper for reading size_t type (#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Updated doc/Preamble.txt & SECURITY.md (#6338)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README! Fixed discord link as well (#6351)

* Better README!

* PyAssimp: Re-add 'aiProcess_Triangulate' (#6335)

apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fixed Build.md (#6354)

* Fixed itch.io spelling from itchi.io

* Fix hasTangentsAndBitangents method in AiMesh.java (#6345)

original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>

* Added tangent handedness to glTF export (#6322)

* Added tangent handedness to glTF export

* Restore merging of near-identical vertices for JoinIdenticalVertices (#6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>

* Add BOM skip and fix mtl parsing (#6253)

* Add BOM skip and fix mtl parsing
* Remove old code
* Fix #5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>

* Clone meshlab/tinyusdz repos in default location (#6239)

* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fix an invalid offsetof warning-as-error (#6359)

The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).

* Add unit test for subdivision modifier on Blender importer (#5345)

* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>

* Change strcpy to strncpy for format hint safety (#6365)

* Update default material name handling (#6366)

* Replace strcpy by strncpy

* Bugfix/fix sonarcube findings (#6369)

* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>

* Update texture output format in AssxmlFileWriter (#6372)

* Update texture output format in AssxmlFileWriter

* Collada: Fix overflow in CopyVertex (#6374)

* Fix overflow in CopyVertex

* COB: fix validation for ascii header (#6376)

* COB: fix validation for ascii header

* MD5: Fix face index allocation in MD5Parser (#6380)

- Ensure face indices are properly allocated and resized.
- closes #6379

* Removed unnecessary copy constructor declaration in aiVector3t (#6384)

* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t

* Bump actions/upload-artifact from 4 to 5 (#6383)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/download-artifact from 5 to 6 (#6382)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Made the README more tidy & fix Build.md (#6371)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio

* Fix out-of-range access cause of aiProcess_GenNormals : array size inconsistency of members of mesh after process (#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>

* Fix Heap-buffer-overflow in Q3DImporter::InternReadFile (#6370)

Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes #6358

Co-authored-by: Kim Kulling <[email protected]>

* Revert "Refactoring: use using types (#6266)" (#6324)

* Revert "Refactoring: use using types (#6266)"

* fix: write textures to folder of PBRT file (#6099)

* fix: write textures to folder of PBRT file

* Refactor condition checks for empty vectors (#6385)

* Refactor based on SonarCube.

* Fix sonarcube stuff (#6387)

* Fix sonarcube stuff

* Update contact email for reporting vulnerabilities (#6389)

* [PyAssimp] Create `pyproject.toml` (#6378)

* Create pyproject.toml

* glTF2: Avoid lookups for generating IDs (#6120)

* glTF2: Reduce lookups for generating IDs
- closes #5661

* Refactor string checks and variable declarations (#6392)

* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop

* Fix the doxygen documentation from public headers (#6394)

* Add documentation comments to DeboneProcess.h

* Added static cast for conversion from uLong to unsigned int for compiler error (#6393)

Co-authored-by: Kim Kulling <[email protected]>

* Reorganize code top prevent security warning. (#6395)

* Reorganize code to prevent security warning.

* Fix linkage (#6388)

* Fix linkage when all importers aren't part of the build.

* Update LineSplitter.h (#6396)

* Added missing scene extras properties for glTF2Importer (#6397)

* WiP. Passing USD prims along with render nodes to look for USD references. Save reference path to metaData['ref'] (#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/checkout from 5 to 6 (#6401)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Update Readme.md (#6402)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py (#6403)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp

* Fixed DXFHelper using float instead of ai_real (#6404)

* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Pelle Johnsen <[email protected]>
Co-authored-by: AbdulRehman <[email protected]>
Co-authored-by: Steven French <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: umläute <[email protected]>
Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: fifth_light <[email protected]>
Co-authored-by: Luca Della Vedova <[email protected]>
Co-authored-by: Matt Penny <[email protected]>
Co-authored-by: Paul Bauriegel <[email protected]>
Co-authored-by: Steve M <[email protected]>
Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Sami Liedes <[email protected]>
Co-authored-by: Alexandre Avenel <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Co-authored-by: EddieBreeg <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sSsA01 <[email protected]>
Co-authored-by: Jan Grulich <[email protected]>
Co-authored-by: Jan Honsbrok <[email protected]>
Co-authored-by: thedestroyer4312 <[email protected]>
Co-authored-by: Jerome St-Louis <[email protected]>
Co-authored-by: John Curley <[email protected]>
Co-authored-by: Orleonn <[email protected]>
Co-authored-by: Gene Walters <[email protected]>
Co-authored-by: JakobPer <[email protected]>
tkluge-fender pushed a commit to cclsoftware/assimp that referenced this pull request Jul 28, 2026
…nces. Save reference path to metaData['ref'] (assimp#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
tkluge-fender pushed a commit to cclsoftware/assimp that referenced this pull request Jul 28, 2026
* fix: texture paths issues with fbx export

* Update LICENSE (assimp#6327)

* FBX: Fix offset calculation by adding cursor check (assimp#6337)

- closes assimp#6336

* [CMake] -l (assimp#6329)

- Fix zlib linkage.

Co-authored-by: Kim Kulling <[email protected]>

* Add null check for aiNode in AddNode method (assimp#6348)

- Added null check for node in AddNode function.
- closes assimp#6347

* fix large glb reading by providing a proper helper for reading size_t type (assimp#6307)

Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Updated doc/Preamble.txt & SECURITY.md (assimp#6338)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README! Fixed discord link as well (assimp#6351)

* Better README!

* PyAssimp: Re-add 'aiProcess_Triangulate' (assimp#6335)

apparently, b9bfac0 accidentally
removed a couple of lines with a botched copy'n'paste.

Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fixed Build.md (assimp#6354)

* Fixed itch.io spelling from itchi.io

* Fix hasTangentsAndBitangents method in AiMesh.java (assimp#6345)

original code m_tangents != null && m_tangents != null; triggers error prone

Co-authored-by: Kim Kulling <[email protected]>

* Added tangent handedness to glTF export (assimp#6322)

* Added tangent handedness to glTF export

* Restore merging of near-identical vertices for JoinIdenticalVertices (assimp#6278)

* Restore merging of near-identical vertices for JoinIdenticalVertices

---------

Co-authored-by: Kim Kulling <[email protected]>

* Add BOM skip and fix mtl parsing (assimp#6253)

* Add BOM skip and fix mtl parsing
* Remove old code
* Fix assimp#5635
* Add all attributes to ObjFileData
---------

Co-authored-by: Kim Kulling <[email protected]>

* Clone meshlab/tinyusdz repos in default location (assimp#6239)

* Leave FETCHCONTENT_BASE_DIR as default to avoid target platform generated build file conflicts

* Attempt address sonarCloud complaint about generic-looking include file (bare "Parser.h")

---------

Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Fix an invalid offsetof warning-as-error (assimp#6359)

The code already disables the warning on clang. It's also caused on
GCC in some circumstances (particularly when building with
-D_GLIBCXX_DEBUG).

* Add unit test for subdivision modifier on Blender importer (assimp#5345)

* Add unit test for subdivision modifier on Blender importer

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.

* Update utBlenderImportExport.cpp

Fix compiler warning.

---------

Co-authored-by: Kim Kulling <[email protected]>

* Change strcpy to strncpy for format hint safety (assimp#6365)

* Update default material name handling (assimp#6366)

* Replace strcpy by strncpy

* Bugfix/fix sonarcube findings (assimp#6369)

* Fix sonarcube findings.
---------
Co-authored-by: Kim Kulling <[email protected]>

* Update texture output format in AssxmlFileWriter (assimp#6372)

* Update texture output format in AssxmlFileWriter

* Collada: Fix overflow in CopyVertex (assimp#6374)

* Fix overflow in CopyVertex

* COB: fix validation for ascii header (assimp#6376)

* COB: fix validation for ascii header

* MD5: Fix face index allocation in MD5Parser (assimp#6380)

- Ensure face indices are properly allocated and resized.
- closes assimp#6379

* Removed unnecessary copy constructor declaration in aiVector3t (assimp#6384)

* Removed unnecessary copy constructor declaration in aiVector3t
* Added copy constructor back in aiVector3t
* Added explicit declaration of assignment operator in aiVector3t

* Bump actions/upload-artifact from 4 to 5 (assimp#6383)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/download-artifact from 5 to 6 (assimp#6382)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Made the README more tidy & fix Build.md (assimp#6371)

* Update LICENSE

* Update Preamble.txt

* Update SECURITY.md

* Remove GitHub's default comment

* Better README!

* Fix discord link! Boom, that's how it's done

* Fixed itch.io spelling from itchi.io

* Make README more tidy :)

AR is back! Anyways, I'm working on my horror game & making devlogs so I don't have time to write. Here's a small summary:
- Just placed the dir structure information correctly in one place so the README looks tidy.

* Add international download link for Visual Studio

* Fix out-of-range access cause of aiProcess_GenNormals : array size inconsistency of members of mesh after process (assimp#6332)

* Fix aiProcess_GenNormals process: copy members of mesh corresponding with additional vertices

* Fix aiProcess_GenNormals process: Refoctoring

* refactoring: fix SonarQube Issue

* Update GenFaceNormalsProcess.cpp: fix small findings

---------

Co-authored-by: Kim Kulling <[email protected]>

* Fix Heap-buffer-overflow in Q3DImporter::InternReadFile (assimp#6370)

Checks if multiplying texture width and height would overflow before
performing the operation. This avoids incorrect memory allocations and
potential crashes with very large textures.

Fixes assimp#6358

Co-authored-by: Kim Kulling <[email protected]>

* Revert "Refactoring: use using types (assimp#6266)" (assimp#6324)

* Revert "Refactoring: use using types (assimp#6266)"

* fix: write textures to folder of PBRT file (assimp#6099)

* fix: write textures to folder of PBRT file

* Refactor condition checks for empty vectors (assimp#6385)

* Refactor based on SonarCube.

* Fix sonarcube stuff (assimp#6387)

* Fix sonarcube stuff

* Update contact email for reporting vulnerabilities (assimp#6389)

* [PyAssimp] Create `pyproject.toml` (assimp#6378)

* Create pyproject.toml

* glTF2: Avoid lookups for generating IDs (assimp#6120)

* glTF2: Reduce lookups for generating IDs
- closes assimp#5661

* Refactor string checks and variable declarations (assimp#6392)

* Refactor string checks and variable declarations

* Change string check from contains to find

* Fix syntax error in mesh node creation loop

* Fix the doxygen documentation from public headers (assimp#6394)

* Add documentation comments to DeboneProcess.h

* Added static cast for conversion from uLong to unsigned int for compiler error (assimp#6393)

Co-authored-by: Kim Kulling <[email protected]>

* Reorganize code top prevent security warning. (assimp#6395)

* Reorganize code to prevent security warning.

* Fix linkage (assimp#6388)

* Fix linkage when all importers aren't part of the build.

* Update LineSplitter.h (assimp#6396)

* Added missing scene extras properties for glTF2Importer (assimp#6397)

* WiP. Passing USD prims along with render nodes to look for USD references. Save reference path to metaData['ref'] (assimp#5807)

Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>

* Bump actions/checkout from 5 to 6 (assimp#6401)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kim Kulling <[email protected]>

* Update Readme.md (assimp#6402)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py (assimp#6403)

* Update Readme.md

- Reorganize readme for code structure

* Update Readme.md

* Delete test/other/streamload.py

* Delete test/regression directory

* Update AndroidJNIIOSystem.cpp

* Update BundledAssetIOSystem.cpp

* Fixed DXFHelper using float instead of ai_real (assimp#6404)

* Fixed DXFHelper using float instead of ai_real

* fixed cmake presets

---------

Co-authored-by: Kim Kulling <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: AMZN-Gene <[email protected]>
Co-authored-by: Pelle Johnsen <[email protected]>
Co-authored-by: AbdulRehman <[email protected]>
Co-authored-by: Steven French <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: Vitaly Ovchinnikov <[email protected]>
Co-authored-by: umläute <[email protected]>
Co-authored-by: IOhannes m zmölnig <[email protected]>
Co-authored-by: fifth_light <[email protected]>
Co-authored-by: Luca Della Vedova <[email protected]>
Co-authored-by: Matt Penny <[email protected]>
Co-authored-by: Paul Bauriegel <[email protected]>
Co-authored-by: Steve M <[email protected]>
Co-authored-by: tellypresence <[email protected]>
Co-authored-by: Sami Liedes <[email protected]>
Co-authored-by: Alexandre Avenel <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Co-authored-by: EddieBreeg <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sSsA01 <[email protected]>
Co-authored-by: Jan Grulich <[email protected]>
Co-authored-by: Jan Honsbrok <[email protected]>
Co-authored-by: thedestroyer4312 <[email protected]>
Co-authored-by: Jerome St-Louis <[email protected]>
Co-authored-by: John Curley <[email protected]>
Co-authored-by: Orleonn <[email protected]>
Co-authored-by: Gene Walters <[email protected]>
Co-authored-by: JakobPer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

USD Bugs related to the USD format.

Projects

Development

Successfully merging this pull request may close these issues.

3 participants