Commit Graph

790 Commits

Author SHA1 Message Date
Kevin Ring 792ac1ad31 Add tests for metadata merging. 2024-04-10 18:34:58 +10:00
Kevin Ring e1fbb4f064 Tests and changelog. 2024-04-10 16:27:09 +10:00
Kevin Ring 86d77cde33 Implement forEachPrimitiveInScene using forEachRootNodeInScene. 2024-04-10 15:26:12 +10:00
Kevin Ring eeeb304926 Various glTF helper functions. 2024-04-10 15:14:11 +10:00
Kevin Ring 17fd4d3452 Merge remote-tracking branch 'origin/cesium-legacy-terrain' into gltf-correctness 2024-04-10 14:59:36 +10:00
Kevin Ring 28eae3e782 Formatting. 2024-04-08 21:28:08 +10:00
Kevin Ring 71e567dc1f Add isExtensionUsed and isExtensionRequired methods. 2024-04-08 17:38:33 +10:00
Kevin Ring b9fe268f91 Add tests for addExtensionUsed/Required. 2024-04-08 16:24:36 +10:00
Kevin Ring 8c05f96f6e Various fixed to correctness of glTF generation. 2024-04-08 15:40:56 +10:00
Kevin Ring 66ad2c9039 Add support for CESIUM_primitive_outline extension. 2024-04-08 14:46:14 +10:00
Kevin Ring ee357293c0 Updates to generator config to work with updated glTF repo. 2024-04-08 14:24:31 +10:00
Tim Moore ff427ace80 Fix CesiumGltf::Model::merge to handle EXT_mesh_gpu_instancing
This is all very ad hoc and there will be more extensions that will
have to be handled in the future. This function is currently only used
by Cmpt parsing code, but one could imagine it being generally useful.
2024-04-07 13:31:14 +02:00
Sean Lilley 4fd4e9f6df Create AccessorWriter from AccessorView 2024-03-29 09:29:27 -04:00
Janine Liu d7ec272bdf Fix CI errors 2024-03-04 17:07:43 -05:00
Janine Liu 5275704238 Update changelog + add unit test 2024-03-04 16:52:14 -05:00
Janine Liu 6b850d2731 Fix typo 2024-03-04 15:21:44 -05:00
Janine Liu 4d53694f79 Add PositionAccessorType 2024-03-04 14:24:27 -05:00
Janine Liu f17e4846b1 Minor tweaks from PR review 2024-02-29 10:12:09 -05:00
Janine Liu 636c40f973 Fix unused lambda variable 2024-02-28 17:47:48 -05:00
Janine Liu 90531bb6fd Minor tweaks 2024-02-28 17:37:39 -05:00
Janine Liu a1bf6e7d2d Add unit tests 2024-02-28 17:21:42 -05:00
Janine Liu ff3da04838 Fix CI errors 2024-02-28 11:50:48 -05:00
Janine Liu 907f5aab2f Make property options a parameter 2024-02-28 11:29:23 -05:00
Janine Liu 0ca2d45056 class -> struct 2024-02-27 18:22:49 -05:00
Janine Liu cc1f333b33 Use TextureView for feature ID textures 2024-02-27 18:17:43 -05:00
Janine Liu 218bf1ab1e Rework PropertyTexturePropertyView to use TextureView 2024-02-27 18:00:42 -05:00
Janine Liu 9f8678ea31 Add PropertyTexturePropertyView options 2024-02-27 14:25:41 -05:00
Janine Liu e403d73f34 Add flag for KHR_texture_transform to property texture 2024-02-26 17:24:53 -05:00
Janine Liu 5f5f726ce6 Revert "Rename member name for clarity"
This reverts commit e16a3e1ac4.
2024-02-26 09:56:14 -05:00
Kevin Ring 6c48779728
Merge pull request #811 from CesiumGS/texture-transform-in-views
Account for `KHR_texture_transform` in feature ID texture + property texture property views
2024-02-26 08:49:28 +11:00
Bradley Austin Davis 24d783fb01 Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
Brian Langevin 028fc7cae0
Merge pull request #804 from CesiumGS/image-size-bytes
Track image data size independently of the `pixelData` array size
2024-02-23 11:02:44 -07:00
Brian L e16a3e1ac4 Rename member name for clarity 2024-02-23 10:30:10 -07: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
Ashley Rogers 10753a931f
Merge branch 'main' into feature-vcpkg 2024-02-20 13:44:11 -05:00
Janine Liu efc5b6bf7b Fix wrap computation error 2024-02-19 15:18:13 -05:00
Janine Liu 9bb02acdd1 Add flag to property texture property 2024-02-19 13:32:36 -05:00
Janine Liu 213906b039 Add applyKhrTextureTransformExtension to feature id textures 2024-02-19 12:59:35 -05:00
Janine Liu 1733305ab6 Add missing const / noexcept 2024-02-15 14:08:24 -05:00
Janine Liu 9e72b7eb36 Don't automatically apply transform in feature ID texture, property texture property 2024-02-15 13:23:25 -05:00
Janine Liu 49b04e0816 Merge branch 'main' into texture-transform-in-views 2024-02-13 16:44:18 -05:00
Janine Liu 6c4f31053a Add validation statements, other tweaks 2024-02-13 13:08:30 -05:00
Sean Lilley 4ac60b45ea Remove support for EXT_feature_metadata in CesiumGltf, CesiumGltfReader, and CesiumGltfWriter 2024-02-13 12:21:02 -05:00
Janine Liu ca2b7a3e17 Add test for normalized property view 2024-02-13 12:08:15 -05:00
Janine Liu 984b5edf07 Add unit test for PropertyTexturePropertyView 2024-02-13 12:01:39 -05:00
Janine Liu cad3f95c27 Add unit tests, use KhrTextureTransform in GltfReader 2024-02-13 11:47:06 -05:00
Janine Liu 544f318806 Fix compilation errors 2024-02-13 10:50:53 -05:00
Janine Liu 9d7c2a5dea Create KhrTextureTransform class 2024-02-13 10:45:33 -05:00
Kevin Ring 3729ab2375 Merge remote-tracking branch 'origin/main' into image-size-bytes 2024-02-05 11:37:41 +11:00
Bradley Austin Davis e20c154c55 Migrating dependencies to vcpkg 2024-02-02 10:40:59 -08:00
Kevin Ring a48529b2b8 Add sizeBytes to ImageCesium.
And use it to track Tile and RasterOverlayTile sizes.
2024-01-29 19:17:39 +11:00
Janine Liu a56def2c89 Merge branch 'main' into correct-variable-length-arrays 2024-01-23 13:25:51 -05:00
Janine Liu 4e9cfaba88
Merge pull request #793 from CesiumGS/feature-id-texture-sampler-wrap
Change `FeatureIdTextureView` to account for sampler wrap values in `getFeatureID`
2024-01-19 11:37:25 -05:00
Janine Liu bbb6476b93 Re-add const, add line break 2024-01-19 10:41:26 -05:00
Janine Liu 695898e37d Interpret offsets as array indices, not byte offsets 2024-01-18 16:45:31 -05:00
Ashley Rogers 93f65f30bf Fix issues identified in review. 2024-01-18 15:10:19 -05:00
Ashley Rogers df7bb9fa91 Fix sign conversion errors on Clang & GCC 2024-01-18 10:06:20 -05:00
Kevin Ring 0ae6e5f9e8 Improve IndicesForFaceFromAccessor doc. 2024-01-18 21:53:38 +11:00
Kevin Ring 5c2aae4190 Merge remote-tracking branch 'origin/main' into face-index-different-modes 2024-01-18 21:53:02 +11:00
Ashley Rogers 253b4f5c5d Fix mismatched integer types 2024-01-17 17:17:24 -05:00
Ashley Rogers 7dd3a7143a Format SamplerUtil 2024-01-17 17:09:36 -05:00
Ashley Rogers 0975b7d1e3 FeatureIdTextureView now accounts for sampler wrap values. 2024-01-17 17:05:36 -05:00
Janine Liu 41491dbbb8 Merge branch 'std-string-conversion' into face-index-different-modes 2024-01-10 11:03:09 -05:00
Janine Liu f6a71d8b3e Add remaining errno checks 2024-01-10 10:25:33 -05:00
Janine Liu 4c22baebfb Add size_t casts 2024-01-09 13:13:51 -05:00
Janine Liu 338b3e4f0a Add support in face index visitor for different primitive modes 2024-01-09 12:26:18 -05:00
Janine Liu b9fcbb5aad Use == 0 instead of != ERANGE 2024-01-09 12:20:48 -05:00
Janine Liu 216c49996a Remove unused include 2023-12-14 16:58:52 -05:00
Janine Liu 06d7d9bcb3 Condense if statements 2023-12-14 16:57:43 -05:00
Janine Liu b48d8085ee Update unit tests 2023-12-14 16:51:38 -05:00
Janine Liu 50a1744feb Cleanup 2023-12-14 15:43:38 -05:00
Janine Liu 8bcde4e06c Merge branch 'main' into std-string-conversion 2023-12-14 10:55:55 -05:00
Janine Liu 7ee8ddd749 Add manual check for negative sign when parsing ull 2023-12-11 10:56:18 -05:00
Janine Liu 587db88565 Attempt to catch out-of-range error 2023-12-08 15:39:48 -05:00
Janine Liu 2e67c5925b Add float / double conversions 2023-12-08 15:12:08 -05:00
Janine Liu e1537294a4 Add std::string conversions 2023-12-08 13:45:53 -05:00
Kevin Ring f05ebf5785
Merge pull request #770 from CesiumGS/remove-u32
Remove `uint32_t` support for property attributes
2023-11-29 09:50:46 +11:00
Sean Lilley dcec862432 Fix formatting 2023-11-27 13:38:33 -05:00
Sean Lilley 278f936cce Update tests 2023-11-27 11:06:27 -05:00
Sean Lilley 065ad18402 Remove uint32_t support from PropertyAttribute 2023-11-22 19:48:23 -05:00
Janine Liu f0f009c87e Decapitalize function names 2023-11-20 11:00:33 -05:00
Kevin Ring 4788905834
Merge branch 'main' into add-accessor-utility 2023-11-20 17:55:37 +11:00
Kevin Ring 7faea62441
Merge branch 'main' into property-value-conversions 2023-11-20 17:41:32 +11:00
Janine Liu 268ead2402 Add static casts 2023-11-14 16:07:09 -05:00
Janine Liu 4f51905d21 Add StatusFromAccessor visitor 2023-11-14 15:50:24 -05:00
Sean Lilley d94200fe0e Fix doc 2023-11-14 15:43:23 -05:00
Janine Liu df13673387 Add additional 'get' functions, update changelog 2023-11-14 13:32:19 -05:00
Janine Liu e19fa4dba2 Move accessor utility to cesium-native 2023-11-14 11:48:09 -05:00
Janine Liu c6c31aaf4f Merge branch 'main' into property-value-conversions 2023-11-13 14:27:57 -05:00
Janine Liu 4b0c18d6ab Add support for matN conversions 2023-11-13 14:27:12 -05:00
Janine Liu c7122591d6 Switch to std::optional syntax instead of defaulting to some value 2023-11-13 11:47:14 -05:00
Sean Lilley d18af8593c Fix PropertyAttributeView forEachProperty 2023-11-13 11:16:18 -05:00
Janine Liu c702a92a01 Begin implementing conversion logic 2023-11-10 18:11:38 -05:00
Leaf 8d9b1a6a2c Fix logical errors in byteStride calculations 2023-11-07 09:00:40 +08:00
Janine Liu 374a26a8ac Remove PropertyViewTypes.h 2023-10-03 10:21:43 -04:00
Janine Liu 8a1fb1a41a Replace asserts with ifs 2023-09-19 12:26:37 -04:00
Janine Liu d2881dac66 Add getSampler 2023-09-18 16:52:47 -04:00
Janine Liu f2564b8223 Remove redundant PropertyTexturePropertyView param 2023-09-15 17:01:27 -04:00
Janine Liu a960473ccc Revert small doc change 2023-09-13 16:40:01 -04:00
Janine Liu 67e8139fbd Update changelog and add missing static const declaration 2023-09-13 15:06:21 -04:00
Janine Liu 856d34ea19 Add new status code for empty properties with default values 2023-09-13 14:26:20 -04:00
Janine Liu 5162db0c19 Add method to other property classes 2023-09-11 14:22:51 -04:00
Janine Liu 9d5d43126a Add getClass method 2023-09-11 14:17:11 -04:00
Kevin Ring 272f0c95c8 Formatting. 2023-09-08 22:45:14 +10:00
Kevin Ring 710c47e8b8 Merge remote-tracking branch 'origin/upgrade-feature-metadata' into final-metadata-changes 2023-09-08 12:02:39 +10:00
Kevin Ring ea89861678 Merge remote-tracking branch 'origin/upgrade-feature-metadata' into property-attributes 2023-09-08 11:58:40 +10:00
Kevin Ring f3b43c5736 Slightly improve safety of sampleNearestPixel. 2023-09-08 11:43:48 +10:00
Janine Liu 4395928d04
Merge branch 'additional-property-details' into property-attributes 2023-09-07 10:49:27 -04:00
Janine Liu 0004ba4521 PR feedback 2023-09-07 10:45:48 -04:00
Janine Liu 5dba5686a5 Reorder member variables to avoid initialization warnings 2023-09-01 15:32:45 -04:00
Janine Liu 74fbef5474 Add missing pragma once 2023-09-01 14:56:01 -04:00
Janine Liu af9707f149 Add additional PropertyView typedefs 2023-09-01 13:20:49 -04:00
Janine Liu 09e84e2c52 Add getters for name, semantic, description 2023-08-30 15:28:20 -04:00
Janine Liu 7a3a5f0d86 Update changelog and fix sign conversions 2023-08-29 15:48:28 -04:00
Janine Liu 7bf2d18d05 Finish writing tests for PropertyAttributeView 2023-08-29 15:32:42 -04:00
Janine Liu b0a49c2e97 Merge branch 'additional-property-details' into property-attributes 2023-08-29 12:32:34 -04:00
Janine Liu a56f7eddec Move function bodies to cpp 2023-08-29 12:31:44 -04:00
Janine Liu 85ebd3ed7f Add unit tests for new classes, reorganize old tests 2023-08-29 12:10:47 -04:00
Janine Liu a8f46ab0c5 Add PropertyAttributeView and PropertyAttributePropertyView 2023-08-28 17:49:51 -04:00
Janine Liu 763271ac74 Add missing const int to source file 2023-08-28 13:55:55 -04:00
Janine Liu f51012e602 Fix documentation and test 2023-08-28 13:18:51 -04:00
Janine Liu 7f13e1c3f4 Another CI fix 2023-08-28 11:21:10 -04:00
Janine Liu 36337303b1 Fix sign conversion 2023-08-28 10:49:18 -04:00
Janine Liu 5b33dd72ad Fix signed conversions 2023-08-28 10:07:08 -04:00
Janine Liu 79eaa3e687 Final sweep (hopefully) 2023-08-25 17:46:16 -04:00
Janine Liu 2c97ce24ba Second unit test / cleanup sweep 2023-08-25 17:15:26 -04:00
Janine Liu 3e5d630a1f First round of cleanup / PR feedback 2023-08-25 16:17:11 -04:00
Janine Liu ed2bdbd553 Update PropertyTextureView 2023-08-24 20:52:45 -04:00
Janine Liu 76427497ca Rewrite property texture property tests 2023-08-24 18:33:56 -04:00
Janine Liu a00b819dca Finish up PropertyTableView tests 2023-08-24 14:35:45 -04:00
Janine Liu 53bc30391a Integrate normalization with PropertyTableView 2023-08-24 10:55:43 -04:00
Janine Liu 12d1bbcaaa Finish PropertyTablePropertyView tests 2023-08-23 14:55:48 -04:00
Janine Liu fc190004b6 Reinitialize const ints outside of class to avoid errors 2023-08-23 11:17:12 -04:00
Janine Liu 4f37e7a217 Try to fix CI errors 2023-08-23 10:32:28 -04:00
Janine Liu bc9dd9e6e5 Add static casts for integer optionals 2023-08-23 09:58:02 -04:00
Janine Liu d43d7138af Start adding tests for PropertyTablePropertyView 2023-08-22 18:31:09 -04:00
Janine Liu 38001698e8 Fix offset / scale etc. to only work for fixed-length arrays 2023-08-22 12:43:48 -04:00
Janine Liu 734c8cfbb6 Add get vs. getRaw to property view 2023-08-21 17:43:23 -04:00
Janine Liu e19cdae61c Try to fix CI, add PropertyTransformations 2023-08-21 16:51:24 -04:00
Janine Liu 78099d3a70 Fix PropertyView and unit tests 2023-08-21 15:33:05 -04:00
Janine Liu bf324061b6 Start reworking property view for normalization 2023-08-18 17:48:03 -04:00
Janine Liu 8cde08611f Add missing constructor qualifiers 2023-08-18 16:00:54 -04:00
Janine Liu 43cd1a512e Try to get CI to compile 2023-08-18 15:51:06 -04:00
Janine Liu 16565a209e Remove unused file 2023-08-18 14:24:51 -04:00
Janine Liu 5da1ca3e78 Add templating for normalization 2023-08-18 14:19:40 -04:00
Janine Liu 38a595537d Finish unit tests for PropertyView 2023-08-17 15:38:17 -04:00
Janine Liu e7743ea61c Change status enum to static consts 2023-08-17 13:55:54 -04:00
Janine Liu ba779b7c41 Add support for matN values 2023-08-16 14:56:02 -04:00
Janine Liu bfbb6945e5 Add support for vecN 2023-08-16 13:56:37 -04:00
Janine Liu 6dcadfe38e Create PropertyView 2023-08-15 12:43:10 -04:00
Janine Liu dff210594d Add assert in status constructor for PropertyTexturePropertyView 2023-07-05 17:27:28 -04:00
Janine Liu 047422b53d Fix nearest sampling for feature ID textures 2023-07-05 16:35:34 -04:00
Janine Liu b024fe5b8f Stricter reinforcement of unsupported properties 2023-07-03 17:26:24 -04:00
Janine Liu bb1dea3739 Consolidate CI fixes 2023-07-03 16:27:43 -04:00
Janine Liu f3ecde1681 Add callbacks and tests 2023-06-29 16:51:07 -04:00
Janine Liu 8155617808 Add tests for templated getPropertyView 2023-06-29 14:49:12 -04:00
Janine Liu 76d5d26051 Rework PropertyTexturePropertyView, begin reworking PropertyTextureView 2023-06-23 12:06:25 -04:00
Janine Liu 73ea6a1cc9 Merge branch 'upgrade-feature-metadata' into fix-property-texture-view 2023-06-20 13:50:38 -04:00
Janine Liu 1694a9ad3e Fix typo 2023-06-20 10:26:32 -04:00
Janine Liu 59549893c7 Formatting 2023-06-16 17:35:26 -04:00
Janine Liu ffc1ca8f65 Use helper function in PropertyTableView tests 2023-06-16 17:33:40 -04:00
Janine Liu c329a8d407 Replace class names in metadata implementation files 2023-06-16 16:25:39 -04:00
Janine Liu 55ed63a945 Regenerate EXT_structural_metadata classes without prefix 2023-06-16 16:08:35 -04:00
Janine Liu e0f49321c5 Prefix EXT_feature_metadata files, rename EXT_mesh_features files 2023-06-16 15:16:05 -04:00
Janine Liu b25ad79bdc Start reworking property texture view 2023-06-16 13:55:43 -04:00
Janine Liu c34b321b30 Add changelog and delete unused files 2023-06-06 12:10:02 -04:00
Janine Liu bc67ba8490 Fix other files 2023-06-06 11:37:35 -04:00
Janine Liu a50093c460 Rename files and take classes out of separate namespaces 2023-06-06 11:28:24 -04:00
Janine Liu bf8033d2ba Fix last CI error 2023-06-05 10:09:47 -04:00
Janine Liu 2744abd7fe Fix CI errors 2023-06-05 10:04:28 -04:00
Janine Liu d9f330c3ef Fix formatting and wrong file names 2023-06-02 14:43:14 -04:00
Janine Liu 7e0cd8a055 Add tests for feature ID texture view 2023-06-02 14:23:15 -04:00
Janine Liu 4644086f65 Create feature ID texture views for EXT_mesh_features 2023-06-02 14:00:54 -04:00
Janine Liu 60a528a19b Last formatting fix 2023-05-30 20:28:42 -04:00
Janine Liu db0f1734d1 Fix formatting 2023-05-30 20:26:14 -04:00
Janine Liu 44b829a081 Add PropertyTextureProperty tests, fix formatting 2023-05-30 11:11:06 -04:00
Janine Liu 619faea5b7 Add PropertyTextureView and rename PropertyTable classes 2023-05-30 10:27:21 -04:00
Janine Liu b5fb7302e3 Fold helper functions into findCompatibleTypes, fix formatting 2023-05-25 14:43:43 -04:00
Janine Liu 219da88a0a Use pointers in MetadataPropertyTableView 2023-05-25 10:22:13 -04:00
Janine Liu 7f2ea49940 Minor whitespace nitpicks 2023-05-24 12:42:07 -04:00
Janine Liu bae45489ed Add tests 2023-05-24 12:36:28 -04:00
Janine Liu d9e234ab5f Refactor error handling in MetadataPropertyTableView 2023-05-24 11:48:13 -04:00
Janine Liu 1cce7f8202 Use references instead of pointers, add missing doc links 2023-05-24 11:04:45 -04:00
Janine Liu b8b3edea51 Code cleanup 2023-05-23 11:42:34 -04:00
Janine Liu 7e08eadf07 Remove final unused variable 2023-05-23 10:39:26 -04:00
Janine Liu 5513169280 Remove unused variables 2023-05-22 17:50:38 -04:00
Janine Liu 64b8378019 Add tests for callback on array property 2023-05-22 17:46:34 -04:00
Janine Liu 3dd83ab8d0 Add callback tests 2023-05-22 17:26:11 -04:00
Janine Liu efb95c5659 Verify that callbacks work with unit tests 2023-05-22 15:29:14 -04:00
Janine Liu d7f58dab33 Rewrite how vecN / matN are handled 2023-05-22 11:58:37 -04:00
Janine Liu 352d0d20bb Try to fix compile errors 2023-05-19 16:20:38 -04:00
Janine Liu 2b8e5349fa Add tests for StructuralMetadataPropertyTableView 2023-05-19 15:41:54 -04:00
Janine Liu 5e999deef4 Add StructuralMetadataPropertyTableView 2023-05-18 11:18:33 -04:00
Janine Liu 9f7b66c7bb Fix enum names 2023-05-17 15:14:35 -04:00
Janine Liu f52e1bab01 Fix incorrect variable names 2023-05-17 14:52:38 -04:00
Janine Liu 2228f75d6c Rename enums and fix documentation 2023-05-17 14:50:59 -04:00
Janine Liu e1305361b4 Add tests for new property view 2023-05-17 14:01:40 -04:00
Janine Liu 5018b91555 Merge branch 'new-metadata-property-types' into new-metadata-property-view 2023-05-17 11:12:42 -04:00
Kevin Ring c0c8e3a619 Formatting. 2023-05-17 08:44:39 +10:00
Kevin Ring 2b46d1454f Merge remote-tracking branch 'origin/new-metadata-property-types' into specialize-traits 2023-05-17 08:16:43 +10:00
Janine Liu 25a3320be0 Add missing file 2023-05-16 18:15:05 -04:00
Kevin Ring 244e11f92c Merge remote-tracking branch 'origin/new-metadata-property-types' into specialize-traits 2023-05-17 07:44:50 +10:00
Kevin Ring dccb99e666 Formatting. 2023-05-17 07:38:44 +10:00
Kevin Ring 72fe4a960e Fix test failures on GCC9. 2023-05-17 07:37:26 +10:00
Janine Liu 671033c1e1 Add StructuralMetadataPropertyView 2023-05-16 15:53:40 -04:00
Janine Liu da5355387c Fix formatting and minor changes 2023-05-16 15:52:39 -04:00
Janine Liu 90377e8f6c Fix formatting and move pragma 2023-05-16 11:23:10 -04:00
Kevin Ring cd9c32b591 More partial specialization. 2023-05-16 22:25:09 +10:00
Kevin Ring cf7c8bdd38 Use partial specialization to reduce code duplication. 2023-05-16 22:18:37 +10:00
Janine Liu 1433243c3d Add StructuralMetadataPropertyTypeTraits 2023-05-15 18:13:47 -04:00
Janine Liu 14997fb031 Add property types for structural metadata 2023-05-15 16:58:17 -04:00
Marco Hutter 8ffbbbab46 Update class names for materials variants extension 2023-05-02 02:05:04 +02:00
Marco Hutter 18dbbfde54 Add generated classes for `KHR_materials_variants` 2023-05-01 21:45:28 +02:00
Zackery Grizzle ea5bff2026 re-format again 2023-03-06 10:12:32 -06:00
Zackery Grizzle cf86ae3260 reformat with clang, add entry to changes.md 2023-03-03 11:16:07 -06:00
ZackOfAllTrades 4205f15b61
Update CesiumGltf/include/CesiumGltf/AccessorView.h
Co-authored-by: Kevin Ring <kevin@kotachrome.com>
2023-03-03 10:39:01 -06:00
ZackOfAllTrades fd13b00b86
Update CesiumGltf/include/CesiumGltf/AccessorView.h
Co-authored-by: Kevin Ring <kevin@kotachrome.com>
2023-03-03 10:38:55 -06:00
ZackOfAllTrades 159d9553c0
Update CesiumGltf/include/CesiumGltf/AccessorView.h
Co-authored-by: Kevin Ring <kevin@kotachrome.com>
2023-03-03 10:38:47 -06:00
Zackery Grizzle 995ed04a62 expose the bufferStart and stride of the accesorview's buffer
* giving access to these properties would allow more flexibility to the developers
2023-03-02 15:58:20 -06:00
Kevin Ring c4ad8721c7 Include string header for string enums. 2022-12-23 14:44:26 +11:00
Nithin Pranesh 30a16320e7 regenerate webp extension 2022-08-31 12:34:43 -04:00
Nithin Pranesh 320ffa91d9 add webp extension 2022-08-31 12:06:11 -04:00
Sean Lilley 5ba6cb6535 Add KHR_texture_transform extension 2022-08-28 13:32:20 -04:00
Sean Lilley ac60e58fc6 Remove unused file ExtensionTextureBasisU 2022-04-15 13:50:54 -04:00
Sean Lilley 67462c0eaa Merge branch 'main' into 3dtiles-1.1 2022-03-22 08:19:34 -04:00
Kevin Ring 5e4e34d2bd Merge remote-tracking branch 'origin/main' into 3dtiles-1.1 2022-03-22 15:45:38 +11:00
Nithin Pranesh c17a928c2f Merge branch 'is-metadata-array' into node-variants 2022-03-21 16:13:41 -04:00
Nithin Pranesh c3b8838151 call it "textureCoordinateAttributeId" instead of "textureCoordinateIndex", makes it much less confusing in c4u 2022-03-17 12:07:54 -04:00
Nithin Pranesh d4e8c7e798 Add property trait that checks whether a type is a metadata array 2022-03-17 00:03:00 -04:00
Sean Lilley 00eab5bed7 Update 3D Tiles and glTF extensions 2022-03-16 09:15:02 -04:00
Nithin Pranesh b2813d97aa expose feature texture swizzle string 2022-03-15 09:45:54 -04:00
Nithin Pranesh 027fb29bc5 Merge branch 'main' into node-variants 2022-03-02 11:24:32 -05:00
Sean Lilley be3f18cf9b Support optional JsonValue properties 2022-02-27 17:58:43 -05:00
Sean Lilley 7235ce8f69 Rerun with different names 2022-02-27 17:17:43 -05:00
Sean Lilley b76468a278 Remove old files 2022-02-27 17:12:41 -05:00
Sean Lilley 3ee7e19399 Merge branch 'main' into 3dtiles-1.1 2022-02-27 11:21:29 -05:00
Kevin Ring 0dc0e37fd1 Merge remote-tracking branch 'origin/main' into ue5 2022-02-25 09:31:47 +11:00
Kevin Ring 11e7f08b4b
Merge branch 'main' into metadata-textures 2022-02-24 16:36:11 +11:00
Kevin Ring 7efd09db05 Merge remote-tracking branch 'origin/main' into ue5 2022-02-24 10:48:11 +11:00
Nithin Pranesh 8adcf6e67f removed todos, more descriptive comments about 8-byte alignment 2022-02-21 10:28:22 -05:00
IanLilleyT 21904215dd updated generator for 3d tiles 1.1 schemas 2022-02-18 18:06:14 -05:00
Nithin Pranesh 847e0009ce
Merge branch 'main' into ktx2-nithin 2022-02-18 14:33:07 -05:00
Nithin Pranesh ea8521747f safer initialization for supported formats struct 2022-02-18 14:17:11 -05:00
Nithin Pranesh 38cb5bdf0d
Update CesiumGltf/include/CesiumGltf/Ktx2TranscodeTargets.h
Co-authored-by: Kevin Ring <kevin@kotachrome.com>
2022-02-18 14:01:25 -05:00
Kevin Ring 966aba6089 Fix code generation for MAXAR_mesh_variants. 2022-02-17 19:30:51 +11:00
Nithin Pranesh c720dbbfbe add MAXAR_mesh_variants, fix generator trying to generate manually-defined classes (like glTF Property) 2022-02-16 09:40:55 -05:00
Nithin Pranesh a312bf42d6 Revert "add MAXAR_mesh_variants, fix generator trying to generate manually-defined classes (like glTF Property)"
This reverts commit 26ad9be905.
2022-02-16 09:34:12 -05:00
Nithin Pranesh 26ad9be905 add MAXAR_mesh_variants, fix generator trying to generate manually-defined classes (like glTF Property) 2022-02-16 09:32:18 -05:00
Nithin Pranesh be511d202b add option to preserve texture quality during ktx2 texture transcode 2022-02-14 16:53:45 -05:00
Nithin Pranesh 30089bcbfa fix comments, remove redundant namespace qualifiers 2022-02-14 10:42:27 -05:00
Nithin Pranesh 7a088d5165 enum -> enum class 2022-02-12 14:22:32 -05:00
Nithin Pranesh eee9351c87 use extra enum for uncompressed images rather than std::nullopt 2022-02-11 17:18:55 -05:00
Nithin Pranesh 21e83e0367 add mipmap capability to image api, pass through mipmaps from ktx2 images 2022-02-07 22:53:49 -05:00
Nithin Pranesh b3eb40e4c6 more descriptive name for struct that lists support for compressed formats 2022-02-03 21:53:54 -05:00
Nithin Pranesh f7c0c21208 added api for clients to report supported compressed formats
added logic to autoselect ideal compressed format based on the reported supported formats
2022-02-03 21:40:31 -05:00
Nithin Pranesh 1a08065023 fix khr_texture_basisu extension generation 2022-02-01 14:35:47 -05:00
Nithin Pranesh ca963694e6 regenerate gltf files 2022-02-01 12:45:28 -05:00
Nithin Pranesh e0b6344933 Merge branch 'main' into ktx2-nithin 2022-02-01 12:19:55 -05:00
Joseph Kaile 62fc7905b7 generate Cesium RTC extension using generate-tools 2022-01-31 14:18:51 -05:00
Nithin Pranesh 89282b1dc4 fix incorrect return value in feature texture sampler 2022-01-26 15:03:46 -05:00
Nithin Pranesh ea235668bb attempt to fix gcc/clang warnings 2022-01-26 14:39:32 -05:00
Nithin Pranesh 89e0c8afc8 make metadata texture sample safer, doxygen improvement 2022-01-26 14:19:04 -05:00
Nithin Pranesh f3bfc1551b doxygen comments for all API additions 2022-01-26 13:52:44 -05:00
Nithin Pranesh 81f6fa5efa remove useless constexprs 2022-01-26 11:03:47 -05:00
Nithin Pranesh c97b384bb3 move implementations to cpp files, add extra check for empty images 2022-01-26 10:58:43 -05:00
Kevin Ring a5e3f11846 Impl->CesiumImpl, TWO_PI->TwoPi. 2022-01-25 11:55:43 +11:00
Sean Lilley 5e78d1d72a Added more gltf and 3d tiles extensions 2022-01-21 14:25:35 -05:00
Nithin Pranesh 122c9bcfdf fix tests, for now we will stop enforcing 8-byte alignment for metadata buffers 2022-01-10 10:44:46 -05:00
Nithin Pranesh 9c5b69e303 Merge branch 'main' into metadata-textures 2022-01-10 09:44:15 -05:00
Nithin Pranesh e6a8be9acc expose FeatureTexturePropertyView::channelOffsets 2022-01-07 17:23:13 -05:00
Nithin Pranesh b267a27588 small FeatureTexturePropertyView and FeatureTextureView improvements 2022-01-06 14:06:05 -05:00
Nithin Pranesh 355001f441 expose whether feature texture pixel values should be normalized 2021-12-20 11:44:08 -05:00
Nithin Pranesh 1906b68bc6 fix ext_feature_metadata schema url + regenerate 2021-12-19 18:34:30 -05:00
Nithin Pranesh 6e4b4b9faa regenerate gltf classes 2021-12-19 17:49:39 -05:00
Nithin Pranesh 53b828a9ca Merge remote-tracking branch 'origin/main' into ktx2-nithin 2021-12-19 17:23:39 -05:00
Nithin Pranesh 70f90921a6 remove extraneous public label 2021-12-15 13:50:35 -05:00
Nithin Pranesh e22c9d31d6 small fixes 2021-12-15 10:30:01 -05:00
Nithin Pranesh 72f89c5d06 moved new file to right place 2021-12-15 01:22:06 -05:00
Nithin Pranesh 47d20a08c5 add views for feature textures 2021-12-15 01:15:05 -05:00
Nithin Pranesh 47cfb28495 surfaces whether integer properties are to be normalized 2021-12-14 12:07:29 -05:00
Nithin Pranesh 56b60e7add temporary workaround for non-8byte-aligned metadata buffers 2021-12-09 13:23:00 -05:00
Nithin Pranesh a8b637662c expose more values in metadata views 2021-12-08 01:15:52 -05:00
Sean Lilley 21c65ddac8 Change folder structure for src folders 2021-12-03 11:11:41 -05:00
Sean Lilley 2cdcb92e20 Namespace cleanup 2021-12-02 18:34:22 -05:00
Nithin Pranesh b5079e40d0 fix more issues 2021-12-02 16:36:38 -05:00
Nithin Pranesh ef797f3cfb fix FeatureIDTextureView 2021-12-01 16:12:22 -05:00
Nithin Pranesh dfa5d8fcc0 add FeatureIDTextureView 2021-12-01 08:55:29 -05:00
Nithin Pranesh 55c12d0861 add support for transcoding to more formats 2021-11-27 17:53:27 -05:00
Nithin Pranesh 976d2d4d05 cleaner ImageCesium api 2021-11-22 18:03:34 -05:00
Nithin Pranesh 57f9c69e9b add KHR_texture_basisu extension support 2021-11-22 04:49:44 -05:00
Nithin Pranesh 042221aac6 oof forgot to format after generate-gltfs 2021-11-22 03:52:54 -05:00
Nithin Pranesh a2efbf8e8d rerun generate-gltf 2021-11-22 03:51:54 -05:00
Nithin Pranesh bc019173eb format 2021-11-22 03:47:19 -05:00
Sean Lilley a9110dbb74 Initial KTX2
(cherry picked from Sean's hackathon project)
2021-11-22 03:45:23 -05:00
Kevin Ring 4dac37ceb0
Merge pull request #377 from CesiumGS/extension-class-rename
Rename generated extension classes (targeting `main`)
2021-11-01 11:02:01 +11:00
Sean Lilley 9acc5ac71a Rename Primitive back to MeshPrimitive 2021-10-30 14:56:43 -04:00
Sean Lilley 6fd48d8735 Use different naming convention for extension classes 2021-10-30 14:55:40 -04:00
Nithin Pranesh 95051aa2b5 fixed handling of reserved c++ keywords in gltf reader generator 2021-10-29 17:37:57 -04:00
Sean Lilley 711114a344 Fix formatting 2021-10-18 19:04:57 -04:00
Sean Lilley 066b3df5a5 Use strict types 2021-10-18 18:47:02 -04:00