Commit Graph

172 Commits

Author SHA1 Message Date
bofeng-song b2316fc02f Support spine version 4.2 (#18325) 2025-02-26 18:56:42 +08:00
James Chen cf945088ca Add more feature cropping settings for RichText, Mask, Graphics, UISkew, AffineTransform. (#18284)
* Add more feature cropping settings for RichText, Mask, Graphics, UISkew, AffineTransform.
2025-02-10 11:40:01 +08:00
James Chen c08dbf5c68 Optimize code size again. (#18260)
* Optimize code size again.
2025-02-05 15:35:40 +08:00
James Chen 18d80116b5 Fix some type issues in tilemap module (#18255) 2025-02-05 14:41:34 +08:00
James Chen ad210c1ee8 Optimize code size for minigame adapter. (#18237) 2025-01-23 10:41:19 +08:00
James Chen 37e1dcc4bd [v3.8.6] Optimize code size: audio (#18198)
* [v3.8.6] Optimize code size: mangle AudioBufferManager since it's not exported.
2025-01-16 10:15:48 +08:00
James Chen e939677d42 [v3.8.6] Optimize code size, box2d-js backend. (#18167) 2025-01-13 11:07:03 +08:00
James Chen b7835fcb03 [v3.8.6 ]Fix type issues for physics-2d framework. (#18171) 2025-01-13 11:05:55 +08:00
James Chen 21e6d0c47e fixed #17833: [v3.8.5] Add an ability to load wasm/asmjs module manually (#17844) 2024-11-13 17:17:38 +08:00
James Chen 4ec6b5c9e1 [v3.8.5] Fix geomertry-renderer test case for native platforms (#17747)
* [v3.8.5] Fix geomertry-renderer test case for native platforms

* Remove unused import

* Fix errors in spline.ts

* Update spline.ts, use internal assertsArrayIndex

* Update Spline.getPoint
2024-10-21 13:33:42 +08:00
hyde zhou 4685f6879a filter non default pass (#17729) 2024-10-17 10:00:47 +08:00
James Chen f4ccf3a8bb [v3.8.5] Support inline enum and mangle private variables to reduce engine size. (#17703) 2024-10-15 10:17:16 +08:00
James Chen 6800bc9ba8 Remove unused code in gfx/base, gfx/webgl, gfx/webgl2 modules and mangle properties to reduce js size. (#17529) 2024-10-10 13:53:25 +08:00
James Chen 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +08:00
hyde zhou 8106f8677d add legacy-pipeline culling (#17260) 2024-07-29 16:45:31 +08:00
hyde zhou be8df4e59d Add custom pipeline config. (#17390) 2024-07-19 09:47:28 +08:00
hyde zhou 77090b83ee Improve error reporting (#17236) 2024-06-27 15:27:09 +08:00
minggo 6c8d39e735 Fix typo (#16626)
* fix: correct spelling errors in EngineErrorMap.md

* fix: correct typo in code literals in DebugInfos.cpp

---------

Co-authored-by: Ryuu <2357622935@qq.com>
2023-12-19 15:53:41 +08:00
PP 7a8bde3ace fix: load script packages before loading builtin assets (#16339)
* fix: load script packages before loading builtin assets

* fix eslint

* fix ci

* Revert "fix ci"

This reverts commit 38584722e93c5823684be31dbb796bb3908b4703.

* add errorID logID
2023-10-08 10:47:56 +08:00
Yiwen bde3cd4cc3 Add adv mesh functionalities. (#16009)
* stage

* update

* update

* fix physics & ray cast problem

* fix default value, clean unused code, fix lint errors

* clean code

* update meta file

* update external, license

* fix tidy, circular dep

* fix type cast

* rm unit test

* fix unit test

* update comment
2023-08-21 10:15:24 +08:00
pandamicro 9b08b34a2b Replace Renderer setMaterial with setSharedMaterial (#15980)
* Replace Renderer setMaterial with setSharedMaterial

* Fix all usage of Renderer.setMaterial

* Soft deprecate Renderer.setMaterial

* Remove unnecessary change
2023-08-17 13:15:21 +08:00
Canvas 1a8b9cbdd3 fix cache mode spine animation playback issue. (#15691)
* fixed cache mode spine animation playback issue.

* remove unused code.

* fix code formatting.

* fix code formatting.

* fix editor changing animation node position doesn't refresh rendering when enable batch.

* add spine error id 7511 'Invalid input'. & fix deprecated to engineInternal. & change _uuid to uuid.

* remove invalid code & fix error map code format. & replace any to interface.

* fix setSkin invalidation on cached mode.

* remove unneeded descriptions.

* fix frame = 1 to length - 1.

* fix code format.

* revert update skeleton data on setSkin.
2023-07-13 13:46:53 +08:00
PP c03d4277f2 add CULL_ASM_JS_MODULE constant (#15467)
* add CULL_ASM_JS_MODULE constant
2023-06-19 14:59:54 +08:00
hyde zhou e06bb6cdb4 [V3.8.0 pipeline] add deferred pipeline (#15452) 2023-06-16 17:35:18 +08:00
Yiwen 0a346b2fdd fix bufferview size limit (#15265)
* fix bufferview size limit

* update

* update

* update error msg

* [fix] add boundary to avoid physx assert error (#15321)

* change validation method
2023-06-07 23:01:01 +08:00
troublemaker52025 07f3dedad9 Optimize skin with post-process pipeline (#15189) 2023-06-01 18:44:48 +08:00
pandamicro 12fe7525f9 Merge pull request #15113 from cocos/develop
Merge remote-tracking branch 'upstream/develop' into marionette-next
2023-05-19 10:42:41 +08:00
Yiwen 78c87a09d2 add new features to 3d hinge constraint (#14447)
* add new features to 3d hinge constraint
1. angular limit
2. angular drive

* add missing file

* fix native and bullet parameter error, tune parameters

* clean code

* update package and package lock

* stage

* update

* fix interface

* fix api, improve perf

* fix unit conversion

* fix unit conversion

* sync physx behavior
2023-05-18 16:36:23 +08:00
Leslie Leigh 464342eb99 Merge remote-tracking branch 'upstream/develop' into marionette-next 2023-05-18 14:46:30 +08:00
Ling Zhan 1032bd9508 Sweep Test (#15068)
* init

# Conflicts:
#	cocos/physics/physx/physx-adapter.ts

# Conflicts:
#	cocos/physics/physx/physx-adapter.ts

* init sweepBoxClosest

# Conflicts:
#	cocos/physics/physx/physx-world.ts

* back

* physx boxCastClosest works now.

* add physx sweepAll

* init bullet sweepBoxClosest. not test yet

* add bullet sweepBox

* bullet add internal functions: sweep/sweepClosest

* init physx c++ sweepBox/sweepBoxClosest

* add sweepSphere, sweepCapsule; add unit test.

* add sweep api doc

* revert physx asm/wasm loading func

* tweaks

* add error log for builtin and cannon.js

* builtin and cannon.js use warnid when calling sweep

* tweak api doc
2023-05-17 18:37:03 +08:00
minggo 3a6e0ca2ba Merge pull request #15067 from cocos/develop
Merge develop into marionette-next
2023-05-17 14:06:57 +08:00
Leslie Leigh (李的序) b119ee5bcf Optimize warn message if state machine matched too many transitions in a frame (#15016) 2023-05-10 14:22:31 +08:00
pandamicro 71a11a7a14 Merge remote-tracking branch 'origin/v3.7.3' into develop
# Conflicts:
#	.github/workflows/run_test_cases.yml
#	cocos/rendering/planar-shadow-queue.ts
#	native/cocos/renderer/pipeline/PlanarShadowQueue.cpp
2023-05-08 11:55:56 +08:00
Leslie Leigh (李的序) 4a183b14c0 Fix exception in material uniform animation binding (#14764) 2023-04-28 09:22:37 +08:00
Yiwen 3713957624 collider constraint (#14068)
* collider constraint

* rm uncessary function import

* bullet doesn't prevent dynamic rigid body using simplex collider

* convex mesh with dynamic rigid body is allowed

* clear useless imports
2023-04-20 14:32:48 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +08:00
徐兵 878b7db4a5 optimize reflection probe (#14115) 2023-02-03 15:43:04 +08:00
ChiaNing 221c37a275 Protect scroll bar error when its deleted (#14041)
* Protect scroll bar error when its deleted

* change to is Valid
2023-02-01 17:38:53 +08:00
pandamicro 08c7fe3956 Add pre type validator for setUniform (#13462) 2022-11-23 15:26:16 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
jk20012001 25c4949ce5 [fix] camera clear flag is skybox but skybox is disabled #13589 (#12964) 2022-10-11 18:56:55 +08:00
ChiaNing 2afd02e711 sorting component add (#12465)
* sorting component add

* menu add

* change sorting layer type to enum

* import fix

* name change

* sorting init

* fix init

* update priority on editor

* add enum index

* sort fix

* api doc add

* remove export to cc

* doc change

* protect

* warn id

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-09-15 10:15:33 +08:00
ChiaNing 2f1567bb7d mask interface deprecated (#12667)
* mask interface deprecated

* fix

* warn add

* warnid

* msic
2022-09-09 16:34:43 +08:00
Santy-Wang 1844a35fc9 support asset-overriding (#12632)
* support asset-overriding

* output some debug info

* refine some code

* fix typo
2022-09-02 10:38:46 +08:00
zxx43 d8f09ea57d 3.6.1 trail buffer insufficient space fix (#12567)
* enlarge trail buffer

* add warning information

* use warn id instead
2022-09-01 23:49:17 +08:00
zxx43 6678c378ee V3.6.0 particle material log (#12249)
* add warning message when change particle material

* use error id instead

* change to log

* change to warning

* Apply suggestions from code review

Co-authored-by: pandamicro <lphuabin@gmail.com>
2022-07-28 17:44:53 +08:00
Santy-Wang 629d788596 Output friendly information about effect name (#12137)
* Output friendly information about effect name

* Apply suggestions from code review

Co-authored-by: pandamicro <lphuabin@gmail.com>
2022-07-21 23:05:53 +08:00
PP 7f41b05cfe support top level deprecate check (#11630)
* support __checkObsolete__

update

update deprecate info

update

fix ci

fix ci

update

* rename interface

* cache namespace proxy

* move deprecate info to version deprecated

* consider undefined Proxy
2022-07-01 11:55:05 +08:00
pandamicro 12072ffc62 Merge v3.5.1 zqb branch to v3.6 (#11637)
* support asset property preview (#11017)

(cherry picked from commit 85769cf8f81459b5ad98ccab4138420009572a32)

* show mesh asset thumbnail (#10981)

* V3.5.1 noise particle (#11003)

* add cpu & gpu noise for particle

* add some params & change particle noise shader

* change shader

* add cpu noise particle

* add noise preview

* run generation when preview

* revert shaders

* remove unused statements

* add particle noise module

* change noise preview interface

* add invisible to remap

* remove get deltaTime

* set noiseModule private

* fix eslint

* feat: add noise preview (#11260)

* [Optimize] asset editing undo (#10779)

* edit render-pipeline

* support renderpipeline undo

* optimize material editing undo

* reset last record data

* temporary not support animation-mask undo

* support animation-mask edit undo

* animation mask remove _jointMasks

* Animation clip embedded players (#11320)

* Animation clip subregions

* Log

* Test

* Eval

* Update

* Update

* No longer use animation state to implement clip motion

* Clear subregions

* Fix

* Mark subregion as editor extendable

* Animation clip subregion player path

* fix isnan(0.0) with webgl1.0 (#11262)

* fix isinf(0.0)==true with webgl1.0

* code style

* fix specular params with surface toon (#11265)

* code format and add sliders for parameters (#11266)

* Broadcasting of animation state\'s speed

* Fix

* Rename

* Update

* Fix

* Revert "No longer use animation state to implement clip motion"

This reverts commit 20755f9ec525b27b5b9a515c8dd687349aa4c637.

* Revert some exotic changes

* Update docs

Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com>

* fix skinning model split (#11378)

* fix skinning model split

* rename function _resizeMaxJointForDS

Co-authored-by: zhakesi <zhakesi@foxmail.com>

* [ci skip][AUTO]: Automated genbindings update: d823cbba1f7ce8284da28458c26534da2e033961  (#11378) (#11383)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* use stop emitting instead (#11381)

* add stop emitting api

* use stop emitting instead

* Update cocos/particle/particle-system.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* fix: imageData fault tolerance (#11374)

* fix: imageData fault tolerance

* chore: when data is an empty array,stop the function

* material  undo updating effects list (#11409)

* modify noise module ui (#11433)

* use visible decorator to control the visibility of property (#11438)

* fix joints data with value nan (#11489)

* V3.5.2 CI Android NDK  set version to 21 (#11448) (#11492)

* Minor improvement

* Fix format

* Fix particle culler

* Improve particle culler

* Manually migrate joint data upload with texture in skinning model

* Update shaders for skinning model based on joint texture

* fis native skinning model with realtime-texture mode (#45)

Co-authored-by: zhakesi <zhakesi@foxmail.com>

* fix clangtidy (#46)

* Small tweaks

* modify code struct for skinning model (#47)

* modify code struct for skinning model

* update skinning chunk

Co-authored-by: 黄森斌 <arsen2010@126.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: 袁炜海 <35713518+dogodo-cc@users.noreply.github.com>
Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com>
Co-authored-by: zhakesi <liqiao@cocos.com>
Co-authored-by: zhakesi <zhakesi@foxmail.com>
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com>
Co-authored-by: zhangxin <59186205+chichinohaha@users.noreply.github.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-06-24 15:10:45 +08:00
Santy-Wang 5ae9dd67ce fix addPersistNode (#11689) 2022-06-24 11:25:41 +08:00