Commit Graph

5637 Commits

Author SHA1 Message Date
Peter Gagliardi 699adec080 Merge branch 'main' into deprecate-some-model-options 2022-06-01 11:15:36 -04:00
Gabby Getz b63a6057f1
Merge branch 'main' into remove-imagery-split 2022-06-01 10:57:05 -04:00
Sanjeet Suhag f4ff97d5ce ESLint fixes 2022-06-01 10:29:47 -04:00
Sanjeet Suhag 353d449376 Adds breaking change to CHANGES.md 2022-06-01 10:27:03 -04:00
Sanjeet Suhag d1c37c24ea Adds CHANGES.md entry 2022-06-01 10:22:43 -04:00
Sanjeet Suhag 44abd5bfa6 Add to CHANGES.md 2022-06-01 10:01:16 -04:00
Sean Lilley f3f8c5523d Cesium -> CesiumJS 2022-06-01 09:07:21 -04:00
Peter Gagliardi f77041bf53 Add PR link to CHANGES.md 2022-05-31 17:31:03 -04:00
Peter Gagliardi b1bed7ea89 List deprecations in CHANGES.md 2022-05-31 17:03:58 -04:00
Peter Gagliardi 74b4e955e7 Deprecate glTF 1.0 assets 2022-05-31 14:42:34 -04:00
Sanjeet Suhag c0240428f7 Merge branch 'main' of https://github.com/CesiumGS/cesium into custom-texture-coordinates 2022-05-26 18:48:41 -04:00
Peter Gagliardi 44d8abb889
Merge pull request #10405 from CesiumGS/invert-scale
Reverse winding order for negatively scaled models
2022-05-26 15:54:45 -04:00
Sean Lilley ce611177ce Update CHANGES.md 2022-05-26 09:53:08 -04:00
Sean Lilley ec5f1284b8 Render back faces when scale is negative 2022-05-26 09:49:19 -04:00
Gabby Getz e433151df2 Cleanup 2022-05-26 09:32:15 -04:00
Gabby Getz 60cb2377e3 Merge branch 'main' into defer-b-gone 2022-05-26 09:15:37 -04:00
Peter Gagliardi b525bb8579
Merge pull request #10384 from CesiumGS/model-experimental-2d-cv-support
Add 2D / CV support to tilesets using ModelExperimental
2022-05-25 14:00:42 -04:00
Jussi Hirvonen 61c5c241bc
Update CHANGES.md
Co-authored-by: Janine Liu <32226860+j9liu@users.noreply.github.com>
2022-05-24 20:44:48 +03:00
Jussi Hirvonen d276e9f46c Added unit test for bounding spheres not centered at (0,0,0) 2022-05-24 18:22:33 +03:00
Janine Liu 0c88fb6933 Prevent crash if projectTo2D is false 2022-05-23 15:08:44 -04:00
Sam Suhag 82465d52c6
Merge pull request #10390 from CesiumGS:remove-wasm-wrkaround
Remove wasm workaround for Edge
2022-05-18 18:42:41 -04:00
Peter Gagliardi 7cabc7ad9f
Merge pull request #10388 from CesiumGS/remove-ibl-parameters
Remove individual image-based lighting parameters
2022-05-17 16:30:58 -04:00
Peter Gagliardi 3d2526e888 [skip ci] Update documentation wording 2022-05-17 15:24:12 -04:00
Janine Liu df8217bd51 Update changelog [skip ci] 2022-05-17 13:47:30 -04:00
Peter Gagliardi 3678f35d19 [skip ci] Update CHANGES.md 2022-05-17 13:18:33 -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
Erik Dahlström c7ef72a516 CHANGES++ 2022-05-13 15:59:56 +02: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
markw65 47e7d9fdcd Respond to code review 2022-05-10 14:04:56 -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
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 37343b4b0b
Merge pull request #10350 from CesiumGS/index-datatype-from-typed-array
Added IndexDatatype.fromTypedArray
2022-05-05 17:55:02 -07:00
Sean Lilley 848462dbd5
Merge branch 'main' into index-datatype-from-typed-array 2022-05-05 17:22:35 -04:00
Sean Lilley 3024c9f56f
Merge branch 'main' into zero-area-region 2022-05-05 17:22:10 -04:00
Sean Lilley 918d4af523
Update CHANGES.md 2022-05-05 17:21:48 -04:00
Gabby Getz 8c7ef1510d Merge branch 'main' into style-fix 2022-05-05 15:29:13 -04:00
Sean Lilley 07dc1cb484
Merge pull request #10343 from CesiumGS/label-background
Add label background image asynchronously
2022-05-05 13:52:26 -04:00
Gabby Getz 4b05d040c9 Merge branch 'main' into style-fix 2022-05-05 13:41:48 -04:00
Gabby Getz 1a4d2d693b Tweak deprecation warning 2022-05-05 13:38:45 -04:00
Gabby Getz 4a26e575d8
Update CHANGES.md
Co-authored-by: Eli Bogomolny <31491650+ebogo1@users.noreply.github.com>
2022-05-05 13:32:16 -04:00
Sean Lilley 103a6345ac Update CHANGES.md 2022-05-04 19:19:26 -04:00
Sean Lilley e73bfa81eb Fix for zero-area region 2022-05-04 19:03:17 -04:00
Sean Lilley 625c0efec7 Update CHANGES.md 2022-05-04 18:51:17 -04:00
Sean Lilley f4d2651a3e Add IndexDatatype.fromTypedArray 2022-05-04 18:20:28 -04:00
Gabby Getz 9b171b6a3a Refactor Cesium3DTilesStyle so that its always synchronous, add .fromUrl for loading from url 2022-05-04 10:37:48 -04:00
Sanjeet Suhag 95971de8b6 Updates CHANGES.md 2022-05-04 09:53:01 -04:00
Sanjeet Suhag 938699aed2 Merge branch 'main' of https://github.com/CesiumGS/cesium into custom-texture-coordinates 2022-05-04 09:38:04 -04:00
Janine Liu 90cacb5eb2 Update changelog and unit test 2022-05-03 13:37:22 -04:00