17 Commits

Author SHA1 Message Date
Nyall Dawson
ad7cb46cd0 Update tinygltf to v 2.9.6 2025-08-16 05:17:50 +10:00
Nyall Dawson
9026d2e375 Fix missing argument warnings on mingw build 2025-08-16 05:17:50 +10:00
Matthias Kuhn
c268fb1403 Externalize nlohmann 2024-06-29 13:59:52 +02:00
Nyall Dawson
1fd3def743 Resync embedded tinygltf
Notably fixes an issue where valid but empty gltf content is
reported as a broken gltf, instead of just ignored.
2024-01-29 17:48:33 +10:00
Nyall Dawson
0b4e023b56 Resync tinygltf to upstream 2023-12-06 17:55:38 +10:00
Nyall Dawson
d07bd5a5a4 Resync tinygltf 2023-09-22 14:28:06 +10:00
Nyall Dawson
d8cc819d89 Resync with upstream tinygltf 2023-09-07 09:03:55 +02:00
Nyall Dawson
6dde6ee503 Fix windows build -- STRICT is a msvc macro 2023-09-03 14:30:11 +10:00
Nyall Dawson
cd9c65c12b Fix windows build 2023-09-03 14:30:11 +10:00
Nyall Dawson
cd3cc45c0b Resync tinygltf with upstream (no downstream patches now) 2023-09-03 14:30:11 +10:00
Nyall Dawson
1b8c463d77 Resync tinygltf with master, removes need for one downstream patch 2023-09-03 14:30:11 +10:00
Nyall Dawson
d77e978dbd Handle the situation where a stored component type is incorrect
and not sufficient to store the actual number of stored points

Ports the workaround from d9172461e2/CesiumGltfReader/src/decodeDraco.cpp (L101)
2023-08-24 10:39:04 +02:00
Nyall Dawson
aad269ee10 Fix misleading error message
Submitted upstream as https://github.com/syoyo/tinygltf/pull/446
2023-08-24 10:37:14 +02:00
Nyall Dawson
b35988e412 Raise a warning when encountering emissiveFactor with array length
of 4 instead of aborting the model loading

Submitted upstream as https://github.com/syoyo/tinygltf/pull/445
2023-08-24 10:37:14 +02:00
Nyall Dawson
0ffb24005a Upgrade tinygltf to 2.8.14
No relevant fixes, just minimizing diff with upstream
2023-08-24 10:37:14 +02:00
Martin Dobias
126371fb6d Load GLTF models as Qt3D entities
- QgsGltfUtils in qgis_core adds helpers useful also for 2D rendering
- QgsGltf3DUtils in qgis_3d adds function to convert GLTF model to QEntity
- Added tests
- Added draco library support (optional) to decode GLTF files with draco mesh compression
- Updated tinygltf to 2.8.11 (among other things, fixes a compiler warning that 2.8.10 was triggering)
2023-08-07 21:27:21 +02:00
Martin Dobias
b9b9fe8214 Add tinygltf (2.8.10) to external libs
This is a simple header-only library that allows reading GLTF files
containing 3D graphics content. This will be useful for 3D tiles support.

The library does not have any dependencies other than nlohmann's json
which we already have in the "external" directory.
2023-07-13 08:45:13 +10:00