Commit Graph

98 Commits

Author SHA1 Message Date
Leslie Leigh (李的序) 4bcd1795f2 Marionette: add test in case of states of transition yielding nullish (#14733) 2023-05-18 11:03:24 +08:00
Leslie Leigh (李的序) 859140bf96 Reverse the arguments meaning of Transform.multiply (#15084) 2023-05-17 14:01:18 +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
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
Leslie Leigh (李的序) d76a8ae2da Improve animation graph test utils; prune Marionette files (#14541)
* Improve animation graph test utils; prune Marionette files

* Rm
2023-04-18 11:14:45 +08:00
Leslie Leigh (李的序) be5e2edfde Introduce auxiliary curve (#14659)
* Introduce auxiliary curve

* Rename meta value -> auxiliary curve

* Refactor auxiliary curve authoring api
2023-04-17 16:08:19 +08:00
zhakesi 42b704c4e1 fix set skinningRoot (#14755) 2023-04-14 18:48:29 +08:00
Leslie Leigh (李的序) eb8be7e5bb Animation blend: add algorithm "freeform directional" (#14203)
* Animation blend: add algorithm "freeform directional"

* Update comment

* Fix
2023-04-03 13:34:53 +08:00
Leslie Leigh (李的序) 84ce668d2a Fix animation clip exotic animation split error (#14695) 2023-03-31 13:56:40 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
Leslie Leigh (李的序) 273117b455 Fix interruption matching on state exit condition (#14519)
* AnimationGraph: fix interruption matching

* Doc

* Tweak
2023-03-09 11:45:52 +08:00
Leslie Leigh (李的序) c9151ed4e0 Add some animation graph test utils (#14515) 2023-03-09 10:50:19 +08:00
Leslie Leigh (李的序) 68e59893fb Fix AnimationComponent.addClip (#14440) 2023-03-02 16:31:29 +08:00
Leslie Leigh (李的序) 1264775db5 AnimationGraph: fix interruption between circular transitions (#14080)
* Add unit test for interruption between circular transitions

* Fix interruption between circular transitions
2023-02-01 11:49:41 +08:00
Leslie Leigh (李的序) f1d54f984d Refactor animation graph evaluation (#13503)
* Refactor animation graph evaluation

* Remove debug code

* Tweak

* Comment

* Comment

* Comment

* Fix engineInternal

* Fix ui

* Add function to monitor pose leak

* Tweak

* Optimize

* Fix UI

* Remove unused code

* Fix animation blend direct

* Decouple animation clip from AGEvaluation

* Rename

* Update doc

* Refactor PagedPose

* Fix test

* Fix a clip overriding bug

* Fix meta values

* Optimize pose allocator

* Refactor pose allocator

* Additive nullish motion

* TransformFilter: Reduce Uint32 into Uint16

* Tweak

* Tweak

* __trySyncLegacyData -> _trySyncLegacyData

* for-of

* Tweak

* Tweak

* up -> outerContext

* empty -> isEmpty

* Rename setSpan -> copyRange
2023-01-04 11:59:54 +08:00
Leslie Leigh (李的序) 8be402e236 Fix zero extent animation state playback range (#13456) 2022-11-21 17:11:46 +08:00
Leslie Leigh (李的序) 0521d1e566 Add a test to test how clip overriding affect the set of animated node (#13375) 2022-11-15 10:42:18 +08:00
Leslie Leigh (李的序) 7e16ec2b79 Fix empty to empty transition (#13359) 2022-11-14 13:57:45 +08:00
Leslie Leigh (李的序) 70d10a5645 Animation graph variant and dynamically override clips (#12445)
* Animation graph override clips

* Update

* Fix

* Fix unit test

* support animation graph variant editing (#90)

(cherry picked from commit 273379f3883b8b2d59966249e712b9017d4355ff)

* Anim graph vari template

* tweak

* Tweak

* Mark the overrideClips as experimental

* Name bikeshed

* Tweak

Co-authored-by: 黄森斌 <arsen2010@126.com>
2022-11-11 14:14:19 +08:00
Leslie Leigh (李的序) c23b7bde62 AnimationController: optimize status query methods, add layer count getter (#13323) 2022-11-11 11:00:42 +08:00
Leslie Leigh (李的序) 9d3280eeff Add component-wise animation test (#13204)
* Add component-wise animation test

* update

* Specially handle Vec3
2022-11-03 10:45:56 +08:00
Leslie Leigh (李的序) dac7417c1e Add some tests for animation mask in animation graph (#13218)
* Add some tests for animation mask in animation graph

* Tweak
2022-11-03 10:39:51 +08:00
minggo a354281d7e Fix core import issue (#13148)
* import binarySearchEpsilon from core module

* remove unused files

* import easing from core module

* use array instead

* do not export MutableForwardIterator

* do not export binarySearchBy

* print deprecated information in runtime
2022-10-26 15:19:26 +08:00
Leslie Leigh (李的序) 6877ff9438 [3.7] Marionette: implements some state machine operations (#12434)
* Marionette: implements some state machine operations

* Fix

* Tweak

* Rename assign -> copyTo

* Fix
2022-10-24 15:39:43 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
santy-wang f33523227f sync v3.6.1 to develop 2022-09-19 14:00:54 +08:00
Leslie Leigh (李的序) fbe3b543c4 Fix adjustTransitionPriority in case of serialization (#12770)
* Fix adjustTransitionPriority in case of serialization

* Fix lint
2022-09-15 10:41:56 +08:00
minggo 7922834c0b move cocos/core/animation to cocos/animation (#12674) 2022-09-05 14:57:37 +08:00
Leslie Leigh (李的序) 427bd20885 Fix animation mask api (#12380) 2022-08-11 11:57:20 +08:00
Leslie Leigh (李的序) aca3336745 Feat: animation graph - support absolute destination start time (#12162)
* Feat: animation graph - support absolute destination start time

* Update
2022-07-29 11:08:39 +08:00
Leslie Leigh (李的序) 8f929823f4 Optimize embedded player/event evaluation in animation state (#12186)
* Optimize embedded player evaluation in animation state

* update

* Skip wrap info calculation in certain cases in animation state

* Tweak

* Tweak

* Fix  test
2022-07-27 10:56:26 +08:00
Leslie Leigh (李的序) 4d7ca24948 Handle destination start time on empty transitions (#12007) 2022-07-15 17:05:08 +08:00
Leslie Leigh (李的序) 87d947c727 Property handle zero duration animation clips(2rd fix) (#11925) 2022-07-11 16:44:35 +08:00
Leslie Leigh (李的序) 22d0fa730b Properly handle zero duration clips (#11879) 2022-07-07 15:25:51 +08:00
Leslie Leigh (李的序) eaddf1dab7 Handle twice embedded player evaluations occur in difference animation iteration (#11836) 2022-07-05 10:50:32 +08:00
Leslie Leigh (李的序) e6dfd98840 Optimize morph animation (#11728) 2022-07-04 15:40:45 +08:00
Leslie Leigh (李的序) d4a3be4f23 Animation graph transition interruption (#11566)
* Transition interruption

* Add more tests

* Add

* Self transition interruption test

* Update

* Tweak

* Tweak
2022-07-01 13:47:02 +08:00
Leslie Leigh (李的序) 7037907b53 Improve rename variable unit test (#11666) 2022-06-24 18:25: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
Leslie Leigh (李的序) 46b4d5e34b Animation graph add method to rename variables (#11659)
* Animation graph add method to rename variables

* Fix test
2022-06-23 11:58:20 +08:00
Leslie Leigh (李的序) e0555d536f Animation graph transition priority (#11555) 2022-06-20 14:28:18 +08:00
Leslie Leigh (李的序) d87a3f34ad Animation graph transition destination start (#11160)
* Animation graph transition offset

* Unit test

* Rename offset as destination start

* Rename
2022-06-20 10:12:34 +08:00
Leslie Leigh (李的序) 5b7e958651 Add AnimationController.getLayerWeight (#11380) 2022-06-20 09:59:33 +08:00
Leslie Leigh (李的序) c279004513 Activation/Inactivation should resume/pause animation (#11510) 2022-06-18 11:02:48 +08:00
Leslie Leigh (李的序) 58e25f18ee Animation graph negative speed (#11549)
* Animation graph negative speed

* Update doc
2022-06-17 10:15:32 +08:00
Leslie Leigh (李的序) 423ce5fa6b Improve error messages on animation clip track binding failure (#11224)
* Improve error messages on animation clip track binding failure

* lint
2022-06-06 13:34:57 +08:00
Leslie Leigh (李的序) b4cc1bfcc6 Add AnimationMask.joints setter (#10780)
* Add AnimationMask.joints setter

* Update

* Unit test
2022-04-18 10:55:55 +08:00
Leslie Leigh (李的序) 07c002c98a Fix failed to alter the reset mode of trigger variables (#10783) 2022-04-15 19:15:17 +08:00