Commit Graph

1960 Commits

Author SHA1 Message Date
Ashley Rogers cdcd093d79 Revert "iTwin Cesium Curated Content tileset loader"
This reverts commit bdec829c5e.
2025-03-04 14:10:39 -05:00
Ashley Rogers bdec829c5e iTwin Cesium Curated Content tileset loader 2025-03-04 11:32:30 -05:00
Kevin Ring 0092b7b84e Merge remote-tracking branch 'origin/main' into multiple-views 2025-03-04 15:36:27 +11:00
Tim Moore b39d3f03cf Merge remote-tracking branch 'origin/main' into vcpkg-pkg 2025-03-03 14:14:23 -05:00
Ashley Rogers e3be93d05d Fix variable length string arrays 2025-02-28 16:43:48 -05:00
Ashley Rogers 07bb72746e Add test 2025-02-28 15:32:21 -05:00
Kevin Ring 8a626dfbab Remove unused frame number parameters. 2025-02-28 21:09:15 +11:00
Kevin Ring c7fc9c30ac Remove unused frame number from TileSelectionState. 2025-02-28 21:05:03 +11:00
Kevin Ring b3c0999530 More natural tile reference counting. 2025-02-28 20:53:18 +11:00
Kevin Ring 83ecea47f6 Less fiddly updating of LoadedTileEnumerator's root tile. 2025-02-28 15:45:33 +11:00
Kevin Ring ff24badffb TilesetContentManger owns LoadedTileEnumerator. 2025-02-28 14:33:52 +11:00
Kevin Ring 1326242691 New loaded tile enumeration. 2025-02-27 22:34:20 +11:00
Kevin Ring 0613cfad45 Merge remote-tracking branch 'origin/main' into multiple-views 2025-02-27 18:59:16 +11:00
Kevin Ring 9d757a7b0f Mark tile failed when load throws an exception.
The most common reason this may happen is on a connection failure.
2025-02-27 16:55:37 +11:00
Kevin Ring 2009ee1823 Add comment about _doNotUnloadSubtreeCount copying. 2025-02-27 15:18:15 +11:00
Kevin Ring 44cf9548be Move _doNotUnloadSubtreeCount along with other fields. 2025-02-27 14:49:47 +11:00
Ashley Rogers 4ea9154818 Change createChildTiles behavior 2025-02-26 14:31:18 -05:00
Ashley Rogers 3546686bd7 Address some of the review comments. 2025-02-26 13:53:45 -05:00
Tim Moore 9c1eb44400 Merge branch 'main' into vcpkg-pkg 2025-02-26 18:05:07 +01:00
Kevin Ring caf4668d0f New Tile unload approach. 2025-02-26 22:38:48 +11:00
Kevin Ring e60c349a9e Merge remote-tracking branch 'origin/unload-external-tilesets-2' into multiple-views 2025-02-26 18:14:36 +11:00
Kevin Ring 160fa4db1f Merge remote-tracking branch 'origin/main' into unload-external-tilesets-2 2025-02-26 14:54:14 +11:00
Ashley Rogers 75175434d3 Unhackify empty tile handling 2025-02-25 13:56:23 -05:00
Kevin Ring 9bdf4709c0 Merge remote-tracking branch 'origin/main' into multiple-views 2025-02-25 14:13:49 +11:00
Kevin Ring 84416c556d
Merge pull request #1111 from CesiumGS/3dtiles-bounding-volume-cylinder
Add support for `3DTILES_bounding_volume_cylinder`
2025-02-25 13:11:53 +11:00
Ashley Rogers c5de73a841 Fix tileset height query test failure 2025-02-24 17:05:33 -05:00
Ashley Rogers 7bc0896d17 Remove #define left in accidentally 2025-02-24 15:32:21 -05:00
Ashley Rogers 81e5311e05 Remove _tilesStillNotUnloadedCount, rename _doNotUnloadCount, review comments 2025-02-24 15:30:27 -05:00
Janine Liu 124e63a336 The last of clang-tidy, hopefully. 2025-02-24 15:06:08 -05:00
Janine Liu 8c19b0f75f Fix bad bracket placement 2025-02-24 14:50:29 -05:00
Janine Liu 73bb7b9bb0 Formatting, add missing bracket 2025-02-24 14:39:37 -05:00
Janine Liu 65366bc7ed Add support for cylinder bounding volumes in quadtrees 2025-02-24 14:22:13 -05:00
Janine Liu 812d96249f Read bounding volumes using JSON reader 2025-02-24 14:13:42 -05:00
Janine Liu 47b358fbc7 Angle bracket sweep, remove outdated references, tweak glm stuff 2025-02-24 11:24:28 -05:00
Kevin Ring 709ac4498d Pass request headers to tileset.json content requests.
Also fix crash if tileset.json has no root tile.
2025-02-21 20:50:02 +11:00
Ashley Rogers 598f49f92e Remove pointless check I left in 2025-02-20 15:15:52 -05:00
Ashley Rogers 489a541dc1 Fix test 2025-02-20 14:42:11 -05:00
Ashley Rogers b5d46371e9 The final piece?? 2025-02-20 14:16:13 -05:00
Ashley Rogers 40f951ffb9 Lots of SPDLOG_INFO 2025-02-20 11:48:50 -05:00
Ashley Rogers b4dd32ad36 Add *second* counter 2025-02-19 14:43:48 -05:00
Ashley Rogers 8aa6cc0bf8 Fix for other _loadedTiles issue 2025-02-18 14:17:15 -05:00
Ashley Rogers 9289398029 Bizarre fix for ContentLoading issue 2025-02-18 13:57:34 -05:00
Kevin Ring 3f7fed867b Don't check frame number. 2025-02-18 14:20:12 +11:00
Janine Liu d762030d25 Add test to BoundingVolume 2025-02-17 17:04:42 -05:00
Janine Liu bc165ffc93 Fix includes and formatting 2025-02-17 16:44:28 -05:00
Janine Liu 116743cc0b Fix translation bug, try to appease clang-tidy 2025-02-17 16:00:07 -05:00
Kevin Ring 6e0a355504 Call startNextFrame on all ViewGroups. 2025-02-17 14:00:25 +11:00
Kevin Ring 4bed3c859e Merge remote-tracking branch 'origin/main' into multiple-views 2025-02-17 08:57:26 +11:00
Janine Liu 60536f2e1a BoundingCylinder -> BoundingCylinderRegion 2025-02-14 17:44:56 -05:00
Ashley Rogers 140a7d96de Track *most* of the Tile pointers in TilesetHeightQuery 2025-02-14 17:02:20 -05:00
Janine Liu e1cc0c3e5b Merge branch 'axis-aligned-from-points' into 3dtiles-bounding-volume-cylinder 2025-02-14 14:35:39 -05:00
Ashley Rogers 21c03e2e74 Include Assert.h for clang-tidy 2025-02-14 10:09:29 -05:00
Ashley Rogers f705ac2da9 More review comments 2025-02-14 10:05:04 -05:00
Ashley Rogers 7367c77216 Merge branch 'unload-external-tilesets-2' of github.com:CesiumGS/cesium-native into unload-external-tilesets-2 2025-02-13 17:41:09 -05:00
Ashley Rogers 7842279b86 Address review comments 2025-02-13 17:40:40 -05:00
Ashley Rogers 7f8e02308a Merge branch 'main' of github.com:CesiumGS/cesium-native into unload-external-tilesets-2 2025-02-13 17:09:40 -05:00
Tim Moore e221a72631 Merge remote-tracking branch 'origin/main' into vcpkg-pkg 2025-02-13 14:58:27 +01:00
Janine Liu 32f703f754 linting 2025-02-12 16:34:26 -05:00
Janine Liu b0f3c634df Add BoundingCylinder as a tile bounding volume 2025-02-12 14:15:59 -05:00
Kevin Ring 243cae3e80 Move last selection state out of Tile in the simplest way possible. 2025-02-12 16:14:24 +11:00
Ashley Rogers 38a9f0835d Same stuff, different file 2025-02-10 16:47:47 -05:00
Ashley Rogers 7171545306 #ifdef around unordered_map 2025-02-10 15:48:35 -05:00
Ashley Rogers 765e6dbe1b Add [[maybe_unused]] to `reason` 2025-02-10 15:24:12 -05:00
Ashley Rogers 0b27e40ae5 RemoveChildren -> RemoveAndClearChildren 2025-02-10 15:20:33 -05:00
Ashley Rogers 3816ef9835 Add comment, format 2025-02-10 15:15:16 -05:00
Ashley Rogers db707fd09f Final fixes and ifdef for debug tracking 2025-02-10 15:09:35 -05:00
Ashley Rogers 101f71cfba Alllllmost working 2025-02-07 17:51:24 -05:00
Ashley Rogers 2b35b264e2 Inc/dec _doNotUnloadCount from setState 2025-02-07 17:16:13 -05:00
Ashley Rogers 3fb40074be Handle removing children in Tileset 2025-02-07 16:09:34 -05:00
Ashley Rogers e7d1ce5a9c Add *initiator* tile ID to log 2025-02-07 15:32:47 -05:00
Ashley Rogers c5a7fc4641 Scratch that - just add tile ID to log 2025-02-07 15:29:09 -05:00
Ashley Rogers d4c14dbb68 Add _loadedTiles to _doNotUnloadCount 2025-02-07 15:19:08 -05:00
Ashley Rogers 2aa36b3a1a Use _doNotUnloadCount to actually unload external tiles 2025-02-07 14:56:14 -05:00
Ashley Rogers dd27186c87 _doNotUnloadCount tracking 2025-02-07 13:51:42 -05:00
Ashley Rogers a9b4bfc3bb useBaseQuery for LayerJsonTerrainLoader 2025-02-05 10:09:18 -05:00
Kevin Ring b7e1e7c311 Remove unused `maximumSimultaneousSubtreeLoads`. 2025-02-04 18:18:07 +11:00
Tim Moore d1d790afe3 Merge branch 'main' into vcpkg-pkg 2025-02-03 22:26:20 +01:00
Kevin Ring 730bb759f0 Fix placeholder handling in BingMapsRasterOverlay. 2025-02-03 09:26:22 +11:00
Ashley Rogers eb016f0c0e Rename UriQueryParams -> UriQuery 2025-01-31 13:25:07 -05:00
Tim Moore ed58d0236b Merge remote-tracking branch 'origin/main' into vcpkg-pkg 2025-01-31 17:02:12 +01:00
Ashley Rogers 46ad1ac747 Separate query handling from Uri 2025-01-29 17:16:17 -05:00
Ashley Rogers 1c4e4c2acf Merge from main 2025-01-29 10:53:18 -05:00
Kevin Ring 344f386f90
Merge branch 'main' into culling-volume-crash 2025-01-29 19:00:33 +11:00
Ashley Rogers 7006b8177c Remove uriparser, format, etc 2025-01-28 11:57:53 -05:00
Ashley Rogers cb18f767b3 Return to previous substitution logic 2025-01-28 10:42:41 -05:00
Ashley Rogers 9e032f8aed
Merge pull request #1084 from CesiumGS/ada-url-substitute-first
ada-url: Substitute layer.json placeholders before treating as URLs
2025-01-28 10:13:58 -05:00
Ashley Rogers 158de7e4dc Merge branch 'main' of github.com:CesiumGS/cesium-native into ada-url 2025-01-28 09:55:01 -05:00
Kevin Ring 17eefa161f Substitute placeholders before manipulating layer.json URLs. 2025-01-28 21:12:12 +11:00
Ashley Rogers e16c56228b Don't crash when culling volume position is too large 2025-01-24 15:42:45 -05:00
Ashley Rogers 3d9a7f03b3 Remove new line for cross-platform test 2025-01-23 16:59:33 -05:00
Ashley Rogers 68bce2c8d0 Format 2025-01-23 16:42:12 -05:00
Ashley Rogers 06a3975d24 Add tests for Loader errors, log layer.json errors 2025-01-23 16:40:22 -05:00
Ashley Rogers 40d4ba9b71 Merge branch 'main' of github.com:CesiumGS/cesium-native into ada-url 2025-01-23 13:17:37 -05:00
Ashley Rogers cc56388500 Merge branch 'main' of github.com:CesiumGS/cesium-native into doc-raster-overlays 2025-01-23 11:49:30 -05:00
Kevin Ring 6541b5b450 Add a test. 2025-01-22 21:27:55 +11:00
Kevin Ring 4b8e520ef0 Return the highest sample height, not the first one. 2025-01-22 18:50:41 +11:00
Kevin Ring 251c399488 Merge remote-tracking branch 'origin/main' into request-headers-tileset 2025-01-22 13:43:26 +11:00
Ashley Rogers 31f16082fc Fix build errors 2025-01-21 14:50:47 -05:00
Ashley Rogers 6115d11cf7 Format 2025-01-17 16:18:05 -05:00
Ashley Rogers 45d9d7ffa6 Merge from main 2025-01-17 16:06:58 -05:00
Ashley Rogers 9617622dea Part of a Uri refactor 2025-01-17 12:07:24 -05:00
Kevin Ring 017d13393c
Merge pull request #1064 from CesiumGS/doctest
Use doctest instead of Catch2 for tests
2025-01-17 09:52:00 +11:00
Ashley Rogers 8269d1b7da Merge from main 2025-01-16 14:06:17 -05:00
Ashley Rogers e740e3a7b5 Address review comments 2025-01-16 14:05:13 -05:00
Kevin Ring feef2cd0eb Doc how raster overlays work. Other tweaks. 2025-01-16 17:26:18 +11:00
Ashley Rogers 4e318925a5 Switch tests to doctest 2025-01-15 16:58:03 -05:00
Kevin Ring 1cfb65e169 Merge remote-tracking branch 'origin/main' into doc-tile-selection-algorithm 2025-01-14 12:51:32 +11:00
Kevin Ring 79ce68ec25 Avoid repeated branch body. 2025-01-13 21:05:03 +11:00
Kevin Ring d4b8f501e3 Revert stylistic change (but maybe clang-tidy will be mad) 2025-01-13 20:44:15 +11:00
Kevin Ring 028ee29eed Merge remote-tracking branch 'origin/main' into clang-tidy-cleanup 2025-01-13 17:30:09 +11:00
Kevin Ring bb6e769c1c Add unconditionally-refined tile selction. 2025-01-13 11:01:49 +11:00
Ashley Rogers d154416227 Format, CHANGES 2025-01-09 16:30:52 -05:00
Ashley Rogers 2dcbb94c9c Allow specifying request headers in TilesetOptions 2025-01-09 16:28:39 -05:00
Kevin Ring edd488c6ed Add tile loading sections. 2025-01-08 22:46:16 +11:00
Ashley Rogers 1db43366cd Resolve review items 2025-01-06 14:48:49 -05:00
Ashley Rogers ca0bf673c5 Move tileset methods back 2024-12-20 16:43:39 -05:00
Ashley Rogers 1b7b8ce29e Fix review issues 2024-12-20 16:32:24 -05:00
Ashley Rogers 61c1fa5f17 Make clang-tidy happy again 2024-12-20 16:04:45 -05:00
Ashley Rogers 869a43267c Undo trivially constructable std::move removals 2024-12-20 15:30:31 -05:00
Ashley Rogers 768b6510b3 Quotes to brackets 2024-12-20 12:00:09 -05:00
Ashley Rogers 2c8aa4a422 Fix includes using script 2024-12-20 11:56:49 -05:00
Ashley Rogers b4a6700adc Small review changes 2024-12-20 10:31:45 -05:00
Ashley Rogers 2c992b7ba7 Performance checks 2024-12-19 15:27:53 -05:00
Ashley Rogers f7d287dd80 Modernize checks 2024-12-19 15:20:19 -05:00
Ashley Rogers 94cc7992aa Misc checks 2024-12-19 14:33:52 -05:00
Ashley Rogers 4aeee635ca More checks 2024-12-18 15:25:51 -05:00
Ashley Rogers 86a4ea9a6f Why is clang-tidy throwing bits/basic_string in here? 2024-12-18 10:41:16 -05:00
Janine Liu 8cdf943272
Merge pull request #1042 from CesiumGS/kick-to-renderable
"Kick" only when the current tile is renderable
2024-12-18 10:26:16 -05:00
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
Tim Moore 8b65a4084b run format 2024-12-05 19:01:34 +01:00
Tim Moore 6c1b1edd4e Workaround for an -Werror=restrict warning from gcc 12 2024-12-05 17:13:48 +01:00
Tim Moore d1b064d8fd Don't add public headers to public target sources
The intent is for public target sources to be compiled into consumers
of a target, but that is a no-op for header files. Including the
public headers, which have paths pointing inside the project, causes
an error when generating an export set.
2024-12-05 16:03:52 +01:00
Tim Moore 7d5f2e1748 Choose BUILD_INTERFACE or INSTALL_INTERFACE in include directories
Should be a no-op at this point, but will be required when we make
Cesium Native installable.
2024-12-05 16:03:12 +01: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
Kevin Ring 7c167ee15a Minor reorg and documentation. 2024-09-13 19:04:00 +10:00
Kevin Ring 11d9f8e69c Rename TerrainQuery to TilesetHeightQuery. 2024-09-13 17:07:24 +10:00
Kevin Ring d9ff8acb9b Report a warning for unsupported extensions. 2024-09-13 16:16:31 +10:00
Ashley Rogers 96cd924630 Update based on review 2024-09-11 14:53:52 -04:00
Kevin Ring b7a42443dd Height queries against implicit tilesets. 2024-09-11 21:50:40 +10:00
Kevin Ring 349bc22459 Add external and implicit tileset tests.
Implicit tileset test is currently failing.
2024-09-11 16:32:32 +10:00
Kevin Ring dcc6c09c0b Don't do a full search if there are already additive candidates. 2024-09-11 16:32:08 +10:00
Kevin Ring 0a9e7450d4 Add very basic height query tests. 2024-09-11 15:52:54 +10:00
Kevin Ring fbb880bdec Allow a null IPrepareRendererResources. 2024-09-11 15:52:18 +10:00
Kevin Ring f270e4dc7e Allow height queries on a tileset that hasn't loaded at all yet. 2024-09-11 15:51:45 +10:00
Kevin Ring adea29379e visitHeightRequests -> processHeightRequests 2024-09-11 15:51:24 +10:00
Kevin Ring 1f01f5a4e9 Small tweaks and comments. 2024-09-11 13:47:40 +10:00
Kevin Ring 5310d25310 Remove unused lambda capture. 2024-09-11 11:42:36 +10:00
Kevin Ring f7450a2aa1 Incremental traversal for additive-refined tiles, too. 2024-09-10 22:32:43 +10:00
Kevin Ring 852710e3f4 Round-robin scheduling of vis and height query loads. 2024-09-10 20:04:40 +10:00
Kevin Ring 1f778804de Use addTileToLoadQueue, no need to search existing first. 2024-09-10 15:44:55 +10:00
Kevin Ring 3be4524adb We only need ContentLoaded for height queries. 2024-09-10 15:22:49 +10:00
Kevin Ring 5dc4acb8f4 Don't let failing overlays stop rendering completely. 2024-09-06 14:46:44 +10:00
Kevin Ring 770c5bbac1 Fix compile errors in tests. 2024-09-05 15:52:25 +10:00
Kevin Ring ef273ac266 More performant rayOBBParametric. 2024-08-29 09:42:18 +10:00
Kevin Ring 360154bd8d Remove use of variable from debug code. 2024-08-27 21:47:52 +10:00
Kevin Ring 2accb6a790 Incremental tree search in tryCompleteHeightRequest. 2024-08-27 21:43:41 +10:00
Kevin Ring c0f5f18ce9 Merge remote-tracking branch 'origin/main' into height-query 2024-08-26 15:02:56 +10:00
Ashley Rogers 7e36d6c45f Refactor to use IntrusivePointer for AssetContainer 2024-08-23 14:31:08 -04:00
Ashley Rogers e79b31379c Merge with main 2024-08-16 14:13:55 -04:00
Ashley Rogers 4e5bff4dfb Changes for Unreal implementation 2024-08-16 14:10:08 -04:00
Brian L 84493a722a Fix content bounding volume test 2024-08-05 11:11:33 -06:00
Kevin Ring 1fcdeadfd9 Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-08-02 19:45:58 +10:00
Brian L cc8b03f67b remove unnecessary check 2024-08-01 11:15:47 -06:00
Brian L 5a0e06eefd add support for warnings that occur during tile traversal 2024-08-01 11:11:44 -06:00
Brian L 0af2f35c6f fix bug where height queries could unnecessarily wait unneeded tiles to load 2024-07-31 14:55:27 -06:00
Brian L 7a1eae8a9f formatting 2024-07-31 14:13:24 -06:00
Brian L 57cf86907f fix warning 2024-07-31 14:07:42 -06:00
Brian L 5f6e9e47fb process all height requests on every tick, rather than one at a time 2024-07-31 13:59:24 -06:00
Brian L 73e213b021 Fix compile error 2024-07-29 11:14:32 -06:00
Brian L 07acc3abab Merge branch 'main' into height-query 2024-07-29 10:45:13 -06:00
Kevin Ring 7d21b0c1be Fix typos and test failure. 2024-07-26 10:42:30 -04:00
Janine Liu 0a86cfdca8 Merge branch 'main' into fix-polygon-clipping 2024-07-26 09:40:26 -04:00
Brian L 9690052efb Merge branch 'gltf-ray-intersect' into height-query 2024-07-24 14:31:00 -06:00
Ashley Rogers dd8e3d0775 Merge branch 'main' of github.com:CesiumGS/cesium-native into shared-assets 2024-07-23 14:03:20 -04:00
Ashley Rogers a0954e3fbc Add test for shared images 2024-07-23 14:03:06 -04:00
Kevin Ring 8b9b001b8b
Merge branch 'main' into gltf-ray-intersect 2024-07-23 13:38:37 -04:00
Brian L 48d1b8bfee move include path to fix build error 2024-07-12 10:03:46 -06:00
Brian L c2b47f0ae4 Reorg to change height finder to terrain query class 2024-07-12 09:54:00 -06:00
Brian L 44b5ea3657 fix build warning 2024-07-12 08:54:20 -06:00
Brian L fe35ba3d92 Fix release build warning 2024-07-11 15:52:42 -06:00
Brian L 5eba1aa8ee process request tile load all at once, rather than one at a time 2024-07-11 15:50:14 -06:00
Brian L 0d2a165a4e Don't add to load queue if tile already exists 2024-07-11 15:30:54 -06:00
Brian L 82f56ebdfc Rework ::_processHeightRequests to split load work and intersect work
Also reuse the loading queue from the normal view tile selection

Seems to have a significant speed improvement. My tests went 6-8 seconds to 3 secs.
2024-07-11 15:13:06 -06:00
Janine Liu 707dd8b770 Add missing includes 2024-07-11 10:25:23 -04:00
Ashley Rogers 7e5270a2dc Merge branch 'main' of github.com:CesiumGS/cesium-native into shared-assets 2024-07-10 16:00:40 -04:00
Ashley Rogers 40806a24c7 Add ability for images to be shared between glTFs 2024-07-10 16:00:31 -04:00
Brian L 7e12ede186 Merge branch 'gltf-ray-intersect' into height-query 2024-07-10 10:00:57 -06:00
Brian L 7cda07f420 Remove occurrences of including <glm/mat4x4.hpp> in header files 2024-07-09 09:25:27 -06:00
Brian L 1076b4d936 fix format 2024-07-08 16:20:06 -06:00
Brian L 6bb57cf6db Merge branch 'gltf-ray-intersect' into height-query 2024-07-08 16:15:06 -06:00
Brian L 16d18a1ceb Remove duplicate implementations of ::readFile 2024-07-08 16:12:56 -06:00
Brian L 2668014459 update from base branch 2024-07-08 09:29:48 -06:00
Julien QUENTIN 2a06b1de9a add doc comments 2024-07-02 19:56:04 +02:00
Julien QUENTIN 782c892a0a add necessary metadata in gltf model 2024-07-02 19:05:33 +02:00
Julien QUENTIN 25bd258813 make geometry error computation consistent 2024-07-02 19:02:28 +02:00
Julien QUENTIN 5040669b55 properly declare parameter as unused 2024-07-02 18:49:08 +02:00
Julien QUENTIN 7c6bad98c0 rm unused includes 2024-07-02 18:45:02 +02:00
Julien QUENTIN 9305c00d0c rm using namespace from header 2024-07-02 18:04:46 +02:00
Julien QUENTIN 25534c3903 Merge remote-tracking branch 'origin/main' into ellipsoid-tileset-loader 2024-07-02 16:25:39 +02:00
Kevin Ring 7c9ea84178 Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-07-02 17:39:20 +10:00
Kevin Ring 68df5462d6 Fix warnings. 2024-06-30 19:44:40 +10:00
Kevin Ring 98c3e25b68 Merge remote-tracking branch 'origin/main' into i3dm-misc-fixes 2024-06-29 10:59:55 +10:00