Commit Graph

25269 Commits

Author SHA1 Message Date
Sanjeet Suhag 32f7c9a53f Fixes invalid JSDoc 2022-09-02 09:33:07 -04:00
Peter Gagliardi a6b3b1a946 Add support for model.pickObject 2022-09-01 16:49:19 -04:00
Gabby Getz a380cf8ee2 Remove references to .ready and .readyPromise 2022-09-01 12:10:41 -04:00
Gabby Getz 40f4e62728 Removed outdated deprecations 2022-09-01 11:27:03 -04:00
Gabby Getz 1287953a37 Merge branch 'main' of github.com:AnalyticalGraphicsInc/cesium into main 2022-09-01 10:49:02 -04:00
Gabby Getz e0500309b8 Updates for 1.97 release 2022-09-01 10:48:00 -04:00
Sean Lilley 6cc54396e5
Merge pull request #10747 from CesiumGS/custom-shaders-entities
Add support for `CustomShader` in a model entity
2022-09-01 10:13:21 -04:00
Sean Lilley 862bbf6751 Fix missing areas 2022-09-01 09:56:01 -04:00
Peter Gagliardi 6479dcd254 Add support for CustomShader in a model entity 2022-09-01 09:34:35 -04:00
Gabby Getz bc951b18b8 Removed deprecations slated for 1.97 2022-09-01 09:26:33 -04:00
Sean Lilley ba1c503103 Remove empty line 2022-08-31 19:17:46 -04:00
Sean Lilley 755c76e24d Doc type consistency 2022-08-31 19:05:21 -04:00
Sean Lilley 8cbe744455 Use defined 2022-08-31 18:58:15 -04:00
Sean Lilley 838d8dd0c6 Clean up I3SLayer doc 2022-08-31 18:55:34 -04:00
Sean Lilley 32e795460a Remove _entities 2022-08-31 18:47:31 -04:00
Sean Lilley 63177164c7 Clea up I3SSceneLayer doc 2022-08-31 18:47:12 -04:00
Sean Lilley 06932f02a0 Remove private from local functions 2022-08-31 18:44:39 -04:00
Sean Lilley d32f90e1f9 Remove old Draco code 2022-08-31 18:39:30 -04:00
Sean Lilley decf0592b3 Style: Rename GLTF to Gltf 2022-08-31 18:18:25 -04:00
Sean Lilley 7f6c1f9b0b Simplify prePassesUpdate, postPassesUpdate, updateForPass 2022-08-31 18:11:04 -04:00
Sean Lilley 4fe6e6c127 Remove update doc and mark private 2022-08-31 18:08:32 -04:00
Sean Lilley 4a1a7341de Fix doc 2022-08-31 17:50:10 -04:00
Sean Lilley 9418bd6936 Remove debug console.log 2022-08-31 17:43:01 -04:00
Sean Lilley ac449929c1 Comment spacing 2022-08-31 17:36:00 -04:00
Sean Lilley f08066a8b6 Use Check and wrap in pragma.debug 2022-08-31 17:34:45 -04:00
Sean Lilley f0b30795ba Remove unused getter 2022-08-31 17:29:43 -04:00
Sean Lilley 0199346bfa Fix typo 2022-08-31 17:21:19 -04:00
Sean Lilley bb0fe76393 Fix boolean documentation 2022-08-31 17:18:38 -04:00
Sean Lilley 90338391a0 Constructor cleanup 2022-08-31 17:13:48 -04:00
Sean Lilley d031b3a4bc Clean up I3SDataProvider documentation, remove traceCode 2022-08-31 16:58:00 -04:00
Sean Lilley 405e5790a7 Fixes in ArcGISTiledElevationTerrainProvider 2022-08-31 14:47:33 -04:00
Sean Lilley 6a31215791 Fix Lerc include, after https://github.com/CesiumGS/cesium/pull/10674 2022-08-31 14:43:10 -04:00
Sean Lilley 3e4ae826b9 Merge branch 'main' into cesium_i3s_support 2022-08-31 14:29:52 -04:00
Peter Gagliardi ecfe391295
Merge pull request #10742 from CesiumGS/fix-i3dm-loading
Fix creation of instances in `I3dmLoader`
2022-08-31 11:20:15 -07:00
Janine Liu cf82fffca5 Simplify attribute copying 2022-08-31 13:49:11 -04:00
Peter Gagliardi ead075e52d [skip ci] add clarifying comments 2022-08-31 12:37:39 -04:00
Janine Liu c2788f3d8d Fix creation of i3dm instances 2022-08-31 11:30:49 -04:00
Peter Gagliardi c62b466c3d Add a unit test 2022-08-31 10:31:32 -04:00
Peter Gagliardi adb81e942e Dequantize min/max for KHR_mesh_quantization 2022-08-30 16:59:28 -04:00
Janine Liu 665b161990
Merge pull request #10736 from CesiumGS/fix-per-point-parsing
Don't create a feature table for point clouds with per-point properties
2022-08-30 14:35:06 -04:00
Peter Gagliardi 2865f5c8cd binaryProperties shouldn't be undefined 2022-08-30 13:14:57 -04:00
Janine Liu 795b37143a
Merge pull request #10726 from CesiumGS/simpler-cache-key
Improve performance of `ShaderProgram.fromCache()`
2022-08-30 12:15:50 -04:00
Peter Gagliardi 0fef94489a PR feedback 2022-08-30 11:46:21 -04:00
Peter Gagliardi 4237eef463
Merge pull request #10731 from CesiumGS/free-instanced-typed-arrays
Free typed arrays for instanced models
2022-08-30 07:08:58 -07:00
Janine Liu a18057c967 Tweak comments 2022-08-30 09:37:37 -04:00
Gabby Getz e09c346cf7
Merge pull request #10707 from CesiumGS/vector-spec-update
Updates Vector3DTileContent specs
2022-08-29 12:15:04 -07:00
Peter Gagliardi 9506cc34f5 Don't create a property table if not batched 2022-08-29 15:11:12 -04:00
Gabby Getz 77d458504b Fix doc typo 2022-08-29 10:30:22 -04:00
Janine Liu e9e374d305 Fix typos and incorrect translation handling 2022-08-29 10:04:24 -04:00
Sanjeet Suhag 7812033503 Adds styling specs to Vector3DTileContentSpec 2022-08-28 20:34:38 -04:00
Janine Liu cc6d559e5a Fix 2D bugs 2022-08-26 16:54:31 -04:00
Janine Liu d21b08d103 Fix promise chaining in I3dmLoader 2022-08-26 16:26:30 -04:00
Janine Liu 96911e2ba4 Refactor to load instanced attributes as buffers where possible 2022-08-26 15:42:47 -04:00
bbbbx 3ad5c1fb4b Fix typo in parameter type 2022-08-26 22:04:59 +08:00
Peter Gagliardi a85ddc781f Merge branch 'main' into simpler-cache-key 2022-08-25 16:24:58 -04:00
Peter Gagliardi a782b448c0 Add unit tests 2022-08-25 16:24:36 -04:00
Janine Liu f76a0153c6 load translations as buffer even if min/max is undefined 2022-08-25 16:10:45 -04:00
Sanjeet Suhag 0dd9fa1597 Removes extra createFeature calls, fixes order of functions in update loop 2022-08-25 15:51:28 -04:00
Sanjeet Suhag dcabb3e9b9 Merge branch 'main' of https://github.com/CesiumGS/cesium into vector-spec-update 2022-08-25 15:45:09 -04:00
Peter Gagliardi ee92c533e9
Merge pull request #10723 from CesiumGS/model-style-commands-needed
Prevent `Model` from resetting draw commands for picking
2022-08-25 11:16:30 -07:00
Janine Liu d3519e43b1 Small documentation tweaks 2022-08-25 13:24:16 -04:00
Sanjeet Suhag 258c3a99c5 Removes newline 2022-08-25 11:39:19 -04:00
Peter Gagliardi b403912da8 Make the ShaderCache key simpler to compute 2022-08-25 11:17:44 -04:00
Janine Liu 6dcdf975c8 Reorganize code / documentation 2022-08-25 09:59:27 -04:00
Janine Liu 33cb56c422 Debug unit tests 2022-08-25 09:48:03 -04:00
Sanjeet Suhag 49a51da893 Fixes combined specs 2022-08-25 06:25:42 -04:00
Janine Liu 74b107cf32 Rewrite unit tests 2022-08-24 17:21:52 -04:00
Janine Liu 80112db05b Refactor Model's use of StyleCommandsNeeded 2022-08-24 14:56:22 -04:00
Sanjeet Suhag 7fa252dd16 Creates features in update loop 2022-08-24 13:36:59 -04:00
Peter Gagliardi 68a2f6beca Avoid closure in ShaderFunction 2022-08-24 12:13:24 -04:00
Peter Gagliardi bb028dc71f PR feedback 2022-08-24 12:08:01 -04:00
Peter Gagliardi 96ca4356d8 Merge branch 'main' into shader-builder-single-line 2022-08-24 12:00:31 -04:00
Peter Gagliardi b6399a8179
Merge pull request #10720 from CesiumGS/classification-picking
Fix picking for classification models
2022-08-24 08:55:39 -07:00
Janine Liu db94cb5d23 Update specs 2022-08-23 17:00:22 -04:00
Janine Liu 23d5545af5 Fix picking bug with classification 2022-08-23 16:04:30 -04:00
Gabby Getz bbd7c8196c
Merge pull request #10710 from na9da/fix-kml-missing-src
Fix error when kml descriptions have tags with missing url attribtues.
2022-08-23 12:40:29 -07:00
Peter Gagliardi c3dc9492b0 Use a scratch array to avoid unnecessary allocations 2022-08-23 14:50:51 -04:00
Peter Gagliardi 61e01ded03
Merge pull request #10716 from CesiumGS/classification-model-rework
Batch features together in `ClassificationModelDrawCommand`
2022-08-23 11:40:13 -07:00
Janine Liu 37c846d32e Cleanup documentation 2022-08-23 12:28:04 -04:00
Janine Liu 2a335cb69a Use scratch arrays 2022-08-23 12:11:46 -04:00
Janine Liu 0895583bf7 Ignore normal textures, fix documentation 2022-08-23 11:57:55 -04:00
Janine Liu 28ece5034c
Merge pull request #10713 from CesiumGS/unload-typed-arrays
Unload array buffers after parsing the model
2022-08-23 10:13:17 -04:00
Peter Gagliardi 233f5a78aa Update ShaderBuilder to accept single lines, not just arrays 2022-08-23 08:26:19 -04:00
Nanda 615a909913 Use `defined` instead of explicit null check. 2022-08-23 09:52:42 +10:00
Janine Liu f81e81de3d Finish rewriting specs 2022-08-22 17:03:24 -04:00
Peter Gagliardi 41c7ac3124 Remove references to old content classes from JSDoc 2022-08-22 16:29:42 -04:00
Janine Liu d7036f486d
Merge pull request #10708 from CesiumGS/no-closure
Avoid using a closure in the render loop when pushing model draw commands
2022-08-22 15:27:07 -04:00
Peter Gagliardi 90d41c2e97 Unload typed arrays once components are created 2022-08-22 15:23:47 -04:00
Peter Gagliardi 13eb15f294 Fix typo in JSDoc 2022-08-22 15:00:11 -04:00
Peter Gagliardi a881bccd5a PR feedback 2022-08-22 14:58:36 -04:00
Sam Suhag ec783fe4aa
Merge pull request #10694 from CesiumGS/mjs
Fix for NodeJS with ESM modules
2022-08-22 11:45:11 -04:00
Janine Liu f869916baf Add pipeline stage to runtime primitive, start reworking classification draw commands 2022-08-22 11:07:36 -04:00
Peter Gagliardi 558ed7cd1c Remove other similar closures 2022-08-22 10:09:50 -04:00
Nanda b01ccb79f1 Fix error when kml descriptions have tags with missing url attribtues.
Eg: script/img tag with missing src attribute.
2022-08-22 16:41:00 +10:00
Janine Liu 4b333bc145
Merge pull request #10703 from CesiumGS/points-back-face-culling
Add support for point cloud back face culling
2022-08-19 17:06:27 -04:00
Janine Liu d02118cbdd Add specs for ClassificationPipelineStage 2022-08-19 16:54:22 -04:00
Peter Gagliardi e2c1b41c27 Avoid using a closure in the render loop 2022-08-19 16:48:33 -04:00
Peter Gagliardi 60694dda91 PR feedback 2022-08-19 16:25:06 -04:00
Peter Gagliardi 318bfaeeca
Merge pull request #10686 from CesiumGS/fix-uncompressed-draco-attributes
Fix for uncompressed draco attributes
2022-08-19 13:02:36 -07:00
Janine Liu 5f2c920382 Add ClassificationPipelineStage 2022-08-19 15:02:13 -04:00
Gabby Getz 54dba812fb use instanceof 2022-08-19 14:01:22 -04:00
Janine Liu 02124d83b9 Make loader more strict for classification models 2022-08-19 11:22:52 -04:00
Gabby Getz 8bad76cad1 Fix Camera.flyTo with rectangle 2022-08-19 09:42:41 -04:00
Peter Gagliardi e73d743789 Add support for point cloud back face culling 2022-08-18 14:54:53 -04:00
Janine Liu b9fd58ba17 Add loadForClassification to GltfLoader 2022-08-18 12:12:47 -04:00
nshen 2a06a114f8 remove thirdparty Uri.js 2022-08-18 22:52:53 +08:00
Peter Gagliardi 441e0590ba
Merge pull request #10697 from CesiumGS/skip-lods-experimental
Add `skipLevelOfDetail` commands to `ModelDrawCommand`
2022-08-17 13:14:07 -07:00
Janine Liu e3b04c9650 Add skipLevelOfDetail tests 2022-08-17 15:51:05 -04:00
Janine Liu 014fe80678 Return result, fix typos 2022-08-17 14:43:44 -04:00
Peter Gagliardi 7216157d18
Merge pull request #10698 from CesiumGS/fix-i3dm-lighting
Fix incorrect i3dm lighting
2022-08-17 09:46:22 -07:00
Gabby Getz 78f3361492
Merge pull request #10682 from nshen/remove-protobufjs
Remove thirdparty protobufjs.js
2022-08-17 09:17:40 -07:00
Gabby Getz 56da7ab1d7
Merge pull request #10681 from nshen/remove-topojson
remove thirdparty topojson.js
2022-08-17 09:15:56 -07:00
Gabby Getz 51a62b2f54
Merge pull request #10680 from nshen/remove-zip
Remove thirdparty zip.js
2022-08-17 09:13:44 -07:00
Gabby Getz 5b8d13846f
Merge pull request #10678 from nshen/remove-rbush
Remove thirdparty rbush.js
2022-08-17 09:10:13 -07:00
Gabby Getz 302c7fa1ff
Merge pull request #10677 from nshen/remove-pako
Remove thirdparty pako.js
2022-08-17 09:06:03 -07:00
Gabby Getz 953444d85f
Merge pull request #10676 from nshen/remove-nosleep
Remove thirdparty nosleep.js
2022-08-17 09:03:35 -07:00
Gabby Getz 91d3a54be9
Merge pull request #10675 from nshen/remove-meshoptimizer
Remove thirdparty meshoptimizer.js
2022-08-17 08:59:42 -07:00
Gabby Getz d2bdfdc82b
Merge pull request #10674 from nshen/remove-lerc
Remove thirdparty lerc.js
2022-08-17 08:57:04 -07:00
Gabby Getz 3c9cf588bc
Merge pull request #10673 from nshen/remove-ktx-parse
Remove thirdparty ktx-parse.js
2022-08-17 08:54:27 -07:00
Janine Liu 4ab2deddad Fix incorrect i3dm lighting 2022-08-17 11:49:47 -04:00
Gabby Getz 0d504b6bde
Merge pull request #10672 from nshen/remove-kdbush
Remove thirdparty kdbush.js
2022-08-17 07:23:39 -07:00
Gabby Getz 11b19ac9f3
Merge pull request #10670 from nshen/remove-grapheme-splitter
remove thirdparty grapheme-splitter.js
2022-08-17 07:18:22 -07:00
Gabby Getz d13fcfb2a8
Merge pull request #10671 from nshen/remove-jsep
Remove thirdparty jsep.js
2022-08-17 07:14:40 -07:00
Gabby Getz 6ca341db24
Merge pull request #10669 from nshen/remove-earcut
Remove thirdparty earcut.js
2022-08-17 07:07:08 -07:00
Gabby Getz ad1de31123
Merge pull request #10668 from nshen/remove-dompurify
Remove thirdparty dompurify.js
2022-08-17 07:03:32 -07:00
Gabby Getz a18c1a59da
Merge pull request #10667 from nshen/remove-bitmap-sdf
Remove thirdparty bitmap-sdf.js
2022-08-17 06:59:27 -07:00
Gabby Getz 1c4c8c319f
Merge pull request #10666 from nshen/remove-autolinker
Remove thirdparty autolinker.js
2022-08-17 06:53:10 -07:00
Gabby Getz b7c0fc268e
Merge branch 'main' into mjs 2022-08-16 13:11:12 -07:00
Peter Gagliardi fceb03ade4
Merge pull request #10690 from CesiumGS/instanced-model-lighting
Apply instancing to normals in `Model`
2022-08-16 13:04:45 -07:00
Janine Liu e17dca2357 Fix remaining test failures 2022-08-16 15:59:07 -04:00
Gabby Getz aef4d38e5c Fix for NodeJS with ESM modules 2022-08-16 15:51:23 -04:00
Janine Liu 1aefe28677 Add TilesetPipelineStageSpec 2022-08-16 15:35:06 -04:00
Gabby Getz a81ce984b2
Merge pull request #10691 from CesiumGS/camera-morph-fly-to
Fixes zoomTo/flyTo issue with EllipsoidTerrainProvider
2022-08-16 10:54:13 -07:00
Janine Liu 5953373024 Un-xit backface commands test 2022-08-16 13:52:46 -04:00
Peter Gagliardi f5728d78c6
Merge pull request #10630 from CesiumGS/bounding-sphere-getter-fix
Make `ModelExperimental.boundingSphere` update when invoked
2022-08-16 09:43:04 -07:00
Jeshurun Hembd a48a326321 First round PR feedback 2022-08-15 19:59:51 -04:00
Janine Liu d8abea8000 Rewrite most of ModelDrawCommandSpec 2022-08-15 17:16:23 -04:00
Sanjeet Suhag 3d4bbdfedb Fixes ModelVisualizer and ModelVisualizerSpec with heights 2022-08-15 16:56:52 -04:00
Peter Gagliardi f1ec778284
Merge pull request #10648 from CesiumGS/gltf-1
Limited support for glTF 1.0 in the new model implementation
2022-08-15 11:29:54 -07:00
Janine Liu 4faf37fd0e Update normals in instancing shaders 2022-08-15 13:51:56 -04:00
Janine Liu c57d634d91 Small tweaks 2022-08-15 12:45:43 -04:00
Janine Liu ed7340e3c8 Refactor updateBoundingSphereAndScale function 2022-08-15 12:36:24 -04:00
Janine Liu 787d6fdce1 Merge branch 'main' into bounding-sphere-getter-fix 2022-08-15 11:20:09 -04:00
Peter Gagliardi 8634e8ab7a Make default exports more consistent 2022-08-15 08:06:09 -04:00
Sean Lilley 416b8dcdf9 Fix reading uncompressed draco attributes with loadAsTypedArray 2022-08-13 15:52:52 -04:00
Sean Lilley d46ce5ddde
Merge pull request #10634 from CesiumGS/bounding-sphere-rtc
Make `ModelExperimental.boundingSphere` account for `RTC_CENTER`
2022-08-13 09:11:50 -07:00
nshen 3cfdeb4006 remove thirdparty protobufjs.js 2022-08-12 01:42:55 +08:00
nshen 2be8bd6202 remove thirdparty topojson.js 2022-08-12 01:40:49 +08:00
nshen 9a99648895 remove thirdparty zip.js 2022-08-12 01:38:11 +08:00
nshen 7fcc9c68a3 remove thirdparty rbush.js 2022-08-12 01:25:47 +08:00