Skip to content

Basic glTF support (experimental) - #697

Merged
kimkulling merged 5 commits into
assimp:masterfrom
otgerrogla:master
Nov 27, 2015
Merged

kimkulling merged 5 commits into
assimp:masterfrom
otgerrogla:master

Conversation

@otgerrogla

Copy link
Copy Markdown
Contributor

I had made a basic implementation for a glTF importer for my own use (and started working on a exporter), and as I see support for it is being added, I'd like to contribute it. It uses RapidJSON instead of picojson though (because it supports in-place parsing, avoiding making a lot of copies), which it is licensed under MIT (not sure if there are license compatibility issues).

It can read both text (gltf) and binary (glb) formats, and currently only imports a subset of the data: the node hierarchy (with transforms), materials (basic properties), textures (both file references and embedded), and the meshes (vertex positions, normals, texture coordinates and the faces).

It is still experimental, but I tried most of the glTF's repo models and they seem to work correctly in all their variants. In any case I think it could be a good starting point.

@otgerrogla otgerrogla changed the title Basic experimental glTF support Basic glTF support (experimental) Nov 27, 2015
kimkulling added a commit that referenced this pull request Nov 27, 2015
Basic glTF support (experimental)
@kimkulling
kimkulling merged commit 75f7d93 into assimp:master Nov 27, 2015
@kimkulling

Copy link
Copy Markdown
Member

Much better than my first baby steps. Thanks a lot!

@kimkulling kimkulling mentioned this pull request Nov 28, 2015
@acgessler

Copy link
Copy Markdown
Member

Is it intentional that many test models (e.g., 2CylinderEngine) or also the model in the repository appear to have their hierarchy imported incorrectly and/or textures flipped?

Or is this a recent regression?

acgessler added a commit that referenced this pull request May 5, 2016
gltf could be a regression, left a question here: #697
@kimkulling

Copy link
Copy Markdown
Member

I don't think so.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 5942d60 on otgerrogla:master into ** on assimp:master**.

mosfet80 added a commit to mosfet80/assimp that referenced this pull request Dec 11, 2023
Silence warnings when building with CMake 3.27 by @hjmallon in assimp#717
update gate submodule with fixed CMake 3.27 deprecation warnings as well
glog: add version 0.6.0 and disable new dependencies by @NeroBurner in assimp#719
ceres-solver: update to v2.2.0-p1 by @NeroBurner in assimp#720
Update 'GTest' to v1.14.0 by @hjmallon in assimp#705
Update 'pybind11' to v2.11.1 by @hjmallon in assimp#706
ceres-solver: update to v2.2.0-p0 and fix examples by @NeroBurner in assimp#703
Eigen: explicitly disable Fortran usage by @NeroBurner in assimp#704
OpenSSL: Fix v3 version parsing by @hjmallon in assimp#707
Update 'Boost' to 1.83 by @hjmallon in assimp#708
Update 'OpenSSL' to v3.0.12 and v3.1.4 by @hjmallon in assimp#710
Update 'abseil' to 20230802.1 by @hjmallon in assimp#711
Update 'benchmark' to v1.8.3 by @hjmallon in assimp#712
Update 'sqlite3' to v3.43.2 by @hjmallon in assimp#716
Update 'CURL' to v8.4.0 by @hjmallon in assimp#663
CI: remove macos-10.15 jobs as the macos-10.15 runners are removed by @NeroBurner in assimp#695
ZLIB: update to version v1.3.0-p0 by @NeroBurner in assimp#693
miniz: update to v3.0.2 by @NeroBurner in assimp#692
Update fmt package to 10.1.1 by @JamesEggleton in assimp#697
Update spdlog package to 1.12.0-p0 by @JamesEggleton in assimp#699
Update zstd package to 1.5.5 by @JamesEggleton in assimp#700
SuiteSparse: update to 1.8.0 / 5.4.0-2 by @NeroBurner in assimp#702
OpenCV, Extra, ippicv: update to v4.8.1-p0 by @NeroBurner in assimp#696
hunter_setup_msvc: tolower to fix arm64 vs ARM64 confusion by @NeroBurner in assimp#681
Add various recent LLVM versions by @mrexodia in assimp#517
Update fmt package to 9.1.0 by @apivovarov in assimp#683
Update asio-grpc to v2.6.0 by @Tradias in assimp#686
assimp#685 Minimum cmake version required now 3.5 by @john-forrest in assimp#689
@mosfet80 mosfet80 mentioned this pull request Dec 11, 2023
kimkulling added a commit that referenced this pull request Feb 5, 2024
* Update CMakeLists.txt

