Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the GLTF writer to support writing textured models #6101

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Commits on Apr 20, 2023

  1. Fix for Issue isl-org#5924:

    Changed TriangleMesh::materials_ to be a std::vector<std::pair<std::string, Material>> so that the order of materials when loading a mesh is respected.
    Using the unordered map caused issues when a Default Material and a texture were loaded and the texture would end up as the second material in the iterator.
    Now TriangleMesh::triangle_material_ids_ will indicate what material index should be used.
    A warning is given when passing a TriangleMesh to the visualizer and more than one material index is found, and the minimum value found in TriangleMesh::triangle_material_ids_ is used.
    If no triangle_material_ids_ exist then the first material in the order they are loaded will be used.
    dbs4261 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a09c8bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01fdc2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e156c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ffe35b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c763d91 View commit details
    Browse the repository at this point in the history
  6. Add Model.cpp to the build this has code to separate a TriangleMesh b…

    …y its materials into a TriangleMeshModel
    dbs4261 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    6c06ce6 View commit details
    Browse the repository at this point in the history
  7. Updated TinyGLTF version

    dbs4261 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    339fde8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    23d5f6d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    55e7ed4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e65cb0e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    104b77c View commit details
    Browse the repository at this point in the history
  12. Renamed functions to match with existing naming scheme. Added docstri…

    …ngs. Removed dead code.
    dbs4261 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    465a073 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c1a9de6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3a036bd View commit details
    Browse the repository at this point in the history
  15. Added python bindings to creating a TriangleMeshModel from a Triangle…

    …Mesh as well as for exporting a TriangleMeshModel to GLTF
    dbs4261 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    dffeff1 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. Formatter changes

    dbs4261 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    9ef2a54 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. Fixed bug where iterators weren't dereferenced when checking if more …

    …than one material was in use.
    dbs4261 committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    58708c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2023

  1. Configuration menu
    Copy the full SHA
    83f693a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d12154 View commit details
    Browse the repository at this point in the history
  3. FINALLY fixed issue with per-vertex UV conversion. It was not checkin…

    …g for remapped vertices correctly.
    dbs4261 committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    65ecead View commit details
    Browse the repository at this point in the history