417 Commits

Author SHA1 Message Date
PP
d1afae6b17 support @base/math @pal/screen-adapter and @pal/minigame module (#16418) 2023-10-17 14:55:35 +08:00
PP
fa89b6aa45 support @base/event, @pal/pacer and @pal/system-info module (#16413) 2023-10-12 17:21:13 +08:00
PP
08860d33f4 support @base/object module (#16410) 2023-10-12 11:55:48 +08:00
PP
c82a99f498 deprecate interfaces in misc module (#16365) 2023-10-09 09:47:46 +08:00
PP
4ca69f7b84 support @base/utils module (#16329) 2023-09-26 11:33:30 +08:00
PP
1d75c1dabc fix: eslint import order (#16322) 2023-09-25 09:42:15 +08:00
PP
857a1c256d optimize: move assert* interface into @base/debug module (#16298) 2023-09-22 11:52:54 +08:00
minggo
fca089c6f3 Merge branch 'v3.8.2' into develop-merge-v3.8.2
Conflicts:
	.gitignore
	cocos/2d/components/deprecated.ts
	cocos/2d/components/label-outline.ts
	cocos/2d/components/label.ts
	cocos/3d/assets/mesh.ts
cocos/3d/misc/mesh-codec.ts
	cocos/core/geometry/geometry-native-ext.ts
cocos/core/settings.ts
	cocos/gfx/webgpu/webgpu-define.ts
	cocos/input/input.ts
	cocos/render-scene/core/pass.ts
	cocos/rendering/custom/compiler.ts
	cocos/rendering/custom/executor.ts
cocos/rendering/custom/pipeline-define.ts
	cocos/rendering/custom/web-pipeline.ts
	cocos/rendering/render-additive-light-queue.ts
	cocos/webgpu/instantiated.ts
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/cocos/platform/SDLHelper.cpp
	native/cocos/platform/SDLHelper.h
	native/external-config.json
	package-lock.json
	package.json
	pal/env/src/native/env.ts
	pal/screen-adapter/native/screen-adapter.ts
	tests/init.ts
2023-09-21 14:40:57 +08:00
PP
909bb484b8 support @base/debug module (#16287) 2023-09-20 16:36:11 +08:00
ChiaNing
d2d7623e9d Integration of outline and shadow to label (#16106)
* Integration of outline and shadow to label

* add test

* change getter/setter

* name change & use assert

* test name change

* name change

* fix

* remove old attribute & add visible

* remove assert

* fix: gulp-build-h5-source

* Revert "fix: gulp-build-h5-source"

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-20 11:14:42 +08:00
PP
86399f2b4a support @base/global module (#16247) 2023-09-20 10:14:21 +08:00
Leslie Leigh (李的序)
5682bbf996 Use WebAssembly version libraries for unit testing (#16264)
* Use WebAssembly version libs in unit test
2023-09-19 10:52:16 +08:00
Leslie Leigh (李的序)
59c6afd7e5 Optimize physics unit test (#16262) 2023-09-15 14:07:07 +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
PP
75ffb0bc69 support @pal/env and @pal/utils modules (#16196)
* support @pal/env and @pal/utils modules

* fix compile-native-ts

* update

* fix eslint

* update import

* update

* merge into `pal` dir

* fix unit test

* update module config

* add main field to use import/no-extraneous-dependencies rule

* Revert "add main field to use import/no-extraneous-dependencies rule"

This reverts commit 89a3c45def.
2023-09-07 16:33:50 +08:00
Ling Zhan
d198a19d07 [fix] box2d wasm rigid-body destroy() should destroy related shapes and joints #17226 (#16154)
* [fix] box2d wasm rigid-body destroy() should destroy related shapes and joints #17226

* update external-config.json
2023-09-06 14:29:45 +08:00
Leslie Leigh (李的序)
42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +08:00
minggo
5663b38e33 Merge branch 'v3.8.2' into develop-merge-v3.8.2
Conflicts:
	cocos/3d/assets/mesh.ts
	editor/inspector/contributions/node.js
	editor/inspector/utils/prop.js
	native/cocos/3d/assets/Mesh.h
	native/cocos/engine/Engine.cpp
	native/cocos/renderer/gfx-gles3/GLES3Commands.cpp
	native/cocos/renderer/pipeline/custom/NativePipeline.cpp
	native/external-config.json
2023-08-31 14:41:18 +08:00
PP
9daf2c663c upgrade nodejs to 18.17.0 (#15899)
* upgrade nodejs to 18.17.0

fix compile-native-ts

fix type

fix eslint

fix node version on native-binding

test native ci

fix eslint

fix jest version

upgrade ts-jest

fix

reduce EXPECTED_CAPACITY

update ccbuidl

Revert "test native ci"

This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.

# Conflicts:
#	scripts/native-pack-tool/package-lock.json

* detect node version

# Conflicts:
#	package.json

* use engine-strict option

* Update .nvmrc

* Update pal/input/web/accelerometer-input.ts

* fix conflict

* fix compile native ts

* download external in compile native ts

* fix
2023-08-28 15:52:24 +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
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
ChiaNing
f4a7b95767 fix sprite world matrix update bug (#15978)
* fix sprite world matrix  update bug

* fix by flag Changed Version

* add test

* CI & more test
2023-08-18 14:32:30 +08:00
Leslie Leigh (李的序)
d988b2373a Fix: Inactivated skeletal animation components shall not affect skinned mesh renderers (#13779) 2023-08-17 16:16:15 +08:00
minggo
9994ba3ac4 Merge branch 'v3.8.1' into develop-merge-v3.8.1
Conflicts:
	.github/workflows/run_test_cases.yml
	.github/workflows/run_test_cases_pr_comment.yml
	cocos/asset/asset-manager/downloader.ts
	cocos/misc/renderer.ts
	native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp
	native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h
	native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp
	native/external-config.json
2023-08-17 15:29:20 +08:00
Leslie Leigh (李的序)
331fab3c6b SkeletalAnimation: disable animation baking in pure editor mode (#15977) 2023-08-17 10:21:44 +08:00
qiuguohua
0661651ec7 Encapsulating PAL/ImageData (#15485)
* Encapsulating PAL/ImageData

* Delete unused files

* Add PAL/Image declaration file

* Different platform implementations of ImageData

* Add copyright information

* 1. Adding the copyImagesToTexture interface;
2. Modify the dependency of download on HTMLImageElement.

* Optimizing the implementation of loadiamge.

* Submit download-dom-image.ts.

* gfx does not rely on imageasset, it relies on imagedata.
2023-08-14 17:55:41 +08:00
Leslie Leigh (李的序)
6d04a1477a Re-support non-transform animation in animation graph (#15842) 2023-08-14 11:38:52 +08:00
Leslie Leigh (李的序)
8403962f94 AnimationGraph: fix clip overriding in nested structure (#15932)
* Bug introduce

FF

* Fix clip overriding in animation graph

* Fix lint

* Fix lint
2023-08-14 10:29:38 +08:00
santy-wang
c9bd446e92 Merge branch 'v3.8.1' of github.com:cocos-creator/engine into develop 2023-08-03 18:41:12 +08:00
Leslie Leigh (李的序)
5eddce91f1 PoseGraph: support editor decorators on node inputs (#15819)
* PoseGraph: support editor decorators on node inputs

* Fix lint error
2023-08-01 14:50:45 +08:00
minggo
e4072ec212 Improve logic (#15742)
* add test case for Node.setSiblingIndex()

* make the logic more clear and reuse this._siblingIndex

* add uint test for Node::setSiblingIndex() in c++

* simplify logic in c++

* add comment

* fix logic
2023-07-18 16:27:26 +08:00
minggo
edcbce0565 Merge pull request #15725 from knoxHuang/develop
Merge remote-tracking branch 'cocos-for-editor/v3.8.1' into develop
2023-07-14 14:30:51 +08:00
Leslie Leigh (李的序)
b61096c29b Fix deserialization of engine class in certain circumstance (#15638)
* Deserialization bug: fast mode

* Fix

* Update
2023-07-14 14:00:50 +08:00
knox
7943b1b53a refine code 2023-07-14 13:35:42 +08:00
knox
31c228786b Merge remote-tracking branch 'cocos-for-editor/v3.8.1' into develop
# Conflicts:
#	native/external-config.json
#	tests/core/math/vec3.test.ts
2023-07-14 13:32:43 +08:00
Leslie Leigh (李的序)
f87d196f8d Add Vec3.generateOrthogonal (#15705) 2023-07-14 10:33:16 +08:00
knox
5d75efd558 Merge remote-tracking branch 'cocos-for-editor/v3.8.1' into develop
# Conflicts:
#	native/cocos/renderer/pipeline/custom/NativeRenderQueue.cpp
#	native/external-config.json
2023-07-13 11:31:16 +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
troublemaker52025
50d9179bbe Optimize effect dependency and package size (#15650) 2023-07-12 11:42:17 +08:00
Leslie Leigh (李的序)
43b9fd4485 PoseGraph: fix apply transform node (#15632)
* Fix apply transform

Tweak

* Optimize
2023-07-12 11:20:25 +08:00
Leslie Leigh (李的序)
92fcc44895 Fix mess if a class declared @property but did not declare @cclass (#15652)
* Fix mess if a class declared @property but did not declare @cclass

* Apply suggestions from code review

* Fix lint

* Opt and fix lint
2023-07-10 11:12:31 +08:00
Leslie Leigh (李的序)
a3ee06e374 Optimize unit test; support overriding constants in per-test-suite (#15628)
* Optimize unit test; support overriding constants in per-test-suite
2023-07-06 18:00:03 +08:00
Ling Zhan
08d9a34457 character controller api tweaks (#15621)
* character controller api tweaks

* tweak
2023-07-05 15:28:18 +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
Leslie Leigh (李的序)
a0e3037ae1 Add test utils: vec3, quat equality matcher and pseudo random generator (#15547)
* Add test utils: vec3 equality matcher and pseudo random generator

* Add Quat jest matcher

* Tweak

* Update
2023-06-29 11:05:39 +08:00
Leslie Leigh (李的序)
899a3a9897 Fix animation clip frame event dispatching (#15534) 2023-06-27 11:26:46 +08:00
minggo
6586191c7e Merge branch 'v3.8.1' into merge-v3.8.1 2023-06-20 16:11:02 +08:00
mmyduckx
d351ae7948 fix pacer-unit-test (#15461) 2023-06-19 09:44:59 +08:00
Zhou Zhenglong
8a043aabc7 Merge branch 'v3.8.0-merge' into develop 2023-06-12 10:29:55 +08:00