Silence warnings when building with CMake 3.27 by @hjmallon in #717
update gate submodule with fixed CMake 3.27 deprecation warnings as well
glog: add version 0.6.0 and disable new dependencies by @NeroBurner in #719
ceres-solver: update to v2.2.0-p1 by @NeroBurner in #720
Update 'GTest' to v1.14.0 by @hjmallon in #705
Update 'pybind11' to v2.11.1 by @hjmallon in #706
ceres-solver: update to v2.2.0-p0 and fix examples by @NeroBurner in #703
Eigen: explicitly disable Fortran usage by @NeroBurner in #704
OpenSSL: Fix v3 version parsing by @hjmallon in #707
Update 'Boost' to 1.83 by @hjmallon in #708
Update 'OpenSSL' to v3.0.12 and v3.1.4 by @hjmallon in #710
Update 'abseil' to 20230802.1 by @hjmallon in #711
Update 'benchmark' to v1.8.3 by @hjmallon in #712
Update 'sqlite3' to v3.43.2 by @hjmallon in #716
Update 'CURL' to v8.4.0 by @hjmallon in #663
CI: remove macos-10.15 jobs as the macos-10.15 runners are removed by @NeroBurner in #695
ZLIB: update to version v1.3.0-p0 by @NeroBurner in #693
miniz: update to v3.0.2 by @NeroBurner in #692
Update fmt package to 10.1.1 by @JamesEggleton in #697
Update spdlog package to 1.12.0-p0 by @JamesEggleton in #699
Update zstd package to 1.5.5 by @JamesEggleton in #700
SuiteSparse: update to 1.8.0 / 5.4.0-2 by @NeroBurner in #702
OpenCV, Extra, ippicv: update to v4.8.1-p0 by @NeroBurner in #696
hunter_setup_msvc: tolower to fix arm64 vs ARM64 confusion by @NeroBurner in #681
Add various recent LLVM versions by @mrexodia in #517
Update fmt package to 9.1.0 by @apivovarov in #683
Update asio-grpc to v2.6.0 by @Tradias in #686
#685 Minimum cmake version required now 3.5 by @john-forrest in #689

* Update CMakeLists.txt

* Update CMakeLists.txt

---------

Co-authored-by: Kim Kulling <[email protected]>
kimkulling added a commit that referenced this pull request Jul 1, 2026
* Update CMakeLists.txt

Silence warnings when building with CMake 3.27 by @hjmallon in #717
update gate submodule with fixed CMake 3.27 deprecation warnings as well
glog: add version 0.6.0 and disable new dependencies by @NeroBurner in #719
ceres-solver: update to v2.2.0-p1 by @NeroBurner in #720
Update 'GTest' to v1.14.0 by @hjmallon in #705
Update 'pybind11' to v2.11.1 by @hjmallon in #706
ceres-solver: update to v2.2.0-p0 and fix examples by @NeroBurner in #703
Eigen: explicitly disable Fortran usage by @NeroBurner in #704
OpenSSL: Fix v3 version parsing by @hjmallon in #707
Update 'Boost' to 1.83 by @hjmallon in #708
Update 'OpenSSL' to v3.0.12 and v3.1.4 by @hjmallon in #710
Update 'abseil' to 20230802.1 by @hjmallon in #711
Update 'benchmark' to v1.8.3 by @hjmallon in #712
Update 'sqlite3' to v3.43.2 by @hjmallon in #716
Update 'CURL' to v8.4.0 by @hjmallon in #663
CI: remove macos-10.15 jobs as the macos-10.15 runners are removed by @NeroBurner in #695
ZLIB: update to version v1.3.0-p0 by @NeroBurner in #693
miniz: update to v3.0.2 by @NeroBurner in #692
Update fmt package to 10.1.1 by @JamesEggleton in #697
Update spdlog package to 1.12.0-p0 by @JamesEggleton in #699
Update zstd package to 1.5.5 by @JamesEggleton in #700
SuiteSparse: update to 1.8.0 / 5.4.0-2 by @NeroBurner in #702
OpenCV, Extra, ippicv: update to v4.8.1-p0 by @NeroBurner in #696
hunter_setup_msvc: tolower to fix arm64 vs ARM64 confusion by @NeroBurner in #681
Add various recent LLVM versions by @mrexodia in #517
Update fmt package to 9.1.0 by @apivovarov in #683
Update asio-grpc to v2.6.0 by @Tradias in #686
#685 Minimum cmake version required now 3.5 by @john-forrest in #689

* Update CMakeLists.txt

* Update CMakeLists.txt

---------

Co-authored-by: Kim Kulling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants