Commit Graph

790 Commits

Author SHA1 Message Date
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
Sean Lilley f9b48fbe0e Renegerate glTF classes 2021-10-18 18:46:58 -04:00
Sean Lilley 8453d760e7 Rename generate-gltf-classes to generate-classes 2021-10-12 12:51:55 -04:00
Sean Lilley 78224b11e5 Merge branch 'main' into fix-includes 2021-10-12 11:59:32 -04:00
Sean Lilley 1a31661fa1
Merge pull request #362 from CesiumGS/add-cesium3dtiles
Add Cesium3DTiles project
2021-10-12 11:57:09 -04:00
Kevin Ring 439e37afda Merge remote-tracking branch 'origin/add-cesium3dtiles' into fix-includes 2021-10-12 21:45:12 +11:00
Kevin Ring 3443bbf130 Remove using in header, remove redundant code. 2021-10-12 17:47:35 +11:00
Sean Lilley 715eebc945 Fix class description when schema is missing description 2021-10-11 19:02:36 -04:00
Sean Lilley 52283f3359 Fix includes 2021-10-11 17:28:44 -04:00
Sean Lilley 7dad7003bb One ExtensibleObject 2021-10-11 16:47:49 -04:00
Sean Lilley ef9d5c8e43 Merge branch 'main' into gltf-no-defaults-for-optional 2021-10-11 12:33:08 -04:00
Marco Hutter 293095c9c2 Do not initialize optional enum-typed properties 2021-10-11 17:16:30 +02:00
Sean Lilley 47a4733090 Update generate-gltf-classes to support 3D Tiles 2021-10-10 17:39:22 -04:00
Kevin Ring ee5c9f0857
Merge pull request #351 from CesiumGS/gltf-schema-updates
Update generated files with newer glTF schema
2021-10-06 12:41:10 +11:00
Sean Lilley 525f8e15be Support const property in anyOf elements 2021-10-03 14:19:14 -04:00
Sean Lilley 4f2bad8ab6 Fix accidental copy-paste 2021-10-03 12:06:13 -04:00
Kevin Ring c1b9096abc Merge remote-tracking branch 'origin/main' into gltf-generator-enum-fixes 2021-10-02 01:10:06 +10:00
Marco Hutter 9855400417 Use proper relative paths in all public headers 2021-09-28 17:23:07 +02:00
Marco Hutter 27fdd26e27 Merge remote-tracking branch 'origin/main' into include-style-fixes
# Conflicts:
#	Cesium3DTilesSelection/include/Cesium3DTilesSelection/GltfContent.h
#	Cesium3DTilesSelection/src/Batched3DModelContent.cpp
#	Cesium3DTilesSelection/src/CompositeContent.cpp
#	Cesium3DTilesSelection/src/ExternalTilesetContent.cpp
#	Cesium3DTilesSelection/src/GltfContent.cpp
#	Cesium3DTilesSelection/src/QuantizedMeshContent.cpp
#	Cesium3DTilesSelection/src/Tile.cpp
#	Cesium3DTilesSelection/src/TileContentFactory.cpp
#	Cesium3DTilesSelection/src/calcQuadtreeMaxGeometricError.h
2021-09-28 14:38:33 +02:00
Sean Lilley cf5f3b24c1 Merge branch 'gltf-generator-enum-fixes' into gltf-schema-updates 2021-09-26 13:32:30 -04:00
Sean Lilley ae7d9e70a8 Merge branch 'main' into gltf-generator-enum-fixes 2021-09-26 13:24:10 -04:00
Marco Hutter 175b7eec9a Also format the auto-generated code
This will sort itself out at some point...
2021-09-26 17:57:48 +02:00
Marco Hutter 0e827f7afd Updated includes based on clang-format with Regroup
This MAINLY inserted some blank lines between
the blocks.
2021-09-26 17:46:27 +02:00
Sean Lilley 8dfa62a73e Changes to generated files 2021-09-26 11:39:10 -04:00
Marco Hutter 5519532b1e Initialize members to proper (non-default) values. 2021-09-26 16:52:54 +02:00
Marco Hutter 486eb57a93 Update for glTF enums in other classes - WIP
This updates the non-auto-generated classes based on
the changes of the auto-generated ones.
2021-09-26 15:06:10 +02:00
Marco Hutter f63c0e5265 Update of auto-generated classes - WIP
This does not compile. It is only the update of the
auto-generated classes, without the corresponding
updates in the non-auto-generated classes.
2021-09-26 14:44:29 +02:00
Marco Hutter 6a5e0d3d48 Added missing const for reference parameters
C26460: The reference argument ... for function ... can be marked as const
2021-09-15 17:43:42 +02:00
Marco Hutter 106c3065ad Formatting after adding noexcept specifiers 2021-09-15 17:03:56 +02:00
Marco Hutter 3e75d1fc6b Added further missing noexcept specifiers
C26440: Function ... can be declared noexcept
2021-09-15 17:03:15 +02:00
Marco Hutter 46c9c7ec7d Formatting after adding const 2021-09-15 15:38:06 +02:00
Marco Hutter de8145ab9e Added missing const keyword
C26496: The variable ... is assigned only once, mark it as const
2021-09-15 15:37:29 +02:00
Marco Hutter a84b09c238 Added further noexcept specifiers 2021-09-15 02:35:40 +02:00
Nithin Pranesh e06cc3afbf replace getIndex std::function with templates 2021-08-27 13:59:13 -04:00
Nithin Pranesh f9d769371e fix unsafe normalization 2021-08-27 11:43:19 -04:00
Marco Hutter 8ddb163f6d Perform component-wise vector comparison 2021-08-23 21:04:42 +02:00
Nithin Pranesh 08e56e68b6 more gcc/clang fixes 2021-08-23 13:33:36 -04:00
Nithin Pranesh 34e4a14120 replace local std::function parameters with template 2021-08-23 13:12:37 -04:00
Nithin Pranesh 6d3f8ee262 attempt to fix gcc/clang errors 2021-08-23 13:12:21 -04:00
Nithin Pranesh 24e9acb1ed add tests for triangle strips and fans 2021-08-23 12:22:06 -04:00
Nithin Pranesh e7932e0ce4 add tests for smooth normals and forEachPrimitive 2021-08-21 12:15:29 -04:00
Nithin Pranesh e5a59f85ee parse alternative node transform format 2021-08-18 12:48:30 -04:00
Nithin Pranesh 913190c273 move addTriangleNormalToVertexNormals into standalone function, instead of lambda 2021-08-18 12:00:46 -04:00
Nithin Pranesh 8cc6a1d064 only need unsigned index types 2021-08-18 11:50:42 -04:00
Nithin Pranesh 02430a1643 remove flat normal generation from cesium-native 2021-08-17 16:57:25 -04:00
Nithin Pranesh d769b17fda add generate missing flat normals options 2021-08-16 12:26:50 -04:00
Nithin Pranesh 32d1352fb5 reuse existing position buffer when flattening indices 2021-08-16 10:46:52 -04:00
Nithin Pranesh b136045efc fix gcc/clang warnings 2021-08-16 09:17:51 -04:00
Nithin Pranesh c17b8bc9a4 WIP generate missing flat normals in cesium-native 2021-08-15 21:26:37 -04:00
Nithin Pranesh 19f55611dc apply review suggestion 2021-08-15 13:27:22 -04:00
Nithin Pranesh 6a4477136d WIP move code to CesiumGltf::Model 2021-08-15 12:57:35 -04:00
Kevin Ring 9b7539d013 PropertyType doesn't need to be a bitmask. 2021-07-28 15:19:52 +10:00
Kevin Ring 3c6185f278 Formatting. 2021-07-28 12:34:25 +10:00
Kevin Ring 8a18a473f7 Default constructors for views, IsMetadataInteger/Floating. 2021-07-27 17:25:56 +10:00
Kevin Ring 449068c3d6
Merge pull request #281 from CesiumGS/feature-metadata-extension
Upgrade batch table to EXT_feature_metadata extension
2021-07-24 21:32:14 +10:00
Kevin Ring 52c52984b5 ReinterpretCastSpan -> reinterpretCastSpan. 2021-07-24 20:50:15 +10:00
Bao Tran 303bc24f4f add reintepret_cast for span 2021-07-23 13:23:24 -04:00
Bao Tran c7906e2a94 use span byte for numeric MetadataArrayView 2021-07-23 11:36:48 -04:00
Bao Tran ca0b853b73 add comment about the status of property view 2021-07-20 12:36:02 -04:00
Bao Tran 8ccd633dfb add status for property view 2021-07-20 12:15:13 -04:00
Bao Tran 31d85a358d add status for property view 2021-07-19 12:17:54 -04:00
Bao Tran 3d9e0c13bd convert type to PropertyType instead of uint32 2021-07-17 23:55:04 -04:00
Bao Tran 2e7d9b8c97 fix compiler warning 2021-07-15 20:11:16 -04:00
Bao Tran 5f4add636a fix more compiler warning 2021-07-15 19:52:20 -04:00
Bao Tran a6d8f69e57 fix compiler warning 2021-07-15 19:49:29 -04:00
Bao Tran eca0952eb2 add assertion when converting binary metadata 2021-07-15 19:25:42 -04:00
Bao Tran e420e729ec fix compiler warning 2021-07-15 19:10:59 -04:00
Bao Tran 1185d2e78f use int64 for meta array 2021-07-15 17:17:30 -04:00
Bao Tran c19b847261 fix test 2021-07-15 17:00:31 -04:00
Bao Tran dab9312560 use int64_t for property view 2021-07-13 13:47:01 -04:00
Bao Tran e709e8fc34 add float and double type to comment for feature table view and property view 2021-07-13 11:38:29 -04:00
Bao Tran ced959eccb add p prefix for pointer 2021-07-13 11:30:08 -04:00
Bao Tran fb24d8d6ca add comment to FeatureTableView 2021-07-08 18:29:38 -04:00
Kevin Ring 4e45bab460 Use angle brackets to #include catch2. 2021-07-04 22:57:11 +10:00
Bao Tran e1eb2d1f84 Merge branch 'main' into feature-metadata-extension 2021-07-02 10:50:43 -04:00
Bao Tran e8521c280a retrieve property by using callback 2021-06-28 18:52:02 -04:00
Bao Tran 380697c6c9 add document for PropertyTypeTrait 2021-06-20 19:31:15 -04:00
Bao Tran 4ecf9af04d add documentation for FeatureTableView 2021-06-20 19:03:35 -04:00
Bao Tran 78719b60df add comment for PropertyView 2021-06-20 17:45:23 -04:00
Bao Tran 3091533ef6 change PropertyView to MetadataPropertyView 2021-06-20 15:58:08 -04:00
Bao Tran 3846381cc9 change names of property type trait 2021-06-20 15:56:06 -04:00
Bao Tran c64fea091e test property trait and format 2021-06-20 15:51:53 -04:00
Bao Tran 3243f9c4ed test property type 2021-06-20 15:14:34 -04:00
Bao Tran c0faaf18dc change file name for batch table to EXT_feature_metadata 2021-06-20 14:51:15 -04:00
Bao Tran 951cb7a23e pass rapidjson::Document for batch table json to metadata upgrader 2021-06-20 14:47:36 -04:00
Bao Tran 6035cc8387 clean up unused headers 2021-06-20 12:11:18 -04:00
Bao Tran 0e1d188636 remove bool getter in feature table view 2021-06-20 11:54:02 -04:00
Bao Tran e1909b3bf7 remove getter for bool array in feature table view 2021-06-20 11:44:15 -04:00
Bao Tran 661db543d2 replace operator[] with get() for PropertyView 2021-06-20 01:40:27 -04:00
Bao Tran 76f2d10ccb test to validate dynamic array of string 2021-06-18 18:44:41 -04:00
Bao Tran 96c49c4529 test fixed array of string 2021-06-18 14:48:29 -04:00
Bao Tran 9a68718dc6 test for dynamic bool array 2021-06-18 11:41:46 -04:00
Bao Tran b6c8047c18 add test to validate fixed bool array 2021-06-17 17:00:49 -04:00
Bao Tran 6300cae267 test to validate dynamic numeric array 2021-06-17 15:26:31 -04:00
Bao Tran 47b891fac8 fix compiler warning 2021-06-17 13:28:02 -04:00
Bao Tran 7ac819dcf5 add test to validate fixed numeric array 2021-06-17 13:07:28 -04:00
Bao Tran 21f44e7a29 test to make sure offset values are sorted 2021-06-16 16:43:35 -04:00
Bao Tran d7c42c559d add test for string validation 2021-06-16 16:11:20 -04:00
Bao Tran 0506eed5c3 add test validation for bool property 2021-06-15 17:11:28 -04:00
Bao Tran 1c2a758274 add more tests to validate metadata bufferview 2021-06-15 15:15:40 -04:00
Bao Tran 3288dc5bca fix compiler warning 2021-06-15 14:51:30 -04:00