Commit Graph

913 Commits

Author SHA1 Message Date
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
李吉林 baf95125fc profiler with surface transform (#10515)
* profiler with surface transform

* add namespace closing comment
2022-03-28 10:20:54 +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
黄森斌 d065ca6aee V3.5.0 fix bug: reset renderer-component would not update model (#10342)
* fix bug: reset materials would not update model

* add comment

* reset _materials.length

* fix bug: model in scene would not disappear when remove mesh

* modify code written
2022-03-22 17:57:56 +08:00
Santy-Wang ab82e1b42d remove hidden (#10414)
* remove hidden

* fix typo

* fix unit-test

* turn on auto fix
2022-03-22 15:11:16 +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
Myway 459abdbd72 change lighting map unpack and luminance multiply (#10185) 2022-03-22 12:01:47 +08:00
李吉林 d793157a71 add dynamic mesh (#10291)
* add dynamic mesh

* Mesh init refactor

* fix geometry renderer bug

* dynamic mesh review update

* MeshUtils refactor

* do not export createDynamicMesh
2022-03-16 16:55:49 +08:00
Leslie Leigh (李的序) c40f51a860 Fix skinned mesh morph rendering (#10318) 2022-03-14 16:19:06 +08:00
Leslie Leigh (李的序) 93b856b98e Make animation module optional (#10257) 2022-03-10 11:55:11 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
santy-wang 10349e567d Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-03-08 10:21:39 +08:00
黄森斌 4f05432c23 Displayorder is removed from the edit template and is taken over completely by the decorator (#10165) 2022-03-02 21:14:37 +08:00
troublemaker52025 e723e5aa3a Add renderMesh bias for v3.5.0 (#10102)
* Add renderMesh bias for v3.5.0

* fix ci error

* change function name

* fix merge error

* update

* update 2

* update

* update

* update 2
2022-02-24 23:27:09 +08:00
troublemaker52025 76af77d9b8 fix shadow merge error for v3.6.0 (#10073)
* fix shadow merge error for v3.6.0

* update

* fix ci error

* fix ci error 2

* fix ci error

* fix ci error 3
2022-02-16 12:12:45 +08:00
pandamicro 65c86be0b4 Merge pull request #10065 from cocos-creator/v3.5.0
sync V3.5.0
2022-02-09 13:41:22 +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 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
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
troublemaker52025 8775b73ff0 shadow info migration for v3.5.0 (#9857)
* shadow info mifration for v3.4.1

* fix ci error

* add deprecated

* fix merge error

* fix merge error 2

* update

* Add comments
2022-01-21 13:14:28 +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
Leslie Leigh (李的序) a50fd9bb96 Fix skeleton animation cross fade/play won't stop last animation (#9965) 2022-01-12 12:02:01 +08:00
minggo e80251eae6 Codes for native (#9920) 2022-01-11 17:30:18 +08:00
Leslie Leigh (李的序) 01e0fc41a6 Fix skeleton animation component play or cross fade (#9930) 2022-01-06 17:10:54 +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 (李的序) ac49b8b6a0 Refactor communication between skinned mesh renderer and skeletal animation (#9787)
* Refactor communication between skinned mesh renderer and skeletal animation

* Update
2022-01-05 13:40:54 +08:00
PP fbde8d1e90 use lagacyPublic to marked deprecated public interface (#9859)
* use lagacy-public

* publish beta6

* remove jsDoc tag from constructor

* use legacyPublic

* publish beta 7
2021-12-28 11:48:10 +08:00
jk20012001 c1146b813c Fix skeleton model receive shadow macro error and toon shadow display errors (#9836)
* 修复骨骼模型接受阴影的开关无效 及 toon shadow计算的错误

* toon精确判断背光面及强制所有面接受阴影

* toon使用参数来调节接受阴影的区域
2021-12-23 17:18:34 +08:00
PP cc01fad918 support internal interface filter (#9797)
* support interface filter

* publish build-engine@4.2.20-beta.1

* update

* fix other type of statement

* publish @cocos/build-engine 4.2.20

* update lock

* remove `@internal` from constructor documentation

* change to internal_cc tag

* support target tag in interface-filter

* publish  4.2.21-beta.1

* remove `@private_cc` tag

* remove public internal interface

* remove public internal getter setter

* remove public declare internal property

* update

* remove `__editorExtrasTag__`

* remove public internal interface on `js`

* pulish @cocos/build-engine 4.2.21-beta.2

* change tag to `@deprecated_to_user`

* support `@deprecated_to_user`

* publish 4.2.21-beta.3

* finish change request

* change to marked_as_engine_private

* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
santy-wang 01ceef90c1 Merge branch 'v3.4.0' of github.com:cocos-creator/engine into v3.5.0 2021-12-03 00:08:06 +08:00
Santy-Wang 8909133f5d initialize mesh when asset is loaded (#9721) 2021-11-25 11:22:58 +08:00
GengineJS 0bb4aa6716 Native render scene add uniqueness judgment (#9704)
* Native render scene add uniqueness judgment

* JointMedium adds nativeObj judgment
2021-11-24 15:46:41 +08:00
santy-wang 6cde877e5b Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0 2021-11-24 14:23:21 +08:00
Yun Hsiao Wu 2ff4e8a8cf set model dirty when attaching to scene (#9674) 2021-11-17 18:54:09 +08:00
Zhang mingzhen 9cc297e7d1 update testcase of getpathinhierarchy #9203 (#9581) 2021-10-30 22:14:55 +08:00
李吉林 3d1ac52a26 fix crash: native model is destroyed but not removed from renderscene (#9543)
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-26 15:46:54 +08:00
zheng han 63548ccfc2 comment out assert in v3.4 (#9506) 2021-10-22 11:39:53 +08:00
pandamicro 8e3eb9db05 Support HDR/LDR Light Sources (#9439)
* Added base rendering logic

* Hide using decorators Diffuse reflection map control and ApplyDiffuseMap whenever IBL is disabled

* Added HDR toggle to scene globals

* Fix bug when ApplyDiffuseMap is left checked when envmap is deleted & disable IBL when envmap is deleted

* Add changes to allow rendering the diffuse convolution map

* Added functions to permit setting sky and ground color (hemispheric lighting) from irradiance calculated from a set envmap. That is, when a diffuse reflection irradiance convolution is not used. Also code to discern LDR from HDR

* Various mods

* Permit independent Hemispheric Lighting parameters to be serialized for LDR/HDR

* Add HDR normalization

* Set HDR shader macro

* Modify Illiminance based on global LDR/HDR setting

* Add LDR/HDR versions for luminous flux

* Add distinct LDR/HDR for SpotLight/SphereLight luminous flux

* Adding LDR as the new serialized value, as HDR is assumed by default in previous versions

* Modified hemisphericc ambient light to assume HDR as default removing the necesesity for migration code

* HDR is on by default

* Fix directional light constructor removal

* HDR/LDR fixes for sphere, spot, and directional lights

* Fix the HDR/LDR mode switching on UseHDR toggle

* Switch UI to and from LDR/HDR envmap depending on HDR toggle state

* Make LDR envmap and diffusemap's serializable

* Partial Float32Array->Vec4 conversion

* Fixed passed Vec4() into UBO for skycolor and groundalbedo

* Fixed copy/paste error

* Fix ambient illumination passing into global UBO

* Modify UBOs to call correct luminance functions

* Modification to punctual lights

* Add missing dependency

* Fix HDR/LDR envmap/diffuse map initialization bug

* Add support for native engine

* update_hdr_skybox (#9230)

* update material preview when custom panel change (#9340)

* update material preview when custom panel change

fixed https://github.com/cocos-creator/3d-tasks/issues/8663

* update material preview when custom panel change

fixed https://github.com/cocos-creator/3d-tasks/issues/8663

* Update material.js

* Fix native light function invoke error

* Unify API naming in light

* Improve scene-globals code organization

* Update jsb apis

* Reverse getter setter for spotLight luminance

* Fix unexpectable result of toggle HDR and ApplyDiffuseMap options

* Remove fpScale, make deferred and forward uniform

* Fix skybox macro recompiling error

* Fix shader compiling errors
Fix unlit shader in HDR/LDR output

Co-authored-by: Jamie Anthony Morris <Jamie.Morris@cocos.com>
Co-authored-by: Jamie Anthony Morris <47879963+Jacksparrow2525@users.noreply.github.com>
Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: linshunjun <49218738+linshunjun@users.noreply.github.com>
Co-authored-by: zhangxin <59186205+chichinohaha@users.noreply.github.com>
2021-10-14 10:29:36 +08:00
Leslie Leigh (李的序) f1f0fbaf16 [WIP] Feature: NewGenAnim (#9331)
* NewGenAnim

* Fix/Optimize simple directional blending

* Class transition by type (#29)

* Transition & Gradient transition (#30)

* The default ExitCondition should be 1.0

* Do correct graph eval

* Fix PoseSubgraph connect() signature order (#31)

* Graph defaults test (#32)

* Conditions (#33)

* Trigger (#34)

* Transition should only be considered when satemachine exited (#35)

* Add layer.name (#36)

* Fix some behaviours; add API to query poses and transition (#37)

Fix single frame exit condition behaviours; Fix pose -> subgraph behaviours

* Support self transition; refactor sub state machine implementation (#38)

* Temp

* Flat whole layer statemachine

* Add test for test reset triggers

* Allow self transition

* Self transition test

* Fix deserialize (#39)

* update animgraph template (#40)

* The inheritance of any state (#41)

* StateMachine events (#42)

* Fix state machine events; Allow multiple transitions between two nodes (#43)

* Transition priority test (#44)

* Optimize variable bind (#45)

* Fix variable bind errors (#46)

* Expose blend algorithm to editor (#47)

* Cont (#48)

* update animgraph template (#49)

* update animgraph template

* update animgraph template

* Pose speed (#50)

* blend tree add EditorExtendable data (#51)

* Correct pose blend duration (#52)

* Export some types (#53)

* animation pose EditorExtendable (#54)

(cherry picked from commit d5dd5f32c9dbacb68c016ff8ba56d383c781a021)

* Implement clone() (#55)

* Fix trigger condition serialization (#56)

* Add variable type: integer (#57)

* Optimize 0 weight case (#58)

* Relative duration (#59)

* update_hdr_skybox (#9230)

* Rename.. (#60)

* Optimize animation blend item export (#61)

* Fix Type (#62)

* modify aniamtion graph template data (#63)

* modify aniamtion graph template data

* add animation graph component template

* Fix serialize issue (#64)

* Optimize (#65)

* Remove MotionState.startRatio, loop (#66)

* Update (#67)

* Fix circular reference (#68)

* CR (#69)

* Fix exit time greater than 1 (#70)

Co-authored-by: 黄森斌 <arsen2010@126.com>
Co-authored-by: linshunjun <49218738+linshunjun@users.noreply.github.com>
2021-10-14 10:28:23 +08:00
Myway 6d0622245b rename _transformUpdated to _localDataUpdated, class Model and SkinningModel (#9432) 2021-09-30 16:54:01 +08:00
santy-wang 6391b5705a Merge branch 'v3.3.2' of github.com:cocos-creator/engine into v3.4.0-physx 2021-09-24 12:11:48 +08:00
Yun Hsiao Wu 48686f1301 update effects (#9339) 2021-09-17 11:42:26 +08:00
Yun Hsiao Wu 427ff1254c instance buffer allow different strides (#9329) 2021-09-16 17:39:37 +08:00
Yun Hsiao Wu 4cf1350fe0 gfx: swapchain refactor (#9030)
* update effect.hideInEditor

* swapchain refactor

* webgl multi draw

* implicit depth/stencil format

* native adapt

* explicit resizable texture

* DrawInfo in InputAssembler

* device cached states

* sync defines

* gfx: empty backend

* update playground

* remove profiler camera

* update effect types

* fix pass.resetUniform
2021-08-31 19:40:50 +08:00
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
troublemaker52025 c0c1c0313f update light luminance name for v3.3.0 (#9142)
* update light luminance name for v3.3.0

* update

* add deprecated

* update

* update

* fix ci error

* update

* update

* update
2021-08-06 15:09:25 +08:00
GengineJS 950518c251 Fix the incorrect ModelBounds of BakedSkinningModel (#9113) 2021-08-02 17:06:42 +08:00
Santy-Wang 66f691589f fix invoke failed (#9071) 2021-07-26 20:34:27 +08:00
Santy-Wang 0e0502117d fault tolerant (#9062)
* fault tolerant

* handle more component
2021-07-24 22:37:23 +08:00
Yun Hsiao Wu 9a185dab77 fix skeletal animation remove/restore (#9041) 2021-07-23 11:49:02 +08:00