Commit Graph

36792 Commits

Author SHA1 Message Date
Peter Gagliardi baad234b61 Add integration tests for Cesium3DTileset 2022-05-17 13:09:13 -04:00
Peter Gagliardi 8b2817ba46 Add dummy tilesets without root schemas 2022-05-17 11:55:55 -04:00
Peter Gagliardi 3b9acf6d04 Add warnings when a root metadata schema is not found 2022-05-17 11:44:08 -04:00
Janine Liu 2cee8aeb4b Remove individual IBL parameters from Model 2022-05-17 11:43:15 -04:00
Sean Lilley 6cc96ec74b
Merge pull request #10375 from erikdahlstrom/fix_10372
Fix #10372 - tileset.debugShowUrl broken for implicit tiles
2022-05-17 11:12:03 -04:00
Peter Gagliardi 21c49b111e Add a landing page for the Documentation folder 2022-05-17 11:09:22 -04:00
Peter Gagliardi 33108ca0c6 Add unit tests 2022-05-17 10:56:20 -04:00
Janine Liu 8b4a6a21f3 Merge with main 2022-05-16 14:33:18 -04:00
Janine Liu 8aa34b991a 2D / CV works for draco compression 2022-05-16 14:15:32 -04:00
Gabby Getz 0282c1f34e Update CHANGES, doc comments 2022-05-16 11:11:31 -04:00
Gabby Getz e3f39a1f10 Update CHANGES.md 2022-05-16 09:50:18 -04:00
Gabby Getz a20c97b983 Remove wasm workaround for edge 2022-05-16 09:47:38 -04:00
Gabby Getz 3acf39cf6b Merge branch 'main' into defer-b-gone 2022-05-13 14:32:17 -04:00
Gabby Getz e9e74ee193 Resolve test failures 2022-05-13 14:09:52 -04:00
Janine Liu 6e8df5e7e0 Separate 2D position attribute from 3D in shader 2022-05-13 13:14:47 -04:00
Gabby Getz adea020fd9
Merge pull request #10360 from Gu-Miao/main
Fix `HeadingPitchRollValues` type
2022-05-13 13:10:50 -04:00
Sean Lilley 3fdd163b11 Save contentHeader as variable 2022-05-13 11:24:39 -04:00
Sean Lilley 74329179b7 Revert "Fix #10372 - tileset.debugShowUrl broken for implicit tiles"
This reverts commit 5573ce5e00.
2022-05-13 11:23:43 -04:00
Erik Dahlström c7ef72a516 CHANGES++ 2022-05-13 15:59:56 +02:00
Sam Suhag ae720d4475
Merge pull request #10377 from CesiumGS/you-down-with-oit-yeah-you-know-me
Tweak Atmosphere Sandcastle example
2022-05-13 09:57:21 -04:00
Matthew Amato 4adb94ef9e
Tweak Atmosphere Sandcastle example
The Atmosphere Sandcastle disabled OIT for no reason. As we've learned in the past, this can lead to users copy and pasting it thinking they need it.
2022-05-13 09:37:15 -04:00
Erik Dahlström 7efb03a61f CONTRIBUTORS++ 2022-05-13 12:19:05 +02:00
Erik Dahlström 5573ce5e00 Fix #10372 - tileset.debugShowUrl broken for implicit tiles 2022-05-13 10:37:20 +02:00
Sean Lilley 3bf9403f20
Merge pull request #10371 from CesiumGS/add-url-to-modelexperimental
Add `options.url` to `ModelExperimental.fromGltf`
2022-05-12 11:53:22 -04:00
Janine Liu cc8cd644a9 gltf -> url in custom shaders guide 2022-05-12 11:15:02 -04:00
Janine Liu 4853ad0f04 Replace gltf with url in public API 2022-05-12 11:12:10 -04:00
Janine Liu 6ff107badd Update changelog [skip ci] 2022-05-12 10:12:54 -04:00
Janine Liu eed258746a Add options.url to ModelExperimental.fromGltf 2022-05-12 09:55:19 -04:00
Janine Liu aa1fb1741a Add dequantization on CPU (wip) 2022-05-11 15:36:19 -04:00
Janine Liu d9c2e6d283 Add bounding sphere center as reference point 2022-05-11 10:24:01 -04:00
Janine Liu 8f4eca1518
Merge pull request #9339 from markw65/manual-animation
Add support for explicit control over model animations
2022-05-10 17:38:33 -04:00
markw65 f8a859c744 More code review fixes 2022-05-10 14:10:38 -07:00
markw65 47e7d9fdcd Respond to code review 2022-05-10 14:04:56 -07:00
markw65 125d154994 Apply changes to ModelExperimental 2022-05-10 13:55:31 -07:00
markw65 34e471d11d One more missed review fix
Use `defined(scheduledAnimation.animationTime)`
2022-05-10 13:55:31 -07:00
markw65 933ac94898 Review fixes
- rename _prevAnimationTime to _prevAnimationDelta
- rewrite the _prevAnimationDelta bailout
- add a test that we animate while paused if animateWhilePaused is true, and update the existing test to check that we don't animate while paused when animateWhilePaused is false
2022-05-10 13:55:31 -07:00
markw65 cd8bfda192 Add support for explicit control over model animations
Cesium currently only supports time based animation. This can
be inconvenient if the phase of the animation is related to
something other than time (eg distance along a path of an
object moving at a variable speed).

This came up before in #7361, but the author was persuaded that
it was better to use nodeTransformations to explicitly control
the model. That was (just) doable with that example, because
there were just 3 pairs of wheels, all of which needed the
exact same, relatively trivial, transformations. The proposed
solution was also cumbersome, relying on modifying `multiplier`
on the fly, with the downside that modifying multiplier also
reset the phase of the animation.

For more complex models, with less uniform animations, this
approach isn't really doable - especially if you want the same
code to work for multiple models.

This adds an animationTime function to ModelAnimation. If set,
it's used by ModelAnimationCollection.update to compute the
localAnimationTime, rather than using the current clock time.

I also added an animateWhilePaused property to
ModelAnimationCollection. When false (the default), we continue
to do the short circuit exit from ModelAnimationCollection.update
when the scene time hasn't changed. When true, a suitable
animationTime function can continue to animate the model, even when
scene time is paused.

The new sandcastle example is just a clone of Time Dynamic Wheels,
rewritten to use Cesium_Man.glb, and the new functionality.
2022-05-10 13:55:31 -07:00
Gabby Getz 5db86c261e Merge branch 'main' into defer-b-gone 2022-05-10 14:03:52 -04:00
Janine Liu 7d9ff108ec 2D works with some jittering 2022-05-10 13:29:19 -04:00
Sam Suhag 96ba179e72
Merge pull request #10364 from CesiumGS/latest-testing-stats
Update testing guide with the latest stats
2022-05-10 09:53:57 -04:00
Gabby Getz 4edbfafa9e Update testing guide with the latest stats 2022-05-10 09:00:27 -04:00
Gabby Getz 1a138f59f8 Ready promise should resolve if destroyed 2022-05-10 08:46:55 -04:00
GuTianhuang 4d15a7aa5f
Add default value for properties
Co-authored-by: Gabby Getz <gabby@cesium.com>
2022-05-10 09:50:57 +08:00
Gabby Getz c9ac7459fc adjust reject timing 2022-05-09 09:56:17 -04:00
Gabby Getz 1ee3c56530 Don't reject when destroyed 2022-05-09 09:25:43 -04:00
GuTianhuang 832c0ea655
Fix `HeadingPitchRollValues` type
Make all the properties optional
2022-05-07 14:57:02 +08:00
Gabby Getz b4ecc9de7b Merge branch 'main' into defer-b-gone 2022-05-06 11:03:45 -04:00
Janine Liu 40ed6566d0 Load in typed arrays in GltfVertexBufferLoader 2022-05-06 10:50:25 -04:00
Sanjeet Suhag 85de0c6695 Merge branch 'main' of https://github.com/CesiumGS/cesium into custom-texture-coordinates 2022-05-06 08:48:22 -04:00
Ian Lilley c4946f24a7
Merge pull request #10356 from CesiumGS/geojson-model-experimental
Add support for MAXAR_content_geojson 3D Tiles extension
2022-05-05 19:53:07 -07:00