Commit Graph

259 Commits

Author SHA1 Message Date
Tim Moore e60e936e67 format fixes 2024-05-17 19:42:22 +02:00
Tim Moore ed9bfa851c Merge branch 'tmp/quatFunc' into i3dm-2024 2024-05-17 19:32:49 +02:00
Tim Moore c6b5321d0a Merge remote-tracking branch 'origin/i3dm-2024' into i3dm-2024 2024-05-17 19:32:19 +02:00
Tim Moore be323a4887 Move rotation function to CesiumUtility/Math.h 2024-05-17 19:30:45 +02:00
Tim Moore 88a3b8dfb7 Use gsl:span instead of raw pointers 2024-05-17 18:35:08 +02:00
Tim Moore 7369873a40 Rework applyRTC and meshGpuTransforms
Rename and rework arguments in response to review comments.
2024-05-17 16:43:35 +02:00
Tim Moore 598fd2e92f Break i3dm JSON parsing out into a helper function 2024-05-17 15:54:09 +02:00
Tim Moore 068f70ed50 WIP responding to review comments 2024-05-17 12:24:31 +02:00
Tim Moore ea79bb8a76 Reponse to feedback: change ConverterSubprocessor to AssetFetcher 2024-05-16 17:05:33 +02:00
Tim Moore d238025621 Add a perpVec function and use it
A simple function for computing a perpendicular vector.
2024-05-07 17:58:06 +02:00
Tim Moore 5731d48998 Squash some CI compilation errors
Fix a real truncation issue, and some noise from overzealous gcc.
2024-05-07 16:27:42 +02:00
Tim Moore 1cd4ab750c Modify Cesium3DTilesContent tests to use ConverterSubprocessor
Tests compile again.
2024-05-07 15:51:21 +02:00
Brian L 47414f09fb Make our ASSERT macro. Move everything to use this. 2024-05-03 12:50:50 -06:00
Tim Moore 46581092d1 Refactor with helpers for converting glTF values to glm. 2024-04-26 16:54:18 +02:00
Tim Moore 9661e40ead Refactor and support existing instances in GLB
Simplified the code by not trying to optimize the inclusion of
rotation and scale transforms.
2024-04-26 11:19:28 +02:00
Tim Moore 80ade66237 I3dm: Support the EAST_NORTH_UP global semantic 2024-04-26 10:23:01 +02:00
Tim Moore 616bf74e73 Rebase instance positions to their mean
Construct an RTC_CENTER, in effect. Otherwise instance positions could
be too large to render without jitter.
2024-04-19 18:19:55 +02:00
Tim Moore 0a4a5a9665 Merge branch 'main' into i3dm-2024 2024-04-17 17:56:57 +02:00
Tim Moore 7db60d6234 Add std::move in response to compiler warning 2024-04-17 17:16:29 +02:00
Tim Moore 81bb2ff1bd Change ConverterSubprocessor arguments from pointer to reference
It's required now.
2024-04-17 16:55:35 +02:00
Tim Moore 806d0edfec WIP glTF converter functions return a Future 2024-04-17 12:40:24 +02:00
Brian Langevin c55660118c
Merge branch 'main' into upsampling-inverted-v 2024-04-12 14:49:08 -06:00
Janine Liu 43b15c8876 Minor changes 2024-04-12 11:40:52 -04:00
Kevin Ring abaf72bada upsampleGltfForRasterOverlays -> RasterOverlayUtilities 2024-04-12 16:59:24 +10:00
Tim Moore 37f3684ef9 Preserve double values from i3dm, WIP 2024-04-11 11:54:30 +02:00
Tim Moore b1c9f9484d More formatting fun 2024-04-11 11:02:17 +02:00
Tim Moore 9b2bde2626 remove const from static_cast to satisfy gcc 2024-04-11 10:12:18 +02:00
Kevin Ring 44ceb53856
Merge branch 'main' into upsampling-inverted-v 2024-04-10 16:50:26 -04:00
Tim Moore 72a8fb5201 Fix convert calls in tests 2024-04-10 16:02:15 +02:00
Tim Moore fe1f01d01c use npm format properly 2024-04-09 12:25:24 +02:00
Tim Moore dd563d5c72 Add support for I3dm 3D Tile instance files
Initial commit of the main body of new code. A lot was taken or
inspired from PntsToGltfConverter, which should now be refactored to
use the new common functions.

ENU rotations are not supported yet.
2024-04-08 18:43:35 +02:00
Kevin Ring 1b41edb3c3 Fix Clang/GCC warning-as-error. 2024-04-08 21:44:30 +10:00
Kevin Ring 0f3364a9d2 Add Draco bufferView test. 2024-04-08 21:04:53 +10:00
Kevin Ring 5c694f4e14 More tests. 2024-04-08 19:39:15 +10:00
Kevin Ring b89f43db42 Add test for CESIUM_RTC in extensionsUsed. 2024-04-08 19:31:38 +10:00
Kevin Ring e094899d16 More tests, clarify changelog. 2024-04-08 19:09:50 +10:00
Kevin Ring 665ec11a1a Add some tests. 2024-04-08 17:38:58 +10:00
Kevin Ring 8c05f96f6e Various fixed to correctness of glTF generation. 2024-04-08 15:40:56 +10:00
Kevin Ring 470218423a Merge remote-tracking branch 'origin/main' into cesium-legacy-terrain 2024-04-06 19:05:27 +11:00
Kevin Ring 07ea4b3b9f
Merge branch 'main' into upsampling-inverted-v 2024-04-06 04:02:05 -04:00
Janine Liu 2840801aa1 Quick fixes 2024-04-05 15:33:24 -04:00
Janine Liu 8902e48810
Merge branch 'main' into quantized-mesh-gltf-fixes 2024-04-05 15:19:40 -04:00
Janine Liu 4c0b7d1441 Doc tweak and reorganize tests 2024-04-05 14:17:23 -04:00
Kevin Ring 2b113b6270 Add tests and doc. 2024-04-05 18:00:49 +11:00
Kevin Ring 18251942c8 Fix unnecessarily complicated (and broken) logic. 2024-04-05 17:00:43 +11:00
Kevin Ring a18610a77a Fix upsampling with inverted V coordinate and images. 2024-04-05 17:00:43 +11:00
Kevin Ring f024e53448 Add hasInvertedVCoordinate option to upsampleGltfForRasterOverlays. 2024-04-05 17:00:43 +11:00
Kevin Ring 45dc731f33 upsampleGltfForRasterOverlays takes tex coord attr name as a parameter. 2024-04-05 17:00:43 +11:00
Kevin Ring b3b49446fe Improve doc. 2024-04-04 23:45:45 +11:00
Kevin Ring 2e0d1273f7 Add tests, update CHANGES.md. 2024-04-04 23:42:59 +11:00
Kevin Ring 4be1cbb758 Add TileTransform::setTransform. 2024-04-04 23:24:42 +11:00
Kevin Ring 57a9ed3e2c Move QuantizedMeshLoader to CesiumLegacyTerrain. 2024-04-04 22:15:11 +11:00
Kevin Ring ce0dc39776 Rename test file, and add tests. 2024-04-04 21:59:26 +11:00
Kevin Ring 18aad70462 Merge remote-tracking branch 'origin/main' into quantized-mesh-gltf-fixes 2024-04-04 21:38:32 +11:00
Brian Langevin 5da55c23b3
Revert "Upgrade spdlog" 2024-03-22 14:14:38 -06:00
Brian Langevin ad6ef90102
Merge pull request #816 from Klebert-Engineering/spdlog-upgrade
Upgrade spdlog
2024-03-22 13:51:24 -06:00
Brian Langevin d302a807bb
Merge branch 'main' into tile-bounding-volumes 2024-03-21 15:14:14 -06:00
Sean Lilley 2bb28a1335 Fix compiling in gcc-13 2024-03-11 10:47:14 -04:00
Kevin Ring ba8cbcb7ce Fix problems with QuantizedMeshLoader-generated glTFs. 2024-03-06 16:44:38 +11:00
Kevin Ring c055006d3d Add some new bounding volume related helpers. 2024-03-04 19:04:20 +11:00
Bradley Austin Davis 24d783fb01 Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
Kevin Ring c341a72806 Revert "Merge pull request #786 from jherico/feature-vcpkg"
This reverts commit 198ed9d4b4, reversing
changes made to 09c1eb76b4.
2024-02-23 09:08:15 +11:00
Joseph Birkner 3856537503 Cast rapidjson errors to int for logging. 2024-02-22 09:40:41 +01:00
Joseph Birkner 684fecc886 Do not include internal spdlog if it is already provided. 2024-02-21 17:34:56 +01:00
Ashley Rogers 10753a931f
Merge branch 'main' into feature-vcpkg 2024-02-20 13:44:11 -05:00
Sean Lilley 3d2b1bb14c Fix formatting 2024-02-13 12:31:28 -05:00
Sean Lilley 4ac60b45ea Remove support for EXT_feature_metadata in CesiumGltf, CesiumGltfReader, and CesiumGltfWriter 2024-02-13 12:21:02 -05:00
Bradley Austin Davis e20c154c55 Migrating dependencies to vcpkg 2024-02-02 10:40:59 -08:00
Janine Liu a56def2c89 Merge branch 'main' into correct-variable-length-arrays 2024-01-23 13:25:51 -05:00
Janine Liu 695898e37d Interpret offsets as array indices, not byte offsets 2024-01-18 16:45:31 -05:00
Kevin Ring 21c689b017 Allow implicit subtree buffers to be padded to 8 bytes. 2024-01-16 22:40:04 +11:00
Janine Liu 4ac199cdf1 Add more rigorous checks 2024-01-10 17:30:37 -05:00
Janine Liu d49a49d647 Consolidate if statement 2024-01-10 15:54:04 -05:00
Janine Liu 89ecd309dc Fix erroneous sentinel value assignment 2024-01-10 14:53:03 -05:00
Kevin Ring 262846e69b Rename, doc, test, CHANGES.md. 2023-12-07 13:13:00 +11:00
Hannes Janetzek 0aa888d548 fix crash from accessing deleted SubtreeFileReader
keep SubtreeFileReader instance in the loaders future context
2023-12-05 18:04:34 +01:00
Kevin Ring eb0805545e Merge remote-tracking branch 'origin/raster-overlay-refactoring' into bake-overlays-to-gltf 2023-11-29 09:32:36 +11:00
Kevin Ring 1a82401d1a Add contentId bounds check. 2023-11-29 09:11:42 +11:00
Kevin Ring 0a535f44a2 Use availability constants instead of 1/0. 2023-11-29 08:55:30 +11:00
Janine Liu bed08f690c ID -> Id 2023-11-20 14:43:51 -05:00
Janine Liu ebbc9c61c4 Fix typos and add missing param docs 2023-11-20 14:40:11 -05:00
Kevin Ring 4361563eed Merge remote-tracking branch 'origin/raster-overlay-refactoring' into bake-overlays-to-gltf 2023-11-17 17:14:32 +11:00
Kevin Ring 367a766888 Merge remote-tracking branch 'origin/main' into better-subtrees 2023-11-17 16:58:24 +11:00
Janine Liu b12ae77327 Merge branch 'main' into quantized-and-implicit 2023-11-15 13:55:03 -05:00
Janine Liu 96b632b0ef Doc tweaks 2023-11-15 13:37:28 -05:00
Janine Liu d3700dda57 Minor doc changes 2023-11-15 11:36:48 -05:00
Kevin Ring 761630d45a Add CesiumGltfContent library. 2023-11-15 17:20:08 +11:00
Kevin Ring 8a0293ec63 Clang warnings in tests. 2023-11-13 22:18:10 +11:00
Kevin Ring 61c29cbf24 Fix SubtreeAvailability field init order. 2023-11-13 22:12:14 +11:00
Kevin Ring 3d990cc617 More GCC/Clang warnings. 2023-11-13 21:51:43 +11:00
Kevin Ring dfe69c5baf Doc comments, slight reorg. 2023-11-13 19:36:35 +11:00
Kevin Ring 4edde85c41 Allow modification of SubtreeAvailability. 2023-11-13 18:11:49 +11:00
Kevin Ring 2bdd74a0a3 Use generated classes to read subtrees. 2023-11-10 23:26:42 +11:00
Kevin Ring 6497d291bf Fix GCC warning. 2023-11-08 21:34:07 +11:00
Kevin Ring a91979eb3c Fix clang warnings. 2023-11-08 21:16:11 +11:00
Kevin Ring 3a558f37f5 Make sure libmorton is treated as a system library. 2023-11-08 21:10:52 +11:00
Kevin Ring a950b38b1f Add bounding volume tests. 2023-11-08 19:54:08 +11:00
Kevin Ring f004b77864 Add some tests, fix some bugs. 2023-11-08 19:20:09 +11:00
Kevin Ring 5def156fde Add computeLevelDenominator. 2023-11-08 18:10:51 +11:00
Kevin Ring 75f545bb71 Move implicit BV computations to ImplicitTilingUtilities. 2023-11-08 18:04:23 +11:00
Kevin Ring fdf1084887 Move quadtree computations into ImplicitTilingUtilities. 2023-11-08 16:49:40 +11:00
Kevin Ring 48c37e84bd More implicit tiling support. 2023-11-07 22:54:15 +11:00
Kevin Ring 22b447e9ac Add ImplicitTiling class. 2023-11-07 18:36:58 +11:00
Kevin Ring bb9caf138b Doc improvements. 2023-11-07 17:42:18 +11:00
Kevin Ring a1b3725816 Add TileTransform class. 2023-11-06 22:24:26 +11:00
Kevin Ring ec02c89a6b Add TileBoundingVolumes class, other BV tweaks. 2023-11-06 18:48:23 +11:00
Kevin Ring f3bdf698e2 Change namespace of Cesium3DTilesContent types. 2023-11-02 22:05:00 +11:00
Kevin Ring c561b6407c Move more functionality to Cesium3DTilesContent. 2023-11-02 19:48:57 +11:00
Kevin Ring a71a982986 Add new Cesium3DTilesContent library. 2023-11-02 17:41:09 +11:00