Commit Graph

4815 Commits

Author SHA1 Message Date
Peter Gagliardi 3871f0dabb Add more models to 3D Models sandcastle 2022-08-04 14:09:49 -04:00
Peter Gagliardi ddd807906f Remove development example for ModelInstanceCollection 2022-08-04 14:09:30 -04:00
Peter Gagliardi 1c2365f02a Rename ModelExperimental -> Model 2022-08-04 12:57:20 -04:00
Peter Gagliardi 1d64a63a24 Remove enableModelExperimental flag 2022-08-04 11:34:32 -04:00
Peter Gagliardi 4083fb5751 Merge branch 'main' into replace-model 2022-08-04 11:13:34 -04:00
Peter Gagliardi 31e3308b80 Update sandcastle 2022-08-02 16:53:49 -04:00
Peter Gagliardi b05318c73e Update BIM tileset to not use techniques 2022-08-01 18:19:07 -04:00
Janine Liu b10fc7f98f Code cleanup 2022-08-01 14:49:39 -04:00
Janine Liu b6f1f88d30 Use ModelExperimental for classification models 2022-08-01 12:11:58 -04:00
Omar Shehata f2bbbf828e
Fix URL in world terrain Sandcastle 2022-07-31 10:18:42 -04:00
Janine Liu ac43b18492 Merge with main 2022-07-26 10:05:31 -04:00
Peter Gagliardi 8d33e4ec3d Remove glTF 1.0 techniques from Photogrammetry Classification model 2022-07-25 15:00:43 -04:00
Sean Lilley c444e9e1b2 Merge branch 'main' into voxels 2022-07-25 13:26:20 -04:00
Janine Liu 550ddaa388 Merge with main 2022-07-22 15:24:43 -04:00
Sam Suhag 47f82fc1b0
Merge pull request #10583 from CesiumGS/scripts
Pare down build scripts; naming consistancy
2022-07-22 14:52:27 -04:00
Gabby Getz 45531ec9fc Update guides 2022-07-22 14:26:08 -04:00
Janine Liu 0fda93e91c Change sandcastles and unit tests 2022-07-22 13:53:11 -04:00
Janine Liu 5a64362f0a Merge branch 'main' into rename-model-experimental-files 2022-07-22 10:33:32 -04:00
Sam Suhag 96b6e93c9c
Merge pull request #10538 from CesiumGS/build-scripts
"Just in time" builds
2022-07-21 15:10:20 -04:00
Gabby Getz c878b8fc75 HelloWorld CSS 2022-07-21 14:48:43 -04:00
Janine Liu e8d03adc5c merge with main 2022-07-21 12:54:43 -04:00
Janine Liu d9bc66e528 Rename ModelExperimental files that don't have Model counterparts 2022-07-21 11:35:48 -04:00
Gabby Getz eba8a84f81 Merge branch 'main' into build-scripts 2022-07-21 09:47:58 -04:00
Janine Liu 86fd827975 Update sandcastle 2022-07-20 16:33:35 -04:00
Peter Gagliardi a113a9af4f
Merge pull request #10569 from CesiumGS/metadata-point-cloud-styling
Add point cloud styling with metadata to `ModelExperimental`
2022-07-20 12:38:56 -04:00
Janine Liu c99f629beb Reenable ModelExperimental for Cesium3DTileset specs 2022-07-19 16:03:11 -04:00
Janine Liu ba960c8b67 Add unit tests 2022-07-19 15:56:47 -04:00
Gabby Getz a0679d3bf6 Merge branch 'build' into build-scripts 2022-07-15 14:44:00 -04:00
Gabby Getz 24c4590756 Merge branch 'main' into build 2022-07-15 14:43:41 -04:00
Tamrat Belayneh 636d836612
Merge branch 'CesiumGS:main' into cesium_i3s_support 2022-07-15 09:27:41 -07:00
Gabby Getz fd69306293 Merge branch 'build' into build-scripts 2022-07-13 14:03:59 -04:00
Gabby Getz 0a19ae3601 Merge branch 'main' into build 2022-07-13 13:50:38 -04:00
Gabby Getz 42bcc10219 Fixup jsHint, HelloWorld 2022-07-13 11:22:03 -04:00
Tamrat Belayneh 3fa1e71a50
Merge branch 'CesiumGS:main' into cesium_i3s_support 2022-07-12 13:54:43 -07:00
Janine Liu 62b2a3dd14 Re-enable ModelExperimental 2022-07-12 15:18:56 -04:00
Janine Liu 3ca683cfd7 Merge branch 'main' into model-experimental-node 2022-07-12 14:14:46 -04:00
Janine Liu fbd1c422d7 Add unit tests 2022-07-12 14:09:40 -04:00
jiangheng 3f3c63fa68 supoort cross-origin isolated 2022-07-12 10:48:20 +08:00
Gabby Getz cfb83b23bc Merge branch 'main' into build-scripts 2022-07-11 15:39:55 -04:00
Tamrat Belayneh 9dbd070926 Updated samples, added ability to consume an i3s layer from service as well as layer urls 2022-07-09 13:32:02 -07:00
Peter Gagliardi 41021d1d91 Set Cesium.ExperimentalFeatures.enableModelExperimental to true 2022-07-08 17:20:58 -04:00
Peter Gagliardi 9fcc11dfa7
Merge pull request #10526 from CesiumGS/enable-debug-wireframe
Add `enableDebugWireframe` to 3D Tiles sandcastles
2022-07-08 16:30:24 -04:00
Janine Liu 1a663ab04f Add debug flag to clipping planes sandcastle 2022-07-08 15:57:38 -04:00
Gabby Getz 5f1cac325d Merge branch 'main' into build-scripts 2022-07-08 15:45:38 -04:00
Janine Liu 5d228c5797 Add enableDebugWireframe to sandcastles 2022-07-08 15:25:09 -04:00
Peter Gagliardi 07f47763e1 Merge branch 'main' into model-experimental-composite 2022-07-08 14:53:48 -04:00
Peter Gagliardi f17b056ac7 Fix stray otherwise() 2022-07-08 14:52:30 -04:00
Gabby Getz 7c982d89fa
Merge pull request #10485 from CesiumGS/eslint-test
Removes eslint-config-cesium, enables ECMA2020 usage
2022-07-08 13:28:28 -04:00
Tamrat Belayneh 27348e0e0d
Merge branch 'CesiumGS:main' into cesium_i3s_support 2022-07-07 21:05:57 -07:00
Tamrat Belayneh ab8033ba73 Updated samples 2022-07-07 21:04:07 -07:00
Tamrat Belayneh 6aa4fd7072 Updates to I3S support 2022-07-07 11:47:00 -07:00
Tamrat Belayneh 413eaad586
Merge branch 'CesiumGS:main' into cesium_i3s_support 2022-07-07 11:27:39 -07:00
Sanjeet Suhag 9e37415218 Undoes addition of global no-loss-of-precision rule 2022-07-07 13:34:01 -04:00
Janine Liu 4af7aaa106 Fix color handling in ModelVisualizer 2022-07-06 17:20:08 -04:00
Jeshurun Hembd 4bf2221f6f Deprecate getPropertyNames methods, add getPropertyIds where missing 2022-06-21 17:32:25 -04:00
Gabby Getz 8d7faae3f3 Merge branch 'main' into build 2022-06-15 14:50:52 -04:00
Jeshurun Hembd 9bae32c9c1 Improve initial view in custom shaders sandcastle 2022-06-15 11:19:37 -04:00
Gabby Getz 4ecefb5973 Merge branch 'main' into build 2022-06-06 11:34:36 -04:00
Sean Lilley 24d134466e Merge branch 'main' into voxels 2022-06-01 12:50:57 -04:00
Gabby Getz 16a9c80d41 Fix up build output names and apps 2022-05-27 15:27:47 -04:00
Gabby Getz ec317da263 Sandcastle 2022-05-27 14:45:53 -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
Sanjeet Suhag d017b5131b Updates Development/Polygon Sandcastle to include custom textured polygon examples 2022-05-26 18:43:55 -04:00
Sanjeet Suhag 5d998b3ac0 Feedback pass 2022-05-26 17:57:26 -04:00
Sanjeet Suhag 779bd5e265 Adds semicolon to Sandcastle helper function 2022-05-26 16:35:14 -04:00
Gabby Getz 355dd42838 Updated build process 2022-05-24 08:54:14 -04:00
Sanjeet Suhag a4a3b783d8 Sets the Sandcastle startup function as a property to the window 2022-05-23 15:14:50 -04:00
Sanjeet Suhag 101a9496f1 Remove no-implicit-globals rules in eslint for Sandcastle 2022-05-23 15:13:44 -04:00
Sanjeet Suhag 698ed9ca5a Remove quotes rule from Sandcastle eslint configuration 2022-05-23 15:03:14 -04:00
Sanjeet Suhag 1ab481a767 Removes duplication of rules 2022-05-23 10:31:40 -04:00
Janine Liu 598a0f2647 Cleanup documentation and leftover parameters 2022-05-17 15:20:12 -04:00
Janine Liu 2cee8aeb4b Remove individual IBL parameters from Model 2022-05-17 11:43:15 -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
Janine Liu 4853ad0f04 Replace gltf with url in public API 2022-05-12 11:12:10 -04:00
Gabby Getz 4bb802402c combine output 2022-05-11 17:26:50 -04:00
Gabby Getz ff559c7109 build workers, third party, and combine with eslint 2022-05-11 16:53:41 -04:00
markw65 f8a859c744 More code review fixes 2022-05-10 14:10:38 -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 f99602e8c2 Adds an example for RHUMB ArcType in the Sandcastle 2022-05-04 09:49:52 -04:00
Sanjeet Suhag 2b8051d8ff Updates Sancastle 2022-05-04 09:42:12 -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
Ian Lilley 060a6e6013 added gltf sample data for the shapes 2022-05-02 10:42:23 -07:00
Janine Liu 7f76af773d
Merge branch 'main' into model-experimental-animations 2022-04-25 16:27:21 -04:00
Sanjeet Suhag e5d81964ac Add tabbed view for Atmosphere sandcastle 2022-04-22 17:28:20 -04:00
Sanjeet Suhag 88ef353d4e Removes Ground Atmosphere and Sky Atmosphere Sandcastles 2022-04-22 16:56:46 -04:00
Sanjeet Suhag ac3408fec2 Combines Atmopshere Sandcastle with Ground and Sky Atmosphere Sandcastles 2022-04-22 16:56:04 -04:00
Sanjeet Suhag ca261e5d89 Added toggle for SkyAtmosphere in Sandcastle 2022-04-22 11:19:32 -04:00
IanLilleyT 4608f9b673 sandcastle tweaks 2022-04-21 17:15:39 -04:00
Sanjeet Suhag affe536a24 Changed Rayleight coffiecient's Blue from 22.4 to 28.4 2022-04-21 12:36:01 -04:00
Janine Liu 6204441c67 Implement translation, rotation, and scale animations 2022-04-20 16:04:11 -04:00
Sanjeet Suhag 574865d2fa Fix UI in Sandcastle 2022-04-19 04:47:33 -04:00
Sanjeet Suhag 4ad64ee173 Removes redundant line from Sandcastle 2022-04-19 03:53:47 -04:00
Sanjeet Suhag cbda1471bf Adds Atmosphere Sandcastle 2022-04-19 03:49:48 -04:00
IanLilleyT 9d86ee5cca fixed some flipped angle problems for cylinder 2022-04-14 14:22:37 -04:00
IanLilleyT 944c781360 better box 2022-04-12 18:36:49 -04:00
Ian Lilley 3ddeeac7d2 temp2 2022-04-11 09:22:43 -04:00
IanLilleyT f8558154dd fixed problem with min latitude 2022-04-06 18:20:24 -04:00
IanLilleyT d5597ba0e3 fixed cone intersection 2022-04-05 18:25:29 -04:00
IanLilleyT 1dfe3830e1 preparing for ellipsoid bounds 2022-04-05 11:36:36 -04:00
Sanjeet Suhag d7cc388510 Remove scattering post process 2022-04-05 08:47:19 -04:00
IanLilleyT 52385b5aab getting non bounded ellipsoid working 2022-04-04 20:21:37 -04:00
Sanjeet Suhag f2632d88fe Merge branch 'main' of https://github.com/CesiumGS/cesium into AtmospherePostProcessing 2022-04-03 14:47:40 -04:00
IanLilleyT 43db8c6401 merge main 2022-04-01 14:24:29 -04:00
IanLilleyT 47ca8ea7e1 pretty printing sample data 2022-04-01 09:30:52 -04:00
IanLilleyT ea60548c38 custom shader improvements and relatively large shader cleanup 2022-03-31 22:03:09 -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
IanLilleyT 922ac41a4a voxels 2022-03-31 14:41:08 -04:00
Peter Gagliardi e653a16f6b Remove unneeded code in sandcastle 2022-03-31 08:47:59 -04:00
Peter Gagliardi 059250696b Update asset for property texture Sandcastle 2022-03-31 08:36:05 -04:00
Peter Gagliardi c24ec0eee2 Add sandcastle code 2022-03-30 16:52:11 -04:00
Janine Liu dfd5011ac5 Feedback tweaks 2022-03-25 14:49:20 -04:00
Sean Lilley d74ee83ba8 Update jsHint to esversion 11 2022-03-22 18:11:09 -04:00
Kevin Ring f13b7a7f17 Merge remote-tracking branch 'origin/main' into split-primitives 2022-03-20 11:57:50 +11:00
Janine Liu 6867fe4461 Merge with main 2022-03-18 15:22:05 -04:00
Janine Liu 1aa1d9bb07 Merge with main 2022-03-16 15:05:08 -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
Kevin Ring 4ca71a3351 Add Sandcastle image, update CHANGES.md. 2022-03-13 22:25:46 +11:00
Janine Liu 0f86768337 Merge with main 2022-03-10 13:38:51 -05:00
Peter Gagliardi 3807829d37 Update selected feature ID stage 2022-03-08 16:29:53 -05:00
Peter Gagliardi 4e700f0344 replace featureIdIndex with featureIdLabel 2022-03-08 16:29:53 -05:00
Kevin Ring 6caf382c78 Finish Melbourne Photogrammetry / Cesium OSM Buildings comparison demo. 2022-03-06 11:57:15 +11:00
Kevin Ring 46024c5f95 WIP compare demo. 2022-03-06 11:15:14 +11:00
Kevin Ring 0c5931dd57 imagerySplitPosition -> splitPosition. 2022-03-06 10:43:47 +11:00
jeffechua d1bf81784c
Merge branch 'main' into custom-texture-coordinates 2022-03-05 16:14:14 +00:00
Jefferson Chua 516e138fbb Improved documentation and Sandcastle example. 2022-03-05 16:06:23 +00:00
Jefferson Chua 036fd9543f Converted texture coordinate input from flattened list to Cartesian2 polygon hierarchy structure, and modified PolygonGeometryLibrary's PolygonHierarchy packing methods to allow specification of what Cartesian to use to enable this. As a result, holes in holes can now be properly texture-mapped. 2022-03-05 00:49:07 +00:00
Jefferson Chua a0b230fa5b Merge branch 'custom-texture-coordinates' of https://github.com/jeffechua/cesium into custom-texture-coordinates 2022-03-03 15:06:38 +00:00
Peter Gagliardi dde7fd743e Merge branch 'extension-revisions' into buffer-view-renaming 2022-03-02 13:40:27 -05:00
Peter Gagliardi 0c1264e00a First pass at updating unit test data 2022-02-28 10:33:42 -05:00
IanLilleyT 3075cd4399 merge with origin/main 2022-02-28 09:30:48 -05:00
Kevin Ring ad72652f73 Set split direction when selecting new tileset. 2022-02-26 15:40:56 +11:00
Kevin Ring a49b0b8ce0 Splitter logic in Model instead of Scene. 2022-02-26 15:35:01 +11:00
Kevin Ring 2951cc8b22 Merge remote-tracking branch 'origin/main' into split-primitives 2022-02-26 14:04:25 +11:00
IanLilleyT 11ba5a917c fixed some old vars 2022-02-23 15:49:52 -05:00
Peter Gagliardi 2885188997 Update test data 2022-02-22 14:48:40 -05:00
Sean Lilley 54b9431d89
Merge pull request #10119 from CesiumGS/split-metadata-extensions
glTF metadata extensions were split into 3 extensions
2022-02-22 10:38:10 -05:00
Peter Gagliardi fbd2d5c571 Update CDB sandcastle 2022-02-22 08:28:23 -05:00
Peter Gagliardi 0fd0c3532f Metadata is now split into 3 extensions 2022-02-21 15:13:14 -05:00
Peter Gagliardi 015666a772 [skip ci] Overlooked a sample model 2022-02-21 14:09:26 -05:00
Peter Gagliardi ef73bd0ace Merge branch 'main' into extension-revisions 2022-02-18 15:07:37 -05:00
Sean Lilley 6f4e4807a7
Merge pull request #10052 from CesiumGS/manager-msaa
Add MSAA option for Webgl2
2022-02-17 19:17:41 -05:00
Eli Bogomolny a2fa0e44b9 Move MSAA Sandcastle to Showcases, change balloon view, fix MSAA getter docs 2022-02-17 15:35:21 -05:00
Kevin Ring d5329d0e2e Merge remote-tracking branch 'origin/command-flags' into split-primitives 2022-02-13 21:27:07 +11:00
Daniel Krupka 450216e590 Documentation and property declaration fixes 2022-02-11 14:27:46 -05:00
Daniel Krupka a765354f68 Add minimumPixelSize to ModelExperimental sandcastle 2022-02-11 07:40:30 -05:00
Kevin Ring 081ca95b90 Merge remote-tracking branch 'origin/main' into split-primitives 2022-02-11 22:38:53 +11:00
Peter Gagliardi b4b4aacb82 Fix custom shader 2022-02-10 16:01:00 -05:00
Peter Gagliardi 25c229404f Update for propertyTable schema changes 2022-02-10 15:55:04 -05:00