Commit Graph

1628 Commits

Author SHA1 Message Date
Ashley Rogers 6aa10bb592 Fix cast issues 2024-12-18 10:01:52 -05:00
Kevin Ring c32cdafc24
Update Cesium3DTilesSelection/test/TestTilesetSelectionAlgorithm.cpp
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2024-12-18 21:02:48 +11:00
Kevin Ring bb2b7b2963
Update Cesium3DTilesSelection/src/Tileset.cpp
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2024-12-18 20:56:46 +11:00
Ashley Rogers 7ef48d56c7 Fix additional clang-tidy issues 2024-12-17 17:41:42 -05:00
Ashley Rogers 77094edb1f Format 2024-12-17 17:27:27 -05:00
Ashley Rogers 1e2e47ab5e misc-include-cleaner for every file 2024-12-17 17:27:03 -05:00
Ashley Rogers 2ce337be44 Merge from main 2024-12-17 11:36:54 -05:00
Ashley Rogers f934b40717 All warnings resolved 2024-12-17 11:30:58 -05:00
Kevin Ring 54f9d4b6f5 Merge remote-tracking branch 'origin/main' into doc-tile-selection-algorithm 2024-12-17 11:20:15 +11:00
Kevin Ring 4e6e2b8300
Merge pull request #1024 from CesiumGS/update-readme
Overhaul README
2024-12-17 10:36:08 +11:00
Kevin Ring f8956edf9c Fix misplaced doc comment. 2024-12-17 10:28:55 +11:00
Kevin Ring 09b25b6aa8 Fix test failures. 2024-12-16 22:59:26 +11:00
Kevin Ring 2436a0e5c4 Merge remote-tracking branch 'origin/main' into kick-to-renderable 2024-12-16 20:33:02 +11:00
Ashley Rogers 39e7037927 Enum value 'descriptions' for generated code 2024-12-13 11:20:02 -05:00
Janine Liu 44c5892779
Apply suggestions from code review 2024-12-13 10:50:46 -05:00
Kevin Ring 3251cda0dc Don't kick to a tile that isn't renderable.
Unless the loadingDescendantLimit is exceeded.
2024-12-13 22:11:32 +11:00
Ashley Rogers f91818e039 Even more documentation 2024-12-11 15:33:30 -05:00
Kevin Ring 16b237e84e Improve clarity of selection algorithm. 2024-12-11 07:37:22 +11:00
Ashley Rogers 254e7598b8 Some async, geometry, selection docs 2024-12-10 11:26:13 -05:00
Kevin Ring d890aa9178 Slight reorganization of "ancestorMeetsSse" for clarity. 2024-12-10 22:08:46 +11:00
Kevin Ring 9e7f8522c3 Formatting. 2024-12-09 21:27:52 +11:00
Kevin Ring 94ad53bf7f Fix selection bug, and debug helper. 2024-12-09 21:26:00 +11:00
Ashley Rogers 4d82403b80 Pan-zoom, add dependencies page. 2024-12-06 18:21:57 -05:00
Ashley Rogers bb365c8aee Dependency graph generation 2024-12-04 14:39:16 -05:00
Kevin Ring 4018349f68 CHANGES.md, changes from self review. 2024-11-29 20:51:26 +11:00
Kevin Ring c91707ec12 More cleanup. 2024-11-29 19:53:33 +11:00
Kevin Ring e6b7e233d5 Remove unnecessary field from QuantizedMeshLoadResult. 2024-11-29 19:44:53 +11:00
Kevin Ring 97ee4f37e0 Comments and cleanup. 2024-11-29 19:28:32 +11:00
Kevin Ring e55b35c435 Re-add `Tileset::getExternals`. 2024-11-29 19:13:12 +11:00
Kevin Ring d19af4955d Better token refresh logging. 2024-11-29 18:05:18 +11:00
Kevin Ring 086903e60a Fix Clang / GCC warnings. 2024-11-29 07:46:35 +11:00
Kevin Ring 77743cba4e Refresh ion token on 401 for any type of asset.
By using an IAssetAccessor decorator.
2024-11-28 22:50:18 +11:00
Kevin Ring 6ef197053f Several fixes for shared asset problems. 2024-11-28 18:31:42 +11:00
Ashley Rogers 08dcb82f9e Document undocumented parameters 2024-11-26 14:27:37 -05:00
Ashley Rogers fdabe39f6e Fix some Doxygen warnings 2024-11-26 14:14:58 -05:00
Ashley Rogers cca8871eef Include both catch2 headers 2024-11-22 11:30:45 -05:00
Ashley Rogers f82d65bead Change Catch2 header 2024-11-22 11:17:21 -05:00
Ashley Rogers 3832758a15 Merge from main 2024-11-21 15:48:02 -05:00
Kevin Ring db94337b49 Merge remote-tracking branch 'origin/main' into ellipsoid-height-queries 2024-11-21 21:14:44 +11:00
Ashley Rogers acc9e81d12 Merge from main 2024-11-20 17:12:43 -05:00
Ashley Rogers 52633c67f4 Non-PropertyTable changes 2024-11-20 16:20:04 -05:00
Kevin Ring 3168f9eef1 Rename ITilesetHeightQuery to ITilesetHeightSampler. 2024-11-21 07:19:43 +11:00
Ashley Rogers 86a4bf7e53 Fix warnings ignored on headers with SYSTEM 2024-11-19 15:47:40 -05:00
Kevin Ring 34cff71426 Add ITilesetHeightQuery. 2024-11-19 21:47:50 +11:00
Kevin Ring 5e5c4b1911 Add test for height queries against EllipsoidTilesetLoader. 2024-11-19 20:52:05 +11:00
Kevin Ring a6e2c8b05f Eliminate block of useless indices from EllipsoidTilesetLoader.
EllipsoidTilesetLoader was passing a size to the constructor for the
std::vector used to store the indices, and then it was also adding the
indices by calling `insert`. That resulted in a giant block of useless
(0,0,0) indices, followed by the useful ones created by the insert.

This change uses `reserve` instead of passing a size to the constructor.
2024-11-19 20:45:27 +11:00
Kevin Ring e56c5d776c Don't create tiles past level 30, because it won't work.
EllipsoidTilesetLoader can conceptually create tiles of any level. But
because we use a uint32_t for the tile X and Y coordinates, and because
tile level 31 has 2*2^31=2^32 tiles, we end up overflowing the uint32_t
and producing nonsense tile coordinates. So this change prevents the
loader from creating tiles past level 30.
2024-11-19 20:43:11 +11:00
Kevin Ring 8a23ca54d9 Merge remote-tracking branch 'origin/main' into cpp20 2024-11-19 09:14:49 +11:00
Kevin Ring 651d3b4d43 Merge remote-tracking branch 'origin/main' into remove-gsl 2024-11-15 13:58:24 +11:00
Sean Lilley f51948fbe4 Remove old CESIUM_NATIVE_ CMake variables 2024-11-13 11:22:17 -05:00
Kevin Ring bc9165659f Merge remote-tracking branch 'origin/cpp20' into remove-gsl 2024-11-12 15:07:50 +11:00
Kevin Ring 73da501e8c Merge remote-tracking branch 'origin/main' into cpp20 2024-11-12 15:06:45 +11:00
Ashley Rogers b986b0b402 Merge branch 'main' of github.com:CesiumGS/cesium-native into ellipsoid-tileset-loader 2024-11-06 15:57:18 -05:00
Kevin Ring 89dfc44bdc Remove use of GSL.
Change gsl::span to std::span, and replace the few uses of gsl::narrow
with an alternative.
2024-11-06 15:16:03 +11:00
Kevin Ring 97331792d3 Compile with C++20 and fix the problems. 2024-11-05 16:54:11 +11:00
Kevin Ring 783adceb87
Merge pull request #956 from CesiumGS/fix-missing-ellipsoid
Fix missing ellipsoid parameters
2024-10-31 21:24:45 +11:00
Kevin Ring 3435ad6a3c Pass a TilesetSharedAssetSystem into TilesetExternals. 2024-10-30 14:11:22 +11:00
Kevin Ring 8b60ebdd63 Minor tweaks. 2024-10-30 11:06:14 +11:00
Kevin Ring 33d4948634 Image::pCesium -> pAsset 2024-10-30 09:40:04 +11:00
Kevin Ring c73f5b5f05 staleAssetSizeLimit -> inactiveAssetSizeLimitBytes 2024-10-29 14:09:34 +11:00
Kevin Ring feaf448dc3 Flesh out utility functions slightly. 2024-10-29 14:07:09 +11:00
Kevin Ring d43edcea85 Add ResultPointer. 2024-10-29 11:38:15 +11:00
Kevin Ring 49f1d6319c Introduce TilesetSharedAssetSystem. 2024-10-29 09:24:43 +11:00
Kevin Ring 727a68d064 Introduce AssetEntry. 2024-10-28 17:13:18 +11:00
Ashley Rogers 38b4811270 Pass factory to asset depot constructor 2024-10-11 12:00:55 -04:00
Ashley Rogers df1f887e6d Doc comments, rename ImageCesium 2024-10-10 15:28:05 -04:00
Kevin Ring 526e660687 default -> getDefault 2024-10-10 22:19:52 +11:00
Kevin Ring 7f798379f4 GltfSharedAssetSystem 2024-10-10 21:56:09 +11:00
Kevin Ring a9516a0c84 Move SharedAsset[Depot] to CesiumAsync. 2024-10-10 21:00:16 +11:00
Kevin Ring 275bac0325 Better naming. 2024-10-04 21:16:11 +10:00
Kevin Ring cee6f21ea6 Make SharedAsset a base class an eliminate AssetContainer. 2024-10-04 16:10:28 +10:00
Kevin Ring 91f5b5fc65 Merge remote-tracking branch 'origin/main' into shared-assets 2024-10-03 09:14:00 +10:00
Ashley Rogers a2b31a070b Fix missing ellipsoid parameters 2024-10-01 11:27:13 -04:00
Kevin Ring ec2186cff2 setMightHaveLatentChildren(false) even if tile has real children. 2024-10-01 16:18:33 +10:00
Kevin Ring 6fb28fe9a0 When tileset fails to load, report all heights not sampled.
Instead of rejecting the promise.
2024-10-01 07:54:21 +10:00
Kevin Ring d7bef249f1 Merge remote-tracking branch 'origin/main' into shared-assets 2024-09-30 21:04:40 +10:00
Kevin Ring 05e1af1e80 Show tileset if overlay tile provider can't be created. 2024-09-30 21:03:00 +10:00
Kevin Ring 03b60efa8c Don't let failing overlays stop rendering completely. 2024-09-30 21:03:00 +10:00
Kevin Ring 95840fe38d Fix compile errors in tests. 2024-09-30 21:03:00 +10:00
Kevin Ring fb38ac9f2c Fail height requests when Tileset is destroyed. 2024-09-27 21:40:59 +10:00
Kevin Ring ad18abfc03 Add sampleHeightMostDetailed test against a broken tileset. 2024-09-27 10:10:02 +10:00
Kevin Ring 87a4e686f1 Update doc. 2024-09-27 10:02:59 +10:00
Kevin Ring b48893af99 tilesNeedingLoading -> tileLoadSet 2024-09-27 09:59:14 +10:00
Kevin Ring 63d6e4dd6d heightSampled -> sampleSuccess. 2024-09-27 09:54:46 +10:00
Kevin Ring e0323e9b1a Only create latent children if there are not any children yet.
And add documentation for createLatentChildrenIfNecessary.
2024-09-27 09:50:25 +10:00
Kevin Ring 352e609df9
Update doc.
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2024-09-27 09:50:46 +10:00
Kevin Ring e401f5996c
Update comment.
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2024-09-27 09:14:16 +10:00
Kevin Ring 85226ee4be
Update comment.
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2024-09-27 09:13:22 +10:00
Janine Liu 74acd1a2ab Additional tweak 2024-09-26 10:12:28 -04:00
Janine Liu 23308ba502 Doc tweaks 2024-09-25 18:24:52 -04:00
Janine Liu f7a75b1778 Merge branch 'main' into height-query 2024-09-25 17:05:54 -04:00
Kevin Ring 4850751a25 Reject height requests when tileset fails to load. 2024-09-24 07:46:39 +10:00
Ashley Rogers 4851ed2dc2 Fix test 2024-09-18 16:20:19 -04:00
Kevin Ring 9e7687d7c1 Show tileset if overlay tile provider can't be created. 2024-09-18 09:15:10 +10:00
Kevin Ring bc0770a146 Update CHANGES, small cleanup. 2024-09-16 20:48:09 +10:00
Kevin Ring 3a37ba196b Fix "done loading" criteria. 2024-09-16 13:39:59 +10:00
Kevin Ring 5753669933 Better marking of visited tiles. 2024-09-16 11:34:58 +10:00
Kevin Ring ca62417638 Keep query tiles loaded until we're done with them. 2024-09-16 11:04:05 +10:00
Kevin Ring 51a532213e Cleanup and doc. 2024-09-16 09:19:16 +10:00
Kevin Ring 06d9e791a6 Move height query functionality out of Tileset.cpp. 2024-09-13 21:00:22 +10:00