Commit Graph

287 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
dream93 10351809a1 Update MiddlewareManager.cpp (#16597)
fix spine crash
2023-12-15 16:04:50 +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
minggo 554598643a Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1 2023-09-08 14:34:24 +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
Canvas da507e4ba7 fix spine wasm api array bind (#16064)
* fix some array type bindings.

* change engine-native-external to v3.8.1-15.

* revert v3.8.1-15 to v3.8.1-14.

* fix code format.

* fix code format.

* fix getAttachmentNames api.

* off no-unsafe-argument.

* change engine-native-external checkout to v3.8.1-16.

* optimize use vector set & fix edges prototype error.

* add vector default value 0 annotation.
2023-08-23 12:45:17 +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
zxx43 60b5a7de66 3.8.1 add spine jsb apis (#15674)
* open some spine apis

* add some apis

* add spine jsb convert

* add some manual interfaces

* fix some jsb

* fix getAttachments

* remove findAttachmentsForSlot

* manual VertexEffect::begin

* remove SkinEntry

* change some apis

* fix isObject

* use entry ptr instead of entry

* remove array.get()

* remove array.get()

* fix ci

* fix ci

* change include

* fix SWIGINTERN

* fix test-case

* use rename

* check spine instance null

* fix eslint

* fix eslint

* add some missing apis

* add getAttachmentByName

* modify jsb api

* fix eslint
2023-08-11 14:07:30 +08:00
Canvas 6fec3201fd fix spine-skeleton-instance.cpp 3.8.0 -> 3.8.1 missing code issue. (#15876) 2023-08-07 10:23:34 +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 91fb580cb5 add skin getAttachment api. (#15738) 2023-07-14 18:23:34 +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
Canvas 399e8a1d54 Fix the enumeration order of event types in Wasm (native) and TypeScript interfaces. (#15664)
* Fix the issue of aligning the enumeration order of event types in Wasm (native) and TypeScript interfaces.

* optimize EventType_Complete order.

* fix mapping bindings.
2023-07-10 14:38:25 +08:00
Canvas 89cd677200 fix spine STRING_STD2SP function Uncaught RuntimeError: memory access out of bounds. (#15663)
Co-authored-by: Santy-Wang <wh19930829@qq.com>
2023-07-10 14:14:10 +08:00
Santy-Wang fedcfd295e export getAttachments (#15661)
* export getAttachments

* export getAttachments and other interface

* change string to const string&
2023-07-10 12:34:33 +08:00
Canvas 8ed2ed5786 Spine v3.8.0 Fix missing interface bindings (#15618)
* Fix spine replacement skin and animation bone rendering data not refreshed.

# Conflicts:
#	cocos/animation/marionette/graph-eval.ts
#	cocos/physics/framework/components/constraints/hinge-constraint.ts
#	cocos/rendering/custom/pipeline.ts
#	cocos/rendering/custom/private.ts
#	cocos/rendering/custom/render-graph.ts
#	cocos/rendering/post-process/passes/forward-pass.ts
#	cocos/rendering/post-process/passes/forward-transparency-pass.ts
#	cocos/rendering/post-process/passes/index.ts
#	cocos/rendering/post-process/passes/tone-mapping-pass.ts
#	cocos/rendering/post-process/post-process-builder.ts
#	editor/assets/effects/advanced/leaf.effect
#	editor/i18n/en/animation.js
#	editor/i18n/en/localization.js
#	editor/i18n/zh/animation.js
#	editor/i18n/zh/localization.js
#	editor/inspector/assets/fbx/model.js
#	native/cocos/renderer/pipeline/custom/NativeExecutor.cpp
#	native/cocos/renderer/pipeline/custom/NativePipeline.cpp
#	native/cocos/renderer/pipeline/custom/NativePipelineTypes.h
#	native/cocos/renderer/pipeline/custom/NativeRenderGraph.cpp
#	native/cocos/renderer/pipeline/custom/RenderInterfaceTypes.h

* Add bone & IkConstraintData & IkConstraint & PathConstraintData & PathConstraint setter bindings.

* Add TrackEntry & AnimationState & Animation setter bindings.

* Fix the problem that SkeletonData removal skin  and animation are not removed on editor.

* fix the problem of skeleton animation delete refresh.

* add Skeleton getState interface.

* optimize the requestDrawData parameter name & fix get texture by textureID.

* add getAttachments

* Add slots and atlas mapping hash.

* optimize atlas hash code.

* parsing atlas from native layer.

* rollback to remove the skeleton component of forced refresh.

* revert some change

* optimize get atlas page index & fix multi-posting texture cache mode does not display.

* fix extra space.

---------

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: santy-wang <wh19930829@qq.com>
2023-07-07 16:28:28 +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
Canvas 6d0c1d340e Fix spine replacement skin and animation bone rendering data not refreshed. (#15597) 2023-07-02 20:16:27 +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
minggo e7c5b34e18 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/2d/assembler/label/text-processing.ts
	cocos/physics/bullet/instantiated.ts
	cocos/profiler/profiler.ts
	cocos/rendering/custom/executor.ts
	cocos/rendering/custom/index.ts
	cocos/rendering/custom/web-pipeline.ts
	cocos/rendering/pipeline-scene-data.ts
	cocos/root.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
2023-06-27 13:35:35 +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
zhakesi 84f69f52f0 add spine wasm c++ code (#15482)
* add spine wasm c++ code

* fix code style
2023-06-19 23:04:31 +08:00
zhakesi 49f92e3225 fix spine with a mask effect not work (#15052) 2023-05-17 16:17:06 +08:00
minggo 313c58fe33 Improve utils api doc (#13922) 2022-12-28 15:04:56 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo bfeca12a09 Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-21 17:26:22 +08:00
zhakesi 1bc1be3b15 fix spine cached color format (#13557)
* fix spine cached color format

* fix code style
2022-12-09 14:22:24 +08:00
zhakesi d79b84d41c fix dragonbones in editor running with native engine (#13754)
* fix dragonbones in editor running with native engine

* add native ccfactory function getDragonBonesDataByUUID
2022-12-09 11:04:21 +08:00
zhakesi 4551b690a2 fix 2d module mesh buffer indices out of range (#13715)
* fix 2d module mesh buffer indices out of range

* use resize instead of checkSpace
2022-12-08 16:35:49 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00
zhakesi af81f8b553 fix beginSchedule when spine component with no onEnable called. (#13279)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-23 13:36:36 +08:00
zhakesi 011a71f732 optimize spine/dragonbones material update (#13416)
* optimize spine/dragonbones material update

* add material assets depends for dragonbones
2022-11-18 10:15:40 +08:00
zhakesi 0985cbe03e fix spine/dragonbones begin-schedule (#13370)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-18 10:12:51 +08:00
zhakesi 91031c7dad fix release spine/dragonbones resouce (#13419) 2022-11-18 10:10:16 +08:00
江战 280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +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
zhakesi 3b3facf730 fix a native middleware blend problem (#12914) 2022-09-27 19:04:22 +08:00
zhakesi 0db6cc04db add a comment for readAttachment (#12902) 2022-09-27 10:39:19 +08:00
zhakesi 993fd74c64 fix binary format spine load crash (#12894) 2022-09-27 10:14:55 +08:00
zhakesi a7a924a6ed fix tiled merge draw call with sprite (#12877) 2022-09-26 10:36:24 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
timlyeee 12ab61220b Remove script engine hook registers in MeshBuffer.cpp/SharedBufferManager.cpp/TypedArrayPool.cpp (#12298) 2022-08-30 11:50:24 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00