Commit Graph

451 Commits

Author SHA1 Message Date
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