Commit Graph

1203 Commits

Author SHA1 Message Date
Kevin Ring 05b94f1be3 Also test with forbidHoles enabled. 2023-02-23 15:57:05 +11:00
Kevin Ring 854f0abbf4 Add a test. 2023-02-23 15:44:05 +11:00
Kevin Ring b0e2cf130f Fix forbid holes mode after isRenderable change. 2023-02-23 00:05:57 +11:00
Kevin Ring 1d29a89260 Merge remote-tracking branch 'origin/globe-anchor' into unconditionally-refined-is-not-renderable 2023-02-22 23:51:57 +11:00
Kevin Ring c8cdb3694e An unconditionally refined tile should never be rendered.
And therefore is never renderable.
2023-02-22 23:31:55 +11:00
Kevin Ring 65e6efc3bc Beginning of GlobeAnchor implementation. 2023-02-13 22:01:01 +11:00
Janine Liu 547f92294c Add maybe_unused attribute 2023-02-03 17:38:30 -05:00
Janine Liu 34e209af46 Convert sRGB colors to linear RGB 2023-02-03 16:03:15 -05:00
Janine Liu 80c5584163 Update for PR feedback 2023-02-03 10:39:53 -05:00
Janine Liu a0959d1242 Add fix for empty batch table 2023-02-02 18:03:53 -05:00
Janine Liu 87fea003f0 Merge branch 'main' into pnts-support 2023-02-01 11:14:11 -05:00
Janine Liu 33b5fbd931 Metadata handling cleanup 2023-02-01 11:13:09 -05:00
Janine Liu b91652e2f7 Code fixes and cleanup 2023-01-31 18:14:29 -05:00
Janine Liu c19db9f12a Add test for Draco-compressed batched pnts 2023-01-31 16:43:08 -05:00
Janine Liu b67d3c7512 Add unit tests and fixes for Draco decoding 2023-01-31 15:56:39 -05:00
Janine Liu 91ef08f33d Add support for decoding Draco metadata (untested) 2023-01-31 11:58:24 -05:00
Janine Liu ed5bd6e058 Add tests for pnts metadata 2023-01-30 13:54:10 -05:00
Janine Liu d9dd135522 Add AttributeCompression tests 2023-01-30 11:49:36 -05:00
Janine Liu 63ee02417b Refactor BatchTableToGltfFeatureMetadata to handle pnts 2023-01-27 17:48:04 -05:00
Janine Liu 3fdc5ac176 Add AttributeCompression library, add batch IDs to pnts glTF 2023-01-27 15:32:26 -05:00
Janine Liu cfb7ec7258 Add unit tests for normals, oct encoded normals, and positions 2023-01-26 14:55:42 -05:00
Janine Liu fc9f633791 Add remaining color attribute tests 2023-01-25 17:53:00 -05:00
Janine Liu 933430f268 Fix draco warnings preventing build, add color parsing and unit tests 2023-01-25 16:04:19 -05:00
Janine Liu 96fee92d02 Refactor PntsContent struct 2023-01-24 15:24:23 -05:00
Janine Liu 9fe30ee45d Add unit test 2023-01-23 12:01:13 -05:00
Kevin Ring 812e819242
Merge pull request #588 from insar-dev/main
Update TestSubtreeAvailability.cpp
2023-01-23 11:38:35 +11:00
Janine Liu 699e4e2195 Begin implementing PntsToGltfConverter 2023-01-20 17:37:41 -05:00
insar-dev 5b450bc1c3
clang format 2023-01-19 17:49:16 +08:00
insar-dev 4f87c33fb0
Update TestSubtreeAvailability.cpp 2023-01-19 16:53:36 +08:00
insar-dev 16f9f7dd60
Update TestSubtreeAvailability.cpp 2023-01-19 16:39:40 +08:00
insar-dev 42d2c92333
Update TestSubtreeAvailability.cpp 2023-01-19 11:44:55 +08:00
Kevin Ring 0481cec7ac
Merge branch 'main' into additive-render-nothing 2023-01-19 07:57:23 +11:00
insar-dev 406a28bfbc
Update TestSubtreeAvailability.cpp 2023-01-17 20:10:46 +08:00
Kevin Ring 1d4d6c75f4 Don't cull with children bounds with additive-refined tilesets. 2023-01-12 11:55:28 +11:00
Joseph Kaile 8c7600d4a4
Merge pull request #579 from CesiumGS/reinterop
Detach raster overlay tiles before freeing the geometry tiles they're attached to
2023-01-11 11:00:25 -05:00
Kevin Ring f582dd5a11 Merge remote-tracking branch 'origin/main' into additive-render-nothing 2023-01-11 22:39:15 +11:00
Joseph Kaile 740784c997
Merge pull request #578 from CesiumGS/snprintf
Use snprintf instead of sprintf.
2022-12-21 12:07:30 -05:00
Kevin Ring 6f77fdec00 Merge remote-tracking branch 'origin/reinterop' into additive-render-nothing 2022-12-21 20:19:13 +11:00
Kevin Ring 60a992da00 Merge remote-tracking branch 'origin/main' into reinterop 2022-12-21 20:18:59 +11:00
Kevin Ring 3c92244d46 Don't wait for tile that will never be renderable. 2022-12-21 20:15:33 +11:00
Nithin Pranesh 10abfd3043
Merge pull request #581 from CesiumGS/disable-gltfupaxis-warning
Disable gltf-up-axis warning
2022-12-07 21:17:09 -05:00
Nithin Pranesh abe987ad86 Disable gltf-up-axis warning 2022-12-07 20:31:41 -05:00
Xuelong Mu e399dac406 add optional field to specify custom ion endpoint 2022-12-07 15:37:01 -05:00
Kevin Ring 999ae8c889 Use snprintf instead of sprintf.
It's safer and Xcode 14 reports a warning on use of sprintf which turns
into an error, breaking the build.
2022-12-01 16:12:29 +11:00
Kevin Ring 14b31e29da Detach raster overlays before unloading tile. 2022-11-24 22:57:09 +11:00
Kevin Ring 1bb23f4b5a Create TMS and WMS tile providers in the main thread.
Otherwise there's a chance of overlay reference count corruption.
2022-11-03 12:08:50 +11:00
Kevin Ring 9988633ccf Don't try to upsample tiles with no geometry. 2022-11-01 13:04:54 +11:00
Kevin Ring 1607421897 Create placeholder tile properly when rectangle is unknown. 2022-11-01 11:52:39 +11:00
Kevin Ring 3702b52790 Fix token refresh for quantized mesh tiles. 2022-10-19 16:26:56 +11:00
Kevin Ring cdbb7c0fb0 Pass tileset status code through to loadErrorCallback. 2022-10-19 15:43:36 +11:00
Kevin Ring ffaf65b4bb Formatting. 2022-10-18 18:00:14 +11:00
Kevin Ring f31638fbfa Cleaner RasterOverlay error reporting. 2022-10-18 17:59:23 +11:00
Kevin Ring fda1d74c52 Formatting. 2022-10-15 16:28:05 +11:00
Kevin Ring 3b7ecc4c0f Raise an event when async Tileset destruction completes. 2022-10-15 15:38:08 +11:00
Kevin Ring 72cc94496a Merge remote-tracking branch 'origin/intrusive-lifetime' into async-prepare 2022-10-14 21:51:15 +11:00
Kevin Ring df5759de40 Merge remote-tracking branch 'origin/main' into intrusive-lifetime 2022-10-14 21:44:30 +11:00
Nithin Pranesh c0aa875ccc call unloadCachedTiles before tickMainThreadLoading (slightly reduces max cache occupancy) 2022-10-12 14:41:50 -04:00
Nithin Pranesh 5041694cea simplify time budgeting with std::chrono 2022-10-12 09:42:40 -04:00
Nithin Pranesh 5645113864 add this-> back in two places 2022-10-12 08:55:07 -04:00
Nithin Pranesh 1417e01586 use this->... for member variables 2022-10-11 21:15:54 -04:00
Nithin Pranesh 86101d99a8 fix white tiles - call updateDoneState in finishLoading to prepare a raster tile to be rendered 2022-10-11 19:50:15 -04:00
Nithin Pranesh b8f95de5bd tests passing 2022-10-10 23:50:37 -04:00
Nithin Pranesh b9e3381bde remove CreatingResources state, throttle ContentLoaded->Done transitions instead 2022-10-10 18:15:13 -04:00
Nithin Pranesh ee574fa53e add some main-thread tracing 2022-10-10 16:48:29 -04:00
Nithin Pranesh 57d8aafe44 Merge branch 'main' into mipmaps 2022-10-10 09:23:59 -04:00
Nithin Pranesh 04172d69d0 mip map creation is now just a client helper, clients now allowed to modify images during loading 2022-10-10 09:22:23 -04:00
Nithin Pranesh cc903e7b8d allow tracing macros to be overriden by clients 2022-10-04 22:54:13 -04:00
Nithin Pranesh 4ed97dca66 undo hacky cache-unload throttling 2022-10-03 19:36:33 -04:00
Nithin Pranesh f979592548 increased main thread creation budget to 5ms + format 2022-09-27 12:05:29 -04:00
Kevin Ring b4f30f81f9 Make prepareInLoadThread async, return a Future. 2022-09-22 18:35:21 +10:00
Kevin Ring 628e46f795 Merge remote-tracking branch 'origin/main' into intrusive-lifetime 2022-09-22 17:28:57 +10:00
Nithin Pranesh b7f4cc5c8f expose option to generate mipmaps 2022-09-21 23:18:15 -04:00
Kevin Ring e43f4da439
Merge branch 'main' into raster-clean-up 2022-09-21 14:58:33 +10:00
Bao Tran 64fa16d613 format 2022-09-21 00:37:46 -04:00
Bao Tran 6512c9faa2 clean up map raster tile when a geometric tile is failed to load 2022-09-21 00:17:22 -04:00
Joseph Kaile 2ef4e02acf pass status code as integer 2022-09-19 23:00:47 -04:00
Nithin Pranesh d5bbd8f6ce Merge branch 'resource-throttling' into mipmaps 2022-09-19 10:12:23 -04:00
Kevin Ring dec57ba82f Merge remote-tracking branch 'origin/main' into intrusive-lifetime 2022-09-19 22:43:55 +10:00
Nithin Pranesh 8da6f1a4c8 actually time-budget tickResourceCreation, hack throttle unloadCachedTiles 2022-09-16 10:08:38 -04:00
Joseph Kaile 41234892f0 delete old endpoint and create a new one 2022-09-15 13:41:04 -04:00
Nithin Pranesh 23bb49d092 format 2022-09-14 23:17:15 -04:00
Nithin Pranesh 11a0c5bfde Merge branch 'main' into resource-throttling 2022-09-14 23:16:37 -04:00
Joseph Kaile 35d0b825ff add nullptr check 2022-09-14 17:26:28 -04:00
Joseph Kaile de597a06cb fix incorrect search string 2022-09-14 17:06:49 -04:00
Joseph Kaile 55db9daefd wrap layer json and tileset json requests with a 'refresh token if needed' 2022-09-14 16:44:20 -04:00
Kevin Ring b95b30f640
Merge branch 'main' into add-renderer-options-to-tileset-options 2022-09-06 23:19:57 +00:00
Nithin Pranesh b4b1f39e46 simplify the "don't unload until faded out" logic 2022-09-06 12:02:53 -04:00
Nithin Pranesh 0fb2a43324 move mipmap generation out of readImage, integrate with gltf textures + raster imagery 2022-09-05 22:33:34 -04:00
Kevin Ring 2daea88927 Remove tile providers and placeholders when removing overlays. 2022-09-05 22:31:53 +10:00
Janine Liu 725b648c2e Remove redundant assignments in capture clauses 2022-09-02 15:55:34 -04:00
Janine Liu 28b5e51682 Remove accidental comma / linebreak 2022-09-02 15:39:49 -04:00
Janine Liu 37eb55ac88 Add rendererOptions to TilesetOptions 2022-09-02 15:24:42 -04:00
Nithin Pranesh bf27ff2542 format 2022-09-02 12:43:13 -04:00
Nithin Pranesh 336e25e9ba update comments 2022-09-02 12:42:52 -04:00
Nithin Pranesh 2bbb9dc816 change the fade out range to also be 0->1 2022-09-02 12:37:14 -04:00
Kevin Ring 120c6f52de Merge remote-tracking branch 'origin/main' into intrusive-lifetime 2022-09-02 22:00:04 +10:00
Kevin Ring a3d9f9dec1 Re-add a check to a test, update CHANGES.md. 2022-09-01 15:26:06 +10:00
Kevin Ring 3c2efef112 Merge remote-tracking branch 'origin/main' into lod-dither 2022-09-01 10:32:36 +10:00
Bao Tran 45c518c691 update raster right after content has glTF render resources 2022-08-31 19:05:13 -04:00
Nithin Pranesh 916207eb3b fix one-frame holes. Remove out-of-date comment 2022-08-31 18:43:29 -04:00