Commit Graph

196 Commits

Author SHA1 Message Date
pandamicro
dba83c270d Fix multi blank lines (#11116) 2022-05-17 11:56:06 +08:00
Zhang mingzhen
33c00ef16a Skip a pair of quotations for avoiding spaces in image name are detected (#10954)
* Skip a pair of quotations for avoiding spaces in image name are detected.

(cherry picked from commit b0d0d5a6ad148238b618ab37e692b09e1523d3b1)

* add unit test

* optimize unit test case

* test functional interface "Parse" instead of  a part of code

* supplements some unit test cases

* optimize unit test

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-05-14 18:37:21 +08:00
Jare Guo
92bb384dda Instantiate all FastDefined objects as value type (#11052)
* Instantiate FastDefined object as value type

* Optimize #11052

* Doc

* minor tweak

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2022-05-14 14:30:47 +08:00
Leslie Leigh (李的序)
abc005d53e Optimize curve unit test (#10912) 2022-05-14 10:36:21 +08:00
Santy-Wang
c56ceddb5c fix particle system memory issue (#11032)
* fix memory leak in particle system

* revert some code
2022-05-11 17:01:44 +08:00
Leslie Leigh (李的序)
e7370a9c3b Log (#10915) 2022-05-06 20:11:17 +08:00
ChiaNing
987569786d fix auto-atlas test bug cause time sequence (#10914)
* fix auto-atlas test bug cause time sequence

* spell fix
2022-05-05 19:34:14 +08:00
ChiaNing
36d90793a8 fix meshBuffer checkCapacity bug (#10910)
* fix meshBuffer checkCapacity bug

* add test
2022-04-28 14:31:21 +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
Leslie Leigh (李的序)
a7f48be180 Remove deprecated API in animation module (#10645)
* Remove deprecated API of animation

* Update

* Revert removal of animation component
2022-04-10 21:56:16 +08:00
minggo
be735449af Revert "remove some deprecated api (#10656)" (#10694)
This reverts commit a1b1fc5a09.
2022-04-08 11:51:06 +08:00
minggo
a1b1fc5a09 remove some deprecated api (#10656)
* remove some deprecated api
2022-04-07 16:31:02 +08:00
Leslie Leigh (李的序)
7c9fbc431b Revert #10485, #10512, #10576 (#10683) 2022-04-07 16:22:34 +08:00
Leslie Leigh (李的序)
ad38d77da4 Fix circular reference (#10625)
* Fix circular reference

* Update

* Update
2022-04-01 13:44:15 +08:00
Zhang mingzhen
069ce13b20 add richtext child state unit test (#10606)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-31 15:21:13 +08:00
Leslie Leigh (李的序)
891237b06e Fix skeletal animation state got update twice (#10571)
* Fix skeletal animation state got update twice

* update

* Add test

* Update

* Update

* Always update

* rename
2022-03-29 21:39:59 +08:00
Leslie Leigh (李的序)
b1271e6370 Unit test on retrieving class id and class name (#10559) 2022-03-29 20:15:20 +08:00
Leslie Leigh (李的序)
6070aa5c79 Fix cross fade bug introduced from #10485 (#10576) 2022-03-29 20:02:10 +08:00
Leslie Leigh (李的序)
0a67669190 Animation state bugfix (#10558) 2022-03-29 11:33:47 +08:00
Santy-Wang
98e52e3f16 output warning info when attached to the node has zero scaling (#10524)
* output warning info when attached to the node has zero scaling

* use approx instead
2022-03-26 22:23:29 +08:00
pandamicro
f4aa81d88e Fix vec3 & vec4 transformAffine (#10508) 2022-03-26 19:23:41 +08:00
Leslie Leigh (李的序)
73374aa999 Fix animation bug introduced from #10485 (#10512)
* Fix animation bug introduced from #10485

* Add test
2022-03-26 15:57:50 +08:00
Leslie Leigh (李的序)
673844eafb Fix: animation blending zero check (#10499)
* Fix: zero check animation blending

* Rename
2022-03-25 18:51:15 +08:00
Leslie Leigh (李的序)
f00d11adaa Optimize the way how animation component update its animation content (#10485)
* Optimize the way how animation component update its animation content

* Update

* Update

* update

* Update
2022-03-25 10:03:29 +08:00
Leslie Leigh (李的序)
b87c185333 Marionette: layer, mask, auto trigger, pass through state (#10179)
* Marionette/3.5.0 Initial Commit

* Auto trigger default value

* import skeleton 改为选择 fbx 文件

* Rename passthrough -> empty

* Refactor Auto Trigger (#81)

* Refactor auto trigger

* Lint

* Optimize

* Update

* Migrate triggers (#82)

* Fix merge problems

* Optimize

* Optimize

Co-authored-by: arsen2010 <arsen2010@126.com>
2022-03-22 15:05:45 +08:00
Leslie Leigh (李的序)
93b856b98e Make animation module optional (#10257) 2022-03-10 11:55:11 +08:00
ChiaNing
0027a64f8d add auto atlas unit test (#10247) 2022-03-09 10:15:12 +08:00
Leslie Leigh (李的序)
e86ee1a247 @disallowAnimation should not imply visible (#10262) 2022-03-08 16:27:30 +08:00
pandamicro
1446db89e7 Merge branch 'v3.4.2' into v3.5.0
# Conflicts:
#	cocos/2d/components/sprite.ts
#	cocos/2d/framework/ui-transform.ts
#	cocos/2d/renderer/render-uniform-buffer.ts
#	cocos/core/builtin/effects.ts
#	cocos/core/builtin/shader-sources/glsl1.ts
#	cocos/core/builtin/shader-sources/glsl3.ts
#	cocos/core/builtin/shader-sources/glsl4.ts
#	cocos/dragon-bones/ArmatureDisplay.ts
#	cocos/spine/skeleton.ts
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk.meta
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk.meta
#	editor/assets/default_skybox.meta
#	editor/assets/effects/builtin-sprite-gpu.effect.meta
2022-02-28 17:24:02 +08:00
Zhang mingzhen
782be9bdce add extra name like cc.xxx from legacyCC namespace (#10076)
* add extra name as cc.xxx from legacyCC namespace

* remove rebundant code

* remove rebundant namespaces

* fix unit test bug. supplement global variables classes.

* UIModel->UIMeshRender

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-02-21 14:14:16 +08:00
pandamicro
50a43e18e4 Shared vb accessor for spine (#10077)
* Robust updateOpacity in batcher & cleanup code

* Support Batcher2D commitIA

* Support customized buffer size for StaticVBAccessor

* Reorganize RenderData logic and prepare spine refactor

* spine realTimeTraverse using dedicated accessor

* Support spine clipping

* Fix updateOpacity in batcher 2d

* Support Spine cache mode

* Fix ci

* Use different accessor for tint spine

* Update effect

* Fix native spine and dagonbones IA range issue

* Fix spine tint accessor registartion

* Revert darkColor default value

* Fix spine accessor switching issue and render data init issue

* Shared vb accessor for dragonbones (#44)

* Shared vb accessor for dragonbones

* fix code style

* add explanation why need resize render data in realTimeTraverse

Co-authored-by: zhakesi <liqiao@cocos.com>
2022-02-18 15:24:59 +08:00
Yun Hsiao Wu
198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
Yiwen
d0719c6727 add a new interface to query format feature info (#9949)
* add format feature information for query

* adapted the higher level code to use the new formatFeature query inferface, and run the test-cases-3d

* remove uncessary public interface

* remove uncessary public interface

* remove unnecessary api

* fixed the name of function support16FTexture.

* clean the code, fix some typos.

* correct format features

* group the judgemnts to fix the logic

* query the support to compressed from a decent method. correct some bit operations.

* add FormatFeatureBit into globaleVariable's database to pass npm test

* Add deprecation information to help developers move to the new
interface. Every time a deprecated property is accessed, an error will
present. So developers must move to the new interface following the
instruction in the error info.

* Move the deprecation information to the right module.
2022-01-25 19:02:25 +08:00
santy-wang
995f5b2d41 Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge 2022-01-24 15:56:49 +08:00
Leslie Leigh (李的序)
19c121dd07 Fix skeletal animation sample() does not work as intended (#10006)
* Fix skeletal animation sample() does not work as intended

* update

* currentClipRef -> currentClip

* Rename

* Optimize

* Internal

* Optimize

* Update
2022-01-18 22:56:10 +08:00
ChiaNing
466a2dc97d change macro for meshBuffer (#10001)
* change macro for meshBuffer

* name change

* test used name change
2022-01-17 16:09:49 +08:00
pandamicro
bd3c30fd4c BufferAccessor refactor for Batcher2D (#9802)
* VB cache add(only simple)

* sliced add

* after rebase

* Extract BufferAccessor from MeshBuffer

* Refactor for linear buffer accessor

* Support simple sprite

* Fix initialization issues

* Fix simple sprite rendering

* Rough adaptation

* tweaks

* Fix LinearBufferAccessor's appendBuffers

* Cleanup mesh buffer codes

* Reorganize ia allocation

* Middleware adaptation & Particle 2d adaptation (#31)

* Middleware adaptation

* particle-2d adaptation

* Initial implementation of static vb accessor

* Complete static vb accessor

* Improve static vb accessor

* Ensure MeshBuffer.byteOffset

* Fix record batch process in static vb accessor

* Fix vb reset

* simple & simple label add (#32)

* Meshbuffer static length (#33)

* set ib only first time

* Meshbuffer static length

* Some name refactor

* remove RenderData.vData

* Improve buffer update logics

* Use appendIndices in fillBuffers

* The quickest version(simple & label can render) (#34)

* Revert "Use appendIndices in fillBuffers"

This reverts commit 0600e26f7e.

* the quickest version

* pass renderScene

* batch

* change batcher update

Co-authored-by: pandamicro <lphuabin@gmail.com>

* Move ia record logic from accessor to batcher

* Make vertexFormat sourced from render data

* sliced & bar-filled (#35)

* radial-filled & tiled & label (#36)

* radial-filled & tiled

* bmfont & char label

* function change

* name change

* Remove uvDirty

fixes

Fix uv update for sprite

* Reduce mesh buffer setDirty

* uv fix

* Format label

* Refactor color and cascade opacity mechanism

* Fix empty render data or chunk absent issue

* fix some uv (#37)

* Fix non stop allocation issue in static vb accessor

* fix bmfont richText & remove uiComponent (#38)

* fix bmfont uv

* fix richText & remove ui Component

* Fix mesh render data batching

* Small fix

* Update for spine

* Formatting jsb spine and editor

* middle ware & particle 2d (#39)

* motion-streak

* dragon Bones add

* tiled map unsafe change

* particle-2d add

* function name change

* some function change (#40)

* Fix RenderData pool usage

* Fix merge issue

* fix misc bug (#41)

* Native adaptation for spine and dragonbones with MeshRenderData

* misc fix (#42)

* Improvements

* Fix ci and improvements

Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com>
2022-01-07 15:43:04 +08:00
zxx43
bebf8aff0a add cpu & gpu particle culling test (#9945) 2022-01-07 13:16:50 +08:00
Greg1129
88a0ccbf26 fix particle capacity <= 0 (#9910)
* fix particle capacity <= 0

* fix issue 10417 particle capacity 0

* fix issue 10417 particle capacity setter range limitation

* remove unused package
2022-01-06 15:10:32 +08:00
santy-wang
7ffe1bc031 Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-01-06 14:41:28 +08:00
Leslie Leigh (李的序)
d97e453b07 Fix decorator order issue in standalone mode (#9911)
* Fix decorator order issue in standalone mode

* Apply

* Update
2022-01-05 23:30:21 +08:00
Greg1129
6f3b1fae0c fix bug: remove all actions by tag (#9876)
* fix bug: remove all actions by tag

* add tween unit test

* add @internal comment

* fix using backward delete

* add commnets by eslint
2021-12-30 17:55:11 +08:00
Greg1129
5d3b5d64c8 modify builtin texture generation + particle unit test (#9841)
* modify builtin texture generation + particle unit test + particle system capacity issue 10417

* change texture format to RGBA8

* modify builtin texture generation

* modify format and remove particle parts out to another pr

* fix array buffer view generation
2021-12-29 10:35:57 +08:00
alpha
f153b5cc1b fix Color.fromHex Bug (#9867) 2021-12-28 11:52:01 +08:00
Zhang mingzhen
6601d1d2de Label string setter optimization (#9880)
* remove rebundant onDisable

* update label.string.setter and add unit test case

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-28 11:27:58 +08:00
santy-wang
d3d84673d3 Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0 2021-12-10 19:20:01 +08:00
Leslie Leigh (李的序)
b4ec6c576e Fix AnimationGraph.disconnect() (#9785)
* Fix AnimationGraph.disconnect()

* Update comment
2021-12-09 15:29:19 +08:00
Leslie Leigh (李的序)
080053bc33 Empty tracks shall not take effect (#9777)
* Empty tracks shall not take effect

* Fix test

* Fix test
2021-12-08 10:31:20 +08:00
ChiaNing
99bdb07378 Revert "mesh buffer cache add (#9728)"
This reverts commit 1c0db6414a.
2021-12-03 19:46:09 +08:00