Commit Graph

2826 Commits

Author SHA1 Message Date
minggo 7759568a07 fix lint (#16623) 2023-12-19 11:54:20 +08:00
Leslie Leigh (李的序) da9c103ad3 Add Vec3.signedAngle (#16013)
* Signed angle

* Update cocos/core/math/vec3.ts

---------

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2023-12-19 11:46:29 +08:00
minggo 4cd8d65b98 use its own destruct function (#16622) 2023-12-19 11:29:27 +08:00
minggo cc3a3d005a update engine version (#16590) 2023-12-12 10:19:06 +08:00
minggo fad2b8faab fix logic error in Vec3.rotateN() (#16564) 2023-12-06 15:50:57 +08:00
minggo 36a2933f6c Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1
Conflicts:
	.github/workflows/native-compile-platforms.yml
	cocos/physics/framework/deprecated.ts
	cocos/rendering/custom/executor.ts
	native/cocos/renderer/pipeline/custom/FrameGraphDispatcher.cpp
2023-10-09 14:15:51 +08:00
jk20012001 312a4b294b better tips for float output macro (#16335) 2023-09-26 14:30:35 +08:00
Leslie Leigh (李的序) 42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +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
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
mmyduckx 95acc35ab9 add some native feature for videoplayer (#16096)
* add some native feature for videoplayer

* fix review&clang-tidy

* update version
2023-08-25 14:23:37 +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
hyde zhou b48581d91a V3.8.1 pipeline (#15875) 2023-08-09 15:23:40 +08:00
PP 904cdd8664 fix: api issues in typedoc (#15826)
* fix: typedoc wrong typeArguments

update

* fix: cull engineInternal tag

* export Screen class

* Update cocos/core/platform/index.ts

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

* fix typing

* fix eslint

# Conflicts:
#	cocos/core/platform/screen.ts

* fix: cull engine internal with groups culling

* Update cocos/core/platform/index.ts

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

* fix eslint

* Update scripts/typedoc-plugin/src/cull-engine-internal.ts

* optimize

---------

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
2023-08-09 11:25:38 +08:00
zhifenghu 9f7bf8a8eb Update utils.ts, replace the random function, to make particle scenes… (#15838)
* Update utils.ts, replace the random function, to make particle scenes support automated testing

* core/math/utils.ts  add method: setRandGenerator

* core/math/utils.ts  add method: setRandGenerator

---------

Co-authored-by: 胡志锋 <zhifeng.hu@cocos.com>
2023-08-07 13:41:48 +08:00
PP 3c6a84934e fix some bugs for cyberpunk demo on OH platform (#15846)
* fix: bug on Destructuring Assignment syntax on OH

* [AOT] workaround skip Storage type checking on OH

* reuse fullscreen on OH platform
2023-08-03 10:29:33 +08:00
Leslie Leigh (李的序) 31342c4633 Update editable.ts (#15820) 2023-07-26 11:09:38 +08:00
李吉林 72db3322bd add light probe group help (#15797) 2023-07-21 15:19:24 +08:00
Leslie Leigh (李的序) f87d196f8d Add Vec3.generateOrthogonal (#15705) 2023-07-14 10:33: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
Santy-Wang da0374bb1a fix performance degradation when redefine the property of renderer's prototype (#15615) 2023-07-05 10:24:37 +08:00
PP 4c0f664960 [AOT] add type for AOT engine (#15527)
* fix object

* fix action

* fix type in instantiate.ts

* fix type for NodeEventProcessor

node_event_processor

* fix type in input.ts

* fix particle system

* fix color type

* fix CI

* add tracking issue
2023-06-28 11:24:40 +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
Ling Zhan b1214a5327 [fix] math Quaternion::fromMat3 (#15491)
* [fix] native math Quaternion::fromMat3 and Mat3::fromViewUp
2023-06-21 09:33:14 +08:00
minggo 06f136f5c4 Merge branch 'v3.8.0' into merge-3.8.0 2023-06-19 15:26:26 +08:00
PP deb6614a3e fix type in node-activator.ts && component-scheduler.ts (#15444)
* fix type in node-activator.ts && component-scheduler.ts

* fix native node interface

* fix native ts build
2023-06-15 15:08:26 +08:00
Leslie Leigh (李的序) 6b171d2be4 Uniform the way to set a property's type as enum (#15440)
* Uniform the way to set a property's type as enum

* Update

* Revert "Update"

* License
2023-06-15 11:17:47 +08:00
PP 7e86eb0f95 fix type in scheduler.ts (#15431)
* fix type in scheduler.ts

* fix CI

* add dt type
2023-06-14 13:41:18 +08:00
PP b8a96f0080 fix type in debug.ts (#15426)
* fix type in debug.ts
2023-06-14 11:33:00 +08:00
GengineJS 36fbed88a0 [Delete]Remove post-processing configuration items (#15413) 2023-06-14 10:05:35 +08:00
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233  (#15314) (#15357)

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

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +08:00
Santy-Wang 4a2112ebba fix V3.8.0 performance unexpected downgrade (#15392)
* fix performance downgrade

* changed to EDITOR_NOT_IN_PREVIEW

* Update object.ts

---------

Co-authored-by: Jare Guo <jareguo@users.noreply.github.com>
2023-06-08 23:09:04 +08:00
dogeFu 09e000266d feature : add EDITOR_NOT_IN_PREVIEW marco (#15354)
* feature : add marco for editor preview and refactor code with new marco

* refactor: replace GAME_VIEW with EDITOR_PREVIEW

* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"

This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.

* update cc config json

* refactor code

* remove uselese parentheses

* set ccglobal to be false

* skip global variable test case
2023-06-07 17:52:51 +08:00
Jiujiang Liu 3898cf3d47 fix getUniform API bug (#15333)
Co-authored-by: James Chen <dumganhar@gmail.com>
2023-06-07 15:24:35 +08:00
pandamicro c8d3be08a3 Fix issues in Node.updateWorldTransform and UITransform.getBoundingBoxTo[World] (#15273)
* Fix transform update issue when only rotation is set to root node

* Fix UITransform.getBoundingBoxTo and UITransform.getBoundingBoxToWorld

* Improve API and test

* Fix native Node::updateWorldTransform

* Fix UITransform.getBoundingBoxTo

* Fix getBoundingBoxTo by ensuring one time rect transform

* Ignore zero sized rect for bounding box calculation

* Improve API doc
2023-06-07 11:10:28 +08:00
SijieWang 820128d09a Merge pull request #15175 from cocos/marionette-next
Pose Graph
2023-05-25 11:45:53 +08:00
Santy-Wang 51afef29b4 remove repliated and client load (#13521) 2023-05-25 11:40:41 +08:00
Leslie Leigh (李的序) f1472e4453 renameObjectProperty() shall not copy non-enumerable symbol properties (#14194) 2023-05-25 10:43:50 +08:00
Santy-Wang d3a9b5a8b8 gradient misc optimization and add some helpful function (#15032)
* gradient misc optimization and add some helpful function

* keep old version and add new interface

* missing .

* mark as engineInternal
2023-05-24 13:59:29 +08:00
Gin 89b5744c05 feat: new property decorator radioGroup & improve properties rendering (#14600)
* feat: new property decorator `radioGroup`

- For enum type data, it provides the ability to control the ui component(select, button, checkbox) used in inspector
- https://github.com/cocos/3d-tasks/issues/8715

* update: rendering of align properties in label

- use `ui-radio-group` and `ui-radio-button` instead of `ui-tab`
2023-05-23 14:21:52 +08:00
Leslie Leigh 464342eb99 Merge remote-tracking branch 'upstream/develop' into marionette-next 2023-05-18 14:46:30 +08:00
qiuguohua be5eae04f5 Add ‘screen.on’ interface to listen to screen-related events. (#15080)
* 1、Add ‘screen.on’ interface to listen to screen-related events.
2、Deprecate ‘setResizeCallback’ interface

* Modify comment errors
2023-05-17 17:36:54 +08:00
minggo 3a6e0ca2ba Merge pull request #15067 from cocos/develop
Merge develop into marionette-next
2023-05-17 14:06:57 +08:00
troublemaker52025 20f80926b1 add Separable-SSS skin (#14948) 2023-05-11 18:24:45 +08:00
李吉林 582654b9df fix vec2.angle comments (#14960) 2023-05-04 17:25:27 +08:00
Santy-Wang cb852e6dbc Merge pull request #14927 from cocos/develop
Sync develop into marionette-next
2023-04-26 15:48:15 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
黄森斌 c2323e2160 update layers bitmask and enum (#14573)
* update layers bitmask and enum

* Layers.BitMask update

* modify testClass name
2023-04-19 20:40:12 +08:00
Leslie Leigh (李的序) 8e7255a9ee Introduce pose graph, pose node and pose state (#14779)
* Introduce pose graph, pose node and pose state

* Optimize for-of

* Rename

* Doc

* Rename pose allocator -> pose stack allocator
2023-04-17 17:38:43 +08:00
Leslie Leigh (李的序) 06f382db95 Fix @property(PrimitiveType) (#14781) 2023-04-17 15:35:53 +08:00