Commit Graph

169 Commits

Author SHA1 Message Date
Kevin Ring eeab8694bf
Merge pull request #883 from CesiumGS/remove-unused-buffers
Added `removeUnusedBuffers`
2024-05-24 15:48:04 +10:00
Kevin Ring 95bf6826a0
Merge pull request #880 from CesiumGS/no_stb_image_implementation
Fix STB library conflicts
2024-05-24 15:47:11 +10:00
Kevin Ring 7a20339054 Eliminate some duplication, update CHANGES.md. 2024-05-24 14:26:39 +10:00
Brian L e3320e409e Add proper support for indexed triangle fans and enable test 2024-05-23 16:28:17 -06:00
Brian L 7ea3f2ec65 Add indexed triangle fan test cube 2024-05-23 16:09:35 -06:00
Brian L 13185615cd Add triangle fan support and enable test 2024-05-23 15:35:29 -06:00
Brian L aedb8cc6d7 Add proper support for indexed triangle strips and enable test 2024-05-23 15:15:24 -06:00
Brian L 331cd18993 Add indexed triangle strip test cube 2024-05-23 15:13:15 -06:00
Brian L b0a92fff59 Add proper support for triangle strips and enable test 2024-05-23 10:10:46 -06:00
Brian L dc0f4d6d2d Add non-indexed cube test and fix logic bugs 2024-05-22 21:39:22 -06:00
Brian L 41ee75bc72 Flesh out non-indexed code path 2024-05-22 15:38:20 -06:00
Brian L 7af234419d update format 2024-05-22 14:54:38 -06:00
Brian L 938e5cd6cc Remove unnecessary test asset 2024-05-22 14:53:22 -06:00
Brian L 1c73911e54 Stub out the rest of the unit cube tests 2024-05-22 14:53:13 -06:00
Brian L 2e5ff62fc6 switch to using new unit cube test model 2024-05-22 14:49:45 -06:00
Brian L c5ebb81fb0 Add cube fan example and generation script 2024-05-22 14:08:20 -06:00
Sean Lilley 4b3148a562 Added removeUnusedBuffers 2024-05-21 21:14:32 -04:00
Sean Lilley 85c03c8564 Faster collapseToSingleBuffer 2024-05-21 20:43:16 -04:00
Brian L 018c7640eb Remove unneeded test files 2024-05-21 17:22:48 -06:00
Brian L 25331a91c9 Add cube with triangle strip test 2024-05-21 17:22:38 -06:00
Brian L a0b49cefbe Explicitly declare triangle mode 2024-05-21 16:20:12 -06:00
Brian L bef7cbfc78 update test generation scripts 2024-05-21 16:01:47 -06:00
Kevin Ring 206c1c8195 Add test for `compactBuffers` with meshopt bufferviews. 2024-05-21 21:43:13 +10:00
Kevin Ring 2f9cf0ad0d Add tests for GltfUtilities::collapseToSingleBuffer. 2024-05-21 21:35:04 +10:00
Kevin Ring 1c3739474c Leave meshopt fallback buffers intact in collapseToSingleBuffer. 2024-05-21 20:48:00 +10:00
Brian L bc8a918058 Add some test glbs
Also add the source python that created them
2024-05-17 16:06:05 -06:00
Brian L 88797d6156 Declare stb write implementation as static (to prevent future conflicts) 2024-05-17 10:29:02 -06:00
Brian L 2924edefba Add tests for intersections with model with transformation matrix 2024-05-16 16:32:21 -06:00
Brian L 90755aff5a Rename getPointAlongRay to pointFromDistance 2024-05-16 16:02:09 -06:00
Brian L c35b8d3b94 Undo unnecessary changes 2024-05-16 15:24:56 -06:00
Brian L 8ba05076ac Fix warning 2024-05-16 10:47:31 -06:00
Brian L f13d733705 Fix bug where intersect test would hit tris behind the ray. Add more tests 2024-05-16 10:37:09 -06:00
Brian L fad02b554c Fix casting warnings 2024-05-15 16:36:12 -06:00
Brian L 39fc592974 Fix check to not generate a warning 2024-05-15 16:09:22 -06:00
Brian L 48db4d0313 Rework tests to also traverse into model using hit results 2024-05-15 15:56:33 -06:00
Brian L 1fed700539 Fix primitiveToWorld not getting copied to hit result 2024-05-15 15:49:33 -06:00
Brian L 54b352b15b Add missing initializers 2024-05-15 14:31:00 -06:00
Brian L a01ef4cdc4 Store primitiveToWorld transform in the hit result 2024-05-15 13:50:54 -06:00
Brian L ccce2f098e Let intersectRayGltfModel HitResult return primitiveId correctly 2024-05-15 13:34:58 -06:00
Brian L 5bcfe34ded Let intersectRayGltfModel HitResult return meshId correctly 2024-05-15 13:21:11 -06:00
Brian L 54da172e29 Add more hit result info to ::intersectRayGltfModel
Still more work to do in the implementation...
2024-05-15 11:18:16 -06:00
Brian L 0ad31921ff revert changes 2024-05-06 15:09:56 -06:00
Brian L b765a735c9 update from main 2024-05-06 15:07:03 -06:00
Kevin Ring 66860989a4 Various glTF fixes, mostly meshopt related. 2024-05-06 13:53:37 +10:00
Brian L 47414f09fb Make our ASSERT macro. Move everything to use this. 2024-05-03 12:50:50 -06:00
Kevin Ring feec23050d Fix GCC / Clang warning. 2024-05-03 22:52:10 +10:00
Kevin Ring 220b5b7adf 8-byte alignment for moveBuffers, too.
Also allow removal of any number of bytes from the end of the buffer.
2024-05-03 22:46:47 +10:00
Kevin Ring 9fb0ee9f9f Preserve alignment in GltfUtilities::compactBuffer. 2024-05-03 22:27:30 +10:00
Brian L 5817d88224 Only put stb resize into own our namespace (others can stay put) 2024-04-30 18:21:24 -06:00
Brian L ff60e4c2b5 Put STB in the Cesium namespace 2024-04-30 18:10:41 -06:00
Sean Lilley 46c8b9e736
Merge pull request #860 from CesiumGS/build-tweaks
Improvements to the build process
2024-04-15 10:24:38 -04:00
Kevin Ring a3237c9195 Formatting. 2024-04-15 09:39:32 +10:00
Kevin Ring dd35563ff8 Tweaks for the tilers build.
* Use `ktx` library instead of `ktx_read`. The former includes writing
  ability, and there's no library that includes _just_ writing.
* Move STB image resize implementation code into CesiumGltfReader
  (instead of CesiumGltfContent).
2024-04-15 09:30:05 +10:00
Janine Liu 2cb26ebeeb Doc improvements and function flattening 2024-04-12 14:13:51 -04:00
Kevin Ring 528193f08b Add missing const. 2024-04-10 23:16:08 +10:00
Kevin Ring a04b315d9d More GltfUtilities tests. 2024-04-10 21:33:51 +10:00
Kevin Ring 5306abda97 Add GltfUtilities::getNodeTransform/setNodeTransform tests. 2024-04-10 19:40:01 +10:00
Kevin Ring eeeb304926 Various glTF helper functions. 2024-04-10 15:14:11 +10:00
Bradley Austin Davis 24d783fb01 Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
Joseph Kaile c6bcf9736f update and comment intersection functions 2024-01-02 14:53:43 -05:00
Joseph Kaile 12d6885e42 add more intersection tests 2023-12-19 19:16:53 -05:00
Joseph Kaile ad512a3026 add gltf ray intersect function with tests 2023-12-13 17:37:10 -05:00
Kevin Ring a900fa6489 Move TestImageManipulation.cpp to the right library. 2023-11-29 09:40:36 +11:00
Kevin Ring c77a0442c4 Fix another warning. 2023-11-18 19:37:05 +11:00
Kevin Ring 413f977e31 Fix clang warnings. 2023-11-18 19:35:25 +11:00
Kevin Ring b563542e20 Formatting. 2023-11-17 22:30:36 +11:00
Kevin Ring 791984c22c moveBufferContent, invertVCoordinate. 2023-11-17 14:12:21 +11:00
Kevin Ring 581d6c9ef6 Get raster overlay baking working. 2023-11-16 23:32:12 +11:00
Kevin Ring 761630d45a Add CesiumGltfContent library. 2023-11-15 17:20:08 +11:00