Commit Graph

129 Commits

Author SHA1 Message Date
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
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
zhakesi c48074b0ee fix middlware2d clip (#12605) 2022-08-30 13:39:55 +08:00
zhakesi a6909e876f fix spine tint (#12263) 2022-07-29 11:12:17 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
ChiaNing c538fd6d18 change Renderable2d name (#12213)
* change Renderable2d name

* misc

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-27 14:25:14 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
zhakesi e18e900162 support spine/dragonbones use local native batcher2d (#12141)
* support spine/dragonbones use local native batcher2d

* avoid tiled map use local

* render-entity add set use local

* modify some code

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-22 12:54:15 +08:00
timlyeee fc4f024327 update documentations of reflection, bridge and jsbBridgeWrapper (#12097) 2022-07-21 18:31:30 +08:00
Ling Zhan 2fcd242b18 fix physx create terrain height out of range (#13252) (#12100) 2022-07-21 10:35:44 +08:00
minggo 3c264e53ac Revert "V3.6.0 reflection refact (#12096)" (#12102)
This reverts commit 5b9b98f759.
2022-07-20 17:02:17 +08:00
timlyeee 5b9b98f759 V3.6.0 reflection refact (#12096)
* Move reflection and bridge implementation from jsb to native

* remove from jsb.d.ts

* remove jss
2022-07-20 15:32:15 +08:00
Zhang mingzhen 12625f09d8 RenderDrawInfo code sorting (#12055)
* remove blendHash and DrawInfoAttrLayout

* remove code in cpp

* remove blend hash in ts

* remove blendhash of middleware in ts

* remove rebundant code

* remove stencilStage in drawinfo

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-19 13:35:54 +08:00
yangchao 3973cf0a0c fix : video player state show error (#11992) 2022-07-16 17:50:27 +08:00
zhakesi 775d2b43cc set buffer size for middleware (#12013) 2022-07-15 14:21:55 +08:00
ChiaNing eeb210d55b fix ui render custom material bug (#11989)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-14 17:28:27 +08:00
Santy-Wang 945e715a9c restructure life cycle (#11971)
* restructure life cycle

* fix bugs

* optimize

* remove some code

* refine

* fix dragonbone custom material

* fix particle crash

* changed to CCAssert

Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-14 16:33:30 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
zhakesi 40769330da fix spine/dragonbones drawinfo clear (#11919)
* fix spine/dragonbones drawinfo clear

* fix clang tidy
2022-07-11 16:18:14 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +08:00
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
mmyduckx 4fdf948d24 refactor downloaderTask API style (#11697) 2022-06-29 11:34:15 +08:00
Ling Zhan aa001a9f9b fix PhysX pointer loss percision on Android API 30 (#10811) (#11624) 2022-06-29 09:54:29 +08:00
zhakesi e0937c7caa fix change spine switch animation in native (#11358)
* fix change spine switch animation in native

* add comment for a hack operation.

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-06-20 14:35:20 +08:00
zhakesi 89621a8084 optimize spine use local mode in native (#11225)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-29 13:46:05 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
zhakesi 4d426ccbd1 remove enableBatch from spine/db (#11100)
* remove enableBatch from spine/db

* add deprecated

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-16 12:41:30 +08:00
James Chen 7203b63a50 fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject (#11060)
* fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject
* Add more comments in CCObject.cpp
2022-05-16 09:49:45 +08:00
minggo 84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
zhakesi b0c97b6986 fix:set skeleton data, _cachedSockets should be reset (#10671)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-04-07 16:23:47 +08:00
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
kenshin 2b016c7eeb force update for spine color setting. (#10417) 2022-03-22 18:12:52 +08:00
zhakesi c4730a29dc fix animation not work caused by creating spine in a hided node (#10380)
* fix animation not work caused by creating spine in a hided node

* use a flag to mark if need update skeleton data setting

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-21 19:36:44 +08:00
zhakesi 9a4cf3784e fix spine in native platform can not get animation name (#10303) 2022-03-15 11:02:07 +08:00
timlyeee 2769040896 editbox-win32 (#10118)
* editbox-win32
* editbox styles
* bind with jsb_input
2022-03-14 15:52:35 +08:00
zhakesi 8561d5e686 fix dragonbones/spine sockets transform (#10260) 2022-03-10 16:18:28 +08:00
pandamicro 4644f758a8 Merge pull request #10261 from minggo/merge_v3.5.0
Merge v3.5.0
2022-03-09 11:52:19 +08:00
Santy-Wang 60cd1fd00c fix PhysX error in native platform (#10263)
* fix physX error in native platform
2022-03-08 17:02:29 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
zhakesi d70256b7b5 avoid middileware-2d copping buffer from native to js (#10235)
* avoid middileware-2d copping buffer from native to js

* remove redundant function
2022-03-04 11:48:51 +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
santy-wang 41fe64b097 Merge branch 'v3.5.0' of https://gitlab.cocos.net/publics/engine into v3.6.0 2022-01-24 17:45:05 +08:00
zhakesi cff5293a45 V3.4.1 local db (#10031)
* fix db can not move in editor

* fix db native mode
2022-01-21 19:00:04 +08:00
timlyeee 4d8b3a1266 add OHOS platform detection (#10028) 2022-01-21 11:09:01 +08:00
ChiaNing 2f1d6ae04e request IA by pool (#9967)
* request IA by pool

* change to use RecyclePool

* fix reset

* ia Start fix

* fix DB
2022-01-12 15:29:55 +08:00
minggo e80251eae6 Codes for native (#9920) 2022-01-11 17:30:18 +08:00
timlyeee 1ffe722c4c Rename JsbBridgeWrapper API (#9923) 2022-01-07 17:43:25 +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 0600e26f7eee277c820c3097b1f48f79fcf60890.

* 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
PP c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
timlyeee f5a6a64372 Jsb-event-handler for event dispatch (#9879) 2022-01-04 13:37:44 +08:00