Commit Graph

116 Commits

Author SHA1 Message Date
bofeng-song ddd45f96d0 Fix spine can not be paused while working at realTime mode (#16672)
* Fix spine can not be paused while running in realTime mode
2024-01-10 13:40:21 +08:00
bofeng-song c2e1abe49c Refine: make multi skeleton component shared one instance of spine.Skeleton while spine working at sharedCache mode (#16593)
* Refine:  make multi skeleton component shared one instance of spine.Skeleton while spine working at sharedCache mode
2023-12-18 10:00:30 +08:00
bofeng-song 6e0fb05838 revert bullet's change (#16555) 2023-12-04 18:07:55 +08:00
bofeng-song dadd6188ab fix bullet can not work normaly at taobao-creative-app (#16544)
* fix bullet can not work normaly at taobao-creative-app

* update external version

* Revert "fix bullet can not work normaly at taobao-creative-app"

This reverts commit af12ac567b10b6f36b9735ae0d0332b0f15c36da.

* refine
2023-12-04 11:22:20 +08:00
bofeng-song f5ca599348 fix spine can not show normally or crash (#16528) 2023-11-23 11:24:50 +08:00
bofeng-song 60627e2c5e fix skeleton's setTrackXXXListener doesn't work on web platform (#16512)
* fix setTrackxxxListener doesn't work on web platform
2023-11-16 21:16:56 +08:00
bofeng-song 6d31bbdd03 Optimize spine performance & fix memory leaks. (#16485)
* Optimize spine performance & fix memory leaks.

* Optimize array swapping from WASM to TS.

* add cached objects to avoid duplication Create arrays.

* Fix cache mode & edit mode display exception.

* Optimize the process related to updating skeletal data.

* update attach-util.

* optimize spine attach node logic.

* Optimize color refresh logic.

* Fix spine cache mode memory leak.

* remove unneeded code.

* remove unneeded code & fix code format.

* optimize computeWorldVertices to avoid every call to new SPVectorFloat();.

* fix js error on native platform


---------

Co-authored-by: Canvas <canvasfull@gmail.com>
2023-11-09 16:57:34 +08:00
Zeqiang Li e9b7fd3ab7 update wgpu external && missing web logic (#16433) 2023-10-20 17:19:30 +08:00
Ling Zhan 38bcd20e9f V3.8.2 bullet embind (#16350)
* bullet wasm embind

# Conflicts:
#	tests/init.ts

* replace imports with abstract methods of class

* embind performance opt

* wasm split loading

* tweak

* update native/external-config.json 3.8.2-14
2023-10-13 16:16:23 +08:00
Leslie Leigh (李的序) 52726aa1a2 physx disable unused PVD for now (#16383)
* Disable unused PVD for now

* Update physx dep
2023-10-11 13:31:57 +08:00
Ling Zhan db5779c77c V3.8.2 box2d wasm node scale performance opt (#16386)
* node scale cause box2d shape recreate, low perf
* box2d and polygon2d shape
* WASM_OBJECT_PTR_2_TS_OBJECT WASM_OBJECT_PTR_2_WASM_OBJECT
* tweak
* update external-config.json to v3.8.2-12
2023-10-10 16:57:01 +08:00
James Chen 093bc8724e Update v8 to 11.6.189.22 (#16364)
* Update se code to adapt v8 11.4

* Fix setter

* VisitHandlesWithClassIds was added again.

* Remove log in evalString

* Revert in ScriptEngine.cpp

* Update external-config.json

* Remove unused ndkPath in libcocos2dx/build.gradle

* Update external config to v3.8.2-11
2023-10-10 11:06:02 +08:00
Ling Zhan d8f1be6f05 [fix] box2d wasm joint stiffness and damping ratio now behaves the same as box2d.ts; fix rigidbody set type; fix box2d-wasm reallocate mem (#16278)
* [fix] box2d wasm joint stiffness and damping ratio now behaviors the same as box2d.ts; 
fix rigidbody set type; 
fix box2d-wasm reallocate mem
[fix] [physics2d] 1. debugdraw circle shape not consider rotation transform; 2. box2dwasm circle shape offset error
update native/external-config.json --> v3.8.2-9
2023-09-26 16:29:57 +08:00
Ling Zhan 9a42164966 V3.8.2 physics debug draw (#16325)
* init debug draw

* tweak _debugDrawFlags

* px debug draw performance opt

* tweaks

* add debug draw for physx c++

* debug draw use MainWindow's cameras

* builtin physics draw; WireFrame-->wireframe

* cannon.js supports debug draw

* update engine-native-external --> v3.8.2-5

* tweak

* set engine-native-external --> v3.8.2-5, so that we can pass npm test

* fix: bullet debug draw by default should draw nothing

* comment tweaks

* tweaek

* update native/external-config.json --> 3.8.2-8
2023-09-25 18:05:33 +08:00
Ling Zhan f4aa7e93f7 update native/external-config v3.8.2-7 (#16256) 2023-09-14 16:45:26 +08:00
Zeqiang Li 2788ed62e6 update webgpu external config (#16243) 2023-09-11 18:46:02 +08:00
minggo 554598643a Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1 2023-09-08 14:34:24 +08:00
Ling Zhan 50c2d70d2a update native/external-config: [fix] cct scaling causes trigger event missing (#16165) 2023-09-06 15:17:40 +08:00
James Chen d2c3429f95 Refactor Openharmony platform code to support switching between napi (ark js runtime) and v8 (#16093)
* OH could use v8 now.

* napi addon works.

* Use Napi addon to refactor code.

* Fix compilation errors.

* tweak

* Refactor oh platform, remove some hacking for oh.

* Fix log in runScript.

* Fix the issues in napi mode.

* Revert.

* Remove an unused comment.

* Refactor log output in NapiHelper.cpp and OpenHarmonyPlatform.cpp

* Update oh template.

* Remove unused code.

* Remove unused debug log in jsb-gfx.js

* Update include

* Revert Screen::isDisplayStats.

* update OH template for v8 backend

* update

* Update CMakeLists.txt for OH

* Fix a compilation error in NapiHelper.cpp while switching to NAPI mode

* Keep the symbol of entry function.

* Add -Wl,--gc-sections and add -Wl,-s for release mode.

* Update external to 3.8.2-1

* Don't use `console.assert` directly.

* Remove oh specific methods ( getInnerWidth/Height, getWindowHandle ) in Device class.

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-01 16:27:08 +08:00
Canvas ba70fe19db fix bind cont EventData * bind, modify the address as a reference. (#16105)
* fix bind cont EventData * bind, modify the address as a reference.

* change external-config checkout to v3.8.1-19.

* optimize const bind data, use const_cast<Type> & fix spine define api.

* fix wasm api getId & getOffset & <size_t> bones.

* fix wasm & asm const string.

* fix const std::string path to const std::string &path.

* change external-config checkout v3.8.1-19 to v3.8.1-20.
2023-09-01 15:36:06 +08:00
qiuguohua 49ce3235c8 Update to use sdl static library (#16101) 2023-08-30 16:11:23 +08:00
Canvas e9ca89f73e update external-config checkout to v3.8.1-17. (#16081) 2023-08-23 21:15:21 +08:00
Yiwen a4990ce4e6 Fix meshopt wechat (#16069)
* fix wechat wasm problem, sync external tag

* fix formatting

* fix tidy, unit test
2023-08-23 11:59:56 +08:00
Santy-Wang baea594f93 bump external tag (#16066) 2023-08-22 15:15:35 +08:00
Canvas 20dd273ea7 fix spine wasm api. (#16004)
* fix spine wasm api.

* fix code format.

* remove new api.

* remove private function.

* add setSlotsRange return type.

* add setSlotsRange parameter type.

* fix setUV.

* Fix code description problem.

* remove new api $ fix complete listeners.

* fix bone setter.

* fix code format.

* fix code format.

* fix code format.

* fix bind api.

* remove test code.

* fix code format.

* add api any ignore.

* update external-config checkout to v3.8.1-14.
2023-08-21 13:34:44 +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
Ling Zhan e5488b7d32 V3.8.1 box2d wasm experimental (#15979)
* init

* tsconfig.json

* add box2d-wasm backend to cocos engine. not crash now in 3.8.0.

* rigid-body, collider, and joint works now.

* back

* Joint: SetLinearFrequencyAndDampingRatio

* PhysicsRayCastCallback, PhysicsAABBQueryCallback

* box2d wasm debugDraw

* asm.js

* B2PolygonShape uses B2.ConvexPartition

* box2d wasm contact disabled works now.

* add unit test for physics2d.

* b2ContactListenerWrapper::registerContactFixture

* tweak

* drawPolygon transfer array data from wasm to ts

* tweak

* contact event performance opt

* revert to polygon collider 2d to original implementation. no need for libtess any more.

* PostSolve ContactImpulse use raw pointer.

* TransformVector2; debugDraw supports transform

* enable rtti

* WASM_OBJECT_PTR_2_TS_OBJECT, WASM_OBJECT_PTR_2_WASM_OBJECT

* fix PreSolve parameter oldManifold error

* B2.TransformVector2 --> b2Mul(in ts)

* tweaks: code format.

* eslint

* eslint

* remove physics-2d-box2d-wasm from render-config.json

* comment tweaks

* [opt] debug draw performance opt

* tweaks
2023-08-18 19:30:14 +08:00
Ling Zhan 7ed24f87ad update native/external-config to v3.8.1-10 (#15965) 2023-08-16 14:10:49 +08:00
qiuguohua 06341f3037 Uncapture global mouse events. (#15834) 2023-08-02 14:20:24 +08:00
qiuguohua b6bcc12b7e Solve unchecked websocket link failure issue (#15799) 2023-07-26 10:15:45 +08:00
minggo e5802a5e9c Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton-cache.ts
	cocos/spine/skeleton.ts
:	native/external-config.json
2023-07-18 11:53:54 +08:00
Canvas c023759a1c update external version v3.8.0-17 -> v3.8.0-18. (#15744) 2023-07-15 13:41:45 +08:00
James Chen d31a3d6188 fix #15704: [swig] The generated glue code is wrong if rename an inner class (#15710) 2023-07-14 09:58:27 +08:00
minggo 802a1f0959 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/core/utils/x-deprecated.ts
	cocos/physics/bullet/instantiated.ts
	cocos/physics/framework/components/character-controllers/character-controller.ts
	cocos/render-scene/scene/shadows.ts
	cocos/rendering/render-shadow-map-batched-queue.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/AtlasAttachmentLoaderExtension.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/cocos/editor-support/spine-wasm/spine-wasm.cpp
	native/external-config.json
2023-07-12 16:02:10 +08:00
Santy-Wang e5d61cf2a2 fix problem when skin changed and slot texture changed (#15677)
* fix problem when skin changed and slot texture changed

* update external version
2023-07-11 18:27:47 +08:00
Santy-Wang 31b10ffdc5 update external version (#15675) 2023-07-11 14:27:39 +08:00
江战 9aaee8c8f7 Update external-config.json (#15649) 2023-07-07 16:56:53 +08:00
James Chen 73776a0993 Update external to v3.8.0-14 (#15635) 2023-07-07 10:53:23 +08:00
minggo 7ef995b655 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/3d/lights/spot-light-component.ts
	cocos/animation/event/event-emitter.ts
	cocos/physics-2d/box2d/physics-contact.ts
	cocos/physics-2d/box2d/physics-world.ts
	cocos/physics-2d/box2d/platform/physics-contact-listener.ts
	cocos/physics-2d/builtin/builtin-world.ts
	cocos/physics/framework/components/constraints/configurable-constraint.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/spine-model.cpp
	native/cocos/editor-support/spine-wasm/spine-model.h
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/external-config.json
2023-07-03 15:25:13 +08:00
Santy-Wang e653f6f953 Update external-config.json (#15598)
update spine wasm
2023-07-02 22:00:23 +08:00
zhakesi a1fa17e466 fix some bugs in spine webassembly (#15569)
* fix blend enum export

* fix convert string from ts to sp string

* update skeleton data in preload

* feature: support change slot texture web

* feature: spine change slot texture native

* fix set debug render in native

* fix some spine asset with no mesh data

* fix some interfaces

* fix change slot repeat to create middleware textures

* fix code style

* update external config
2023-06-30 15:05:16 +08:00
James Chen 324e47589e Update swig to cocos-v1.1.5 to resolve function name of glue code for overloaded constructor (#15588) 2023-06-30 11:32:04 +08:00
Ling Zhan 3afeca4d15 update native/external version v3.8.0-11 (#15546) 2023-06-27 10:41:20 +08:00
James Chen f9dd8bcbc4 Fix spine.wasm could not run in safari with iOS which version is lower than 15. (#15515)
* Fix spine.wasm could not run in safari with iOS which version is lower than 15.

* Update external config.

* Revert "fix: add WASM_FALLBACK for spine wasm module (#15511)"

This reverts commit e5dde7f37d.
2023-06-25 10:37:04 +08:00
PP e5dde7f37d fix: add WASM_FALLBACK for spine wasm module (#15511)
* fix: add WASM_FALLBACK for spine wasm module

* update external

* fix eslint
2023-06-21 16:51:16 +08:00
pandamicro 2b8d4cd2d7 Update external-config.json for new spine lib (#15483) 2023-06-19 23:33:11 +08:00
PP 31f7fb6508 optimize: load spine asm.js module with js.mem && update spine (#15469)
* optimize: load spine asm.js module with js.mem

* update spine (#12)

* support debug renderer

* fix cached mode update color

* enable Batch mode

* fix engineInternal

* fix ESLint

---------

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2023-06-19 11:34:28 +08:00
qiuguohua bca35b2636 Update Harmonyos third-party library. (#15429) 2023-06-14 11:33:15 +08:00
zhakesi 8534fbbfdb spine wasm version (#15309)
* spine wasm version -fix conflict

* fix build and ci test -fix conflict

* fix for code review

* support binary format

* update exernal lib

* revert license

* fix type any

* update api docs

* fix api docs
2023-06-09 15:50:32 +08:00
Yiwen c2c3ffe73a Update external tag (#15361)
* [fix] add boundary to avoid physx assert error (#15321)

* sync external tag
2023-06-07 22:45:09 +08:00