Commit Graph

5748 Commits

Author SHA1 Message Date
Gabby Getz 4eee06f77f
Merge pull request #10425 from DanielLeone/fix-sample-terrain-throttle-error
stop sampleTerrain from exploding if RequestScheduler throttles it 💣
2022-06-07 08:58:15 -04:00
Gabby Getz 74747da66a
Merge branch 'main' into feature-detection-edge-fix 2022-06-06 09:28:01 -04:00
Daniel Leone bcf6be6656 added code comments, added unit test, added CHANGES.md line
also fixed URL typo in CHANGES.md
2022-06-04 14:27:00 +08:00
Gabby Getz 3a28262bbb Update for 1.94.2 release 2022-06-03 15:00:39 -04:00
Sanjeet Suhag 271218055d Adds CHANGES.md entry 2022-06-03 14:10:52 -04:00
Gabby Getz bfa1479ac3 1.94.1 updates 2022-06-03 13:33:23 -04:00
Sean Lilley 27769a20c3
Merge pull request #10427 from CesiumGS/vector-tiles-fix
Fix vector tile crash by making sure billboardCollection is defined
2022-06-03 12:40:03 -04:00
Gabby Getz 6f08d23a78 Update CHANGES.md 2022-06-03 12:01:45 -04:00
Janine Liu 500640b25d Merge with main 2022-06-03 10:55:51 -04:00
Sean Lilley 4c666d63bc Update CHANGES.md 2022-06-02 17:59:40 -04:00
Janine Liu 0bb6e5dec4 Update changelog [skip ci] 2022-06-01 17:03:26 -04:00
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
Gabby Getz cff429c6d9 Update CHANGES.md 2022-05-03 12:15:49 -04:00
Gabby Getz 329a1346e5 Update CHANGES.md 2022-05-03 10:57:50 -04:00
Janine Liu 4a30f2bab0 Update changelog [skip ci] 2022-05-02 15:30:59 -04:00
Gabby Getz e8598a0f4a 1.93 release updates 2022-05-02 09:16:48 -04:00
Eli Bogomolny 669fef6dcb
Merge pull request #10337 from CesiumGS/ios-oit-workaround
Temporarily disable OIT by default for iOS and iPad
2022-04-29 16:03:14 -04:00
Peter Gagliardi 57d211820a
Merge pull request #10332 from CesiumGS/model-experimental-debug-wireframe
Add debug wireframe to `ModelExperimental`
2022-04-29 11:58:18 -04:00
Gabby Getz 5b8d002311 Temporarily disable OIT by default for iOS and iPad 2022-04-29 11:56:36 -04:00
Gabby Getz 3f2e627168
Merge pull request #10292 from thw0rted/more-typescript-redo
TypeScript fixes again
2022-04-28 09:39:52 -04:00
Janine Liu a84eb59c3d Update changelog [skip ci] 2022-04-27 13:18:39 -04:00
Peter Gagliardi e9246a33f7
Merge pull request #10314 from CesiumGS/model-experimental-animations
Support animations in `ModelExperimental`
2022-04-26 16:20:14 -04:00
David Ferguson 2bcda39b84 add text selection change to the changelog 2022-04-26 08:35:53 -05:00
Janine Liu 7f76af773d
Merge branch 'main' into model-experimental-animations 2022-04-25 16:27:21 -04:00
Janine Liu f0e3bd588b Update changelog [skip ci] 2022-04-25 16:02:08 -04:00
Sanjeet Suhag f5b5beb95b Added entry in CHANGES.md 2022-04-22 17:01:12 -04:00
yurichen17 0a77460320 updated message in CHANGES.md 2022-04-20 12:58:14 -04:00
yurichen17 595d5bc556 added comment in CHANGES.md 2022-04-20 11:31:51 -04:00
Peter Gagliardi 74657cf517 [skip ci] Update documentation from PR feedback 2022-04-18 16:45:45 -04:00
Peter Gagliardi bc5eaaf165 Update CHANGES.md 2022-04-18 15:38:00 -04:00
Janine Liu 9cefea51c9 Fix bitangent computation in ModelExperimental 2022-04-14 11:45:12 -04:00
James Bromwell 7b7ca93b40 ImageryProvider functions were recently fixed
Add changelog entry
2022-04-13 12:08:13 +02:00
James Bromwell 1daf77ab9f Merge branch 'main' into issue-9275 2022-04-12 11:52:35 +02:00
Peter Gagliardi dcf2adb016
Merge pull request #10282 from CesiumGS/model-experimental-skinning
Support skinning in `ModelExperimental`
2022-04-11 15:44:17 -05:00
Janine Liu a6e01dd704 Remove unused import, update changes 2022-04-08 13:27:01 -04:00
Sam Suhag 4d785b23b3
Merge pull request #10275 from CesiumGS/labels-fix
Fix label rendering for tileset debug labels
2022-04-06 14:21:10 -04:00
Gabby Getz 41fc35d50f
Merge pull request #10260 from thw0rted/kml-optional-camera
Don't require KMLDataSource canvas+camera
2022-04-06 12:07:17 -04:00
Gabby Getz 2cf69454dd Merge branch 'main' into labels-fix 2022-04-06 11:32:03 -04:00
Sam Suhag 34f40f41d3
Merge branch 'main' into imagery-provider-fix 2022-04-06 09:52:52 -04:00
James Bromwell cfb052518c Merge branch 'main' into kml-optional-camera 2022-04-06 15:10:10 +02:00
James Bromwell 0d013e9403 Changelog entry, improved property docs 2022-04-06 10:25:25 +02:00
Peter Gagliardi 2d0b7ab633
Merge pull request #10271 from CesiumGS/model-experimental-morph-targets
Support morph targets in `ModelExperimental`
2022-04-05 16:24:00 -05:00
Gabby Getz 6696595d96 labels-fix 2022-04-05 15:41:59 -04:00
Janine Liu a2d9f6490c Add morph targets to ModelExperimental 2022-04-05 14:23:54 -04:00
Gabby Getz d09f5170ca Fix requestImagery return types 2022-04-04 13:17:26 -04:00
Sanjeet Suhag a02b1a0762 Updates to version 1.92.0 2022-04-01 16:01:14 -04:00
Janine Liu 88ece227db
Merge branch 'main' into model-experimental-clipping-planes 2022-03-31 15:40:09 -04:00
Janine Liu 94b0c63bf8 Code and documentation tweaks 2022-03-31 15:33:42 -04:00
Peter Gagliardi 08f6b12fee update CHANGES.md 2022-03-30 14:55:33 -04:00
Peter Gagliardi c221aea1f2 Merge branch 'main' into custom-shaders-property-attributes 2022-03-28 14:11:44 -04:00
Peter Gagliardi 845a7268b2 Update CHANGES.md 2022-03-28 14:08:54 -04:00
Peter Gagliardi 75f90c2d8c
Merge pull request #10234 from CesiumGS/model-experimental-image-based-lighting
Add image-based lighting to `ModelExperimental`
2022-03-25 14:10:57 -05:00
Peter Gagliardi 44ed075795 [skip ci] Documentation feedback 2022-03-25 14:21:25 -04:00
Peter Gagliardi cee226a11e update CHANGES.md 2022-03-25 13:11:19 -04:00
Janine Liu 964c9ae0b4 Update changelog [skip ci] 2022-03-24 16:28:27 -04:00
Peter Gagliardi 1f036e0a8a
Merge pull request #10226 from CesiumGS/image-based-lighting-refactor
Handle image-based lighting in `ImageBasedLighting` class
2022-03-24 09:25:07 -05:00
Janine Liu a4f759a8f9 Documentation and changelog tweaks 2022-03-24 09:56:00 -04:00
Janine Liu 1a98b937fa Fix typescript build bug 2022-03-23 15:44:00 -04:00
Peter Gagliardi af33db9115 Update CHANGES.md 2022-03-23 14:02:47 -04:00
Xavier Tassin b110db8bc9 Merged with main 2022-03-23 08:04:24 +01:00
Gabby Getz 0dd1efab7a
Merge branch 'main' into split-primitives 2022-03-21 16:25:12 -04:00
Peter Gagliardi a7eef5885b
Merge pull request #10207 from CesiumGS/model-experimental-light-color
Add light color to `ModelExperimental`
2022-03-21 09:52:08 -05:00
Janine Liu 7bb46b0893 Fix changelog [skip ci] 2022-03-21 10:23:25 -04:00
Janine Liu f35400715b Fix dim default lighting 2022-03-21 09:48:58 -04:00
Kevin Ring f13b7a7f17 Merge remote-tracking branch 'origin/main' into split-primitives 2022-03-20 11:57:50 +11:00
ShenWeiQun 6fa219aed2
Merge branch 'CesiumGS:main' into main 2022-03-19 13:51:30 +08:00
ShenWeiQun 85df0515c4
Update CHANGES.md
Co-authored-by: Eli Bogomolny <31491650+ebogo1@users.noreply.github.com>
2022-03-19 13:49:08 +08:00
Janine Liu 3a451e4956 Merge with main 2022-03-18 16:48:19 -04:00
Janine Liu 6867fe4461 Merge with main 2022-03-18 15:22:05 -04:00
Janine Liu 36c6531d6e Update changelog 2022-03-18 11:23:15 -04:00
swq ebaba5165f Update CHANGES.md 2022-03-18 18:39:03 +08:00
Xavier Tassin 07bea7fabd Merged back main branch 2022-03-18 08:25:27 +01:00
Gabby Getz 8e5dd946b8
Merge pull request #10198 from virtualcitySYSTEMS/feature-fixMinimumLevelTileMapServiceImageryProvider
fix MinimumLevel evaluation in TileMapServiceImageryProvider
2022-03-17 09:59:26 -04:00
Janine Liu 72795490fe Fix incorrect rotation bug 2022-03-16 15:36:16 -04:00
Janine Liu 1aa1d9bb07 Merge with main 2022-03-16 15:05:08 -04:00
Sean Lilley d5c006bbc0 Add link to 3D Tiles 1.1 draft 2022-03-16 14:13:12 -04:00
Peter Gagliardi c584bf2254 Merge branch 'main' into sync-1.1 2022-03-16 13:08:36 -04:00
Gabby Getz 31c154a299 Remove when.js and replace with native promises
There were a few areas in Source where a function was assumed to be executed synchronously when a function was resolved. Native Promises however, by spec, will resolve at the end of a frame. There were also some strange handling of promise rejection in imagery providers that I cleaned up a bit in order to make them testable.

- In LabelCollection and EntityCluster, order of execution adjustment where made.
- Added TextureAtlas.addImageSync to support the order of execution fix in LabelCollection
- ArcGisMapServerImageryProvider.readyPromise will not reject if there is a failure unless the request cannot be retried.
- SingleTileImageryProvider.readyPromise will not reject if there is a failure unless the request cannot be retried.

The majority of the changes lie in the Specs, where unresolved promises weren’t being awaited before finishing executions, and where resolved promises are assumed to be synchronous all over the place and needed a good amount of fixes. Another issue which came up was calling Promise.reject in the body of a spec can cause node to halt execution when running via the command line.
2022-03-16 09:38:39 -04:00
Janine Liu e662a02bf1
Merge branch 'main' into extension-revisions 2022-03-16 09:25:12 -04:00
Jannes Bolling 67b34adff2 fixed a Bug where minimumLevel is always zero on metadataFailure for TileMapServiceImageryProvider 2022-03-16 14:09:36 +01:00
Sean Lilley 324a8f2530
Merge pull request #10199 from CesiumGS/value-transform
Apply offset/scale to property tables for CPU metadata classes
2022-03-15 16:29:25 -04:00
Peter Gagliardi e7177d953e Update CHANGES.md 2022-03-15 13:41:18 -04:00
IanLilleyT 1438575706 updated CHANGES.md 2022-03-15 12:05:32 -04:00
jeffechua da790a23f7
Update CHANGES.md
Co-authored-by: Sam Suhag <sanjeetsuhag@users.noreply.github.com>
2022-03-15 14:09:23 +00:00
Gabby Getz 3b27465a13
Merge branch 'main' into fix-firefox-dimensionless-svg-image 2022-03-15 10:02:12 -04:00
Janine Liu 1d4fd22bd2
Merge branch 'main' into model-experimental-minimum-pixel-size 2022-03-14 17:18:41 -04:00
Janine Liu 363e32c9cd Add incorrect scale initialization fix 2022-03-14 17:05:48 -04:00
Janine Liu 3561b392e7 readd s2 bounding volume extension 2022-03-14 13:30:51 -04:00
Xavier Tassin 0008936044 Updated tests and CHANGES.md 2022-03-14 16:10:09 +01:00
Gabby Getz 9018527a14
Update CHANGES.md wording 2022-03-14 10:58:12 -04:00
swq 237bb85c2b Update CHANGES.md 2022-03-14 22:29:07 +08:00
Kevin Ring 4ca71a3351 Add Sandcastle image, update CHANGES.md. 2022-03-13 22:25:46 +11:00
Kevin Ring 75ada2023a Update CHANGES.md. 2022-03-13 22:14:04 +11:00
Nathan Schulte c03ea38e7a work-around dimensionless SVG in Firefox 2022-03-10 21:31:15 -06:00
Janine Liu 0f86768337 Merge with main 2022-03-10 13:38:51 -05:00
Eli Bogomolny 3538dca07a
Merge branch 'main' into delete-specrunner 2022-03-10 11:48:40 -05:00
Eli Bogomolny 055a86868d Update CHANGES.md and README.md 2022-03-10 11:47:17 -05:00
Janine Liu 481cfc896d
Merge branch 'main' into extension-revisions 2022-03-10 11:22:01 -05:00
Sean Lilley 587d15f813 Update CHANGES.md 2022-03-09 16:24:13 -05:00
Sean Lilley 14b8e13c80
Merge pull request #10180 from CesiumGS/feature-id-labels
Add support for feature ID labels
2022-03-09 16:23:28 -05:00
Peter Gagliardi 63097d89d9 Update CHANGES.md 2022-03-09 13:52:59 -05:00