Commit Graph

9414 Commits

Author SHA1 Message Date
pandamicro 8d142e42a9 Optimize some documents (#7092)
* Optimize some documents

* Update

* Update

* Update
2020-08-12 23:27:53 +08:00
Leslie Leigh (李的序) 0c5debbc15 Doc for js.array.* (#7089) 2020-08-12 23:27:39 +08:00
Santy-Wang 75a80cacf5 fix scene.dependAssets is empty (#7097)
* fix scene.dependAssets is empty

* refine
2020-08-12 23:17:57 +08:00
PP d95e9930cc fix delay load ttf font bug (#7095) 2020-08-12 23:15:44 +08:00
cary 93d45f37c9 Fix error when splash screen start. (#7122) 2020-08-12 16:47:36 +08:00
pandamicro 2327d9e6c7 Merge pull request #7114 from cocos-creator/3d
Sync some fixes from 3d branch
2020-08-11 16:06:15 +08:00
Leslie Leigh (李的序) 9b4f0ae688 Fix typo (#7102) 2020-08-10 16:05:34 +08:00
PP dbf372dde4 widget refreshScene after scene loaded (#7100) 2020-08-07 23:44:43 +08:00
SijieWang efc710f169 merge pipeline (#7096) 2020-08-07 14:57:14 +08:00
cary 7d77ea3dde Modify pipeline resourceization. (#7067)
* Modify pipeline resourceization.

* change to call setRenderPipeline only once.
2020-08-07 12:10:03 +08:00
Leslie Leigh (李的序) d0c276c941 @cocos/build-engine@3.0.2(bug fix update) (#7087)
* @cocos/build-engine@3.0.2(bug fix update)

* Update
2020-08-07 10:47:42 +08:00
SijieWang fbb6c52314 Move internal assets to the engine (#7093) 2020-08-06 22:09:24 +08:00
SB baa2102339 Update 2020-08-06 17:41:06 +08:00
SB c2a31b26b7 Update 2020-08-06 17:36:41 +08:00
SB 3435697d7b Update 2020-08-06 17:25:21 +08:00
SB f0882d6272 Optimize some documents 2020-08-06 17:23:06 +08:00
Leslie Leigh (李的序) 419f8c0286 @cocos/build-engine for 1.2 (#6735)
* Build engine V3.0.0

Ammo.js wasm support; Multi-module engine support; Remove physics macros
Lock

* 3.0.1
2020-08-06 10:26:52 +08:00
pandamicro 724afb7be5 Merge pull request #7079 from cocos-creator/3d
_checkMultipleComp() default return true (#7077)
2020-08-05 23:34:23 +08:00
黄森斌 718ca0608b _checkMultipleComp() default return true (#7077) 2020-08-05 22:57:03 +08:00
troublemaker52025 785ebc4d4a Resolve light batching (#7055)
* add  light batching

* update

* abstract PassInstancedBuffer && LightInstancedBuffer

* Conflict resolution

* merge batched-buffer

* update
2020-08-05 17:24:24 +08:00
troublemaker52025 933465ccca Resolve light instanced (#7039)
* add  light-instanced

* update func name

* update

* update

* update

* update

* abstract PassInstancedBuffer && LightInstancedBuffer

* update

* merge pr to 1.2

* Conflict resolution

* merge instancedBuffer

* update
2020-08-05 17:22:53 +08:00
Knox 968a53e673 sync 2d outline component (#7061) 2020-08-05 15:28:22 +08:00
Knox f5c2041978 sync 2d page-view component (#7064) 2020-08-05 13:44:23 +08:00
Leslie Leigh (李的序) 26df6fb1c0 Optimize editor decorators (#7002) 2020-08-05 10:36:52 +08:00
minggo acaeed4e4e RenderView remove dependence of Root (#7034) 2020-08-05 09:36:18 +08:00
Knox 644632a58d Fix label.string cannot be set to null or undefined. (#7069) 2020-08-04 17:11:33 +08:00
PP a34d288178 remove properties in EditBox (#7066)
* remove properties in EditBox component

* reorder display

* remove alwaysOnTop on editbox impl
2020-08-04 14:16:30 +08:00
Yun Hsiao Wu afeb83e9a6 native pools (#7028) 2020-08-04 14:14:56 +08:00
PP f9a6fd59b2 error when design resolution is invalid (#7063) 2020-08-03 19:17:53 +08:00
Knox 73add8a51b sync 2d color toHEX api (#7062) 2020-08-03 19:17:26 +08:00
jiaxin.lai 65b0478c69 v1.2 new physics features (#7037)
* 3d v1.1.1-exp physics expriment (#6787)

* activate when not awake (#6781)

* activate when not awake

* cannon too

* off event listener when onDestroy

* add clearVelocity & clearForces

* add CC_CONFIG to ammo\cannon

* add convex mesh & reuse mesh

* cache enable false by default

* terrain collider

* cone collider

* fix scale of ammo box & sphere

* simple collider

* add worldBounds & boundingSphere to collider

* add clear*** to rigid body

* enhance physics material

* enhance event

* plane collider

* stash

* tweaks

* update @cocos/ammo to v1.0.7-beta.1

* typing

* enchance update shape dynamic

* absolute scale cannon-box

* expose allowsleep

* fix warning of generate declaration

* remove physics_builtin

* DO NOT MERGE

* Better reuse

* Correct construct and deconstruct

* avoid ammo memory leaks

* minor refactor contact data

* fix cannon terrain tileSize

* stash

* optimize auto wakeup

* [Ammo] fix update by re add

* 400~

* overwrite ArrayCollisionMatrix.prototype.reset

* Export enum by namespace

* stash

* fix remove child shape of btCompound

* fix event with CCD

* dynamic instantiate

* STASH

* add group to rigid body

* update attachedRigidBody of collider in editor

* stash physics config

* tweaks of ammo config

* stash

* stash

* collision matrix

* stash

* rename deltaTime to fixedTimeStep

* group mask collider

* allow get mask

* set default group to Layers.Enum.DEFAULT

* add group change fallback

* cannon collision matrix

* fix

* update @cocos/ammo to 1.0.7-beta.2

* more prop

* fix

* disable on 1.1.1-exp

* tweaks

* fix circular dependency

* tweaks

* rename simple to simplex

* rename collider -> colliders

* stash

* ammo p2p

* hinge constraint

* adapt cannon p2p pivotB

* ammo p2p setPivotB

* constraint

* tweaks

* remove macro of physics

* refactor physics selector

* import ammo from ammo-instantiated

* update @cocos/ammo

* update @cocos/cannon
2020-08-03 11:00:07 +08:00
cary deb892b4f6 Pipeline refactoring. (#6999)
* Pipeline refactoring.

* delete import

* Fix some formatting issues.

* modify serialization of pipeline

* delete asset

* delete some api

* delete stage asset

* refine base pipeline

* fix ci error

* delete render context

* fix ci

* delete renderQueue from base class

* add base line

* add pipeline type

* modify frametime to pipeline

* delete root time

* modify type to tag

* revert change of frametime

* add initialize return
2020-08-03 10:36:49 +08:00
Leslie Leigh (李的序) aeced26917 Solve duplicated menu issue (#6973) 2020-08-02 14:53:31 +08:00
PP 3ed7c48523 remove polyfill in engine (#7045) 2020-08-01 17:43:46 +08:00
PP a30032e38a fix resize widget on orientation changed (#7056) 2020-08-01 17:37:55 +08:00
SijieWang 0678150d85 Prevent tampering with clickEvent.componentId data (#7052) 2020-07-31 16:57:33 +08:00
Knox 0ffa00f2cc add safe area component for 3d-tasks/issues/3760 (#7020)
* add safe area component for 3d-tasks/issues/3760

* refine

* add cc.SafeAreaComponent to sealed-global-variables.json

* add canvas-resize event
2020-07-31 08:46:49 +08:00
PP 339554141a Revert "sync view code (#7042)" (#7049)
* Revert "sync view code (#7042)"

This reverts commit c2b46ae343.

* update
2020-07-31 08:38:23 +08:00
PP c2b46ae343 sync view code (#7042) 2020-07-30 09:35:42 +08:00
PP 66e4933d69 Object.getOnwPropertyDescriptors polyfill for baidu browser (#7040) 2020-07-30 09:34:48 +08:00
coulsonwang a43d408a89 fix shadow render texture usage (#7025) 2020-07-24 13:54:55 +08:00
Yun Hsiao Wu 606c5d21fa fix gfx texture info naming (#6998)
* fix gfx texture info naming

* move instanced/bathced buffer out from pass
2020-07-24 11:31:43 +08:00
zheng han de4b2f9d83 update effects (#7022) 2020-07-23 16:17:50 +08:00
pandamicro 40bcf73f60 Remove useless macros (#7016) 2020-07-23 10:32:30 +08:00
pandamicro 43017a05c0 Update effects (#7014) 2020-07-22 15:19:24 +08:00
troublemaker52025 d26ce6b78b Add Shadow map (#6972)
* add easy shadow

* update

* update

* manage pso

* manage psoCI array

* solve a bug

* Optimization

* depth test is not accurate

* Conflict resolution

* Conflict resolution

* solve pr

* optimization

* update

* optimization

* optimization
2020-07-21 18:42:33 +08:00
GengineJS 72f14dc806 [Feature] Adding isPlaying judgement to support the function of gameview (#6990)
* [Modify] the systemevent adds the function of isplaying judgment

* [Feature] the ui adds the function of isplaying judgment

* [Modify] Add GameView environment

* [Optimize] Optimize the gameView conditions

* [Optimize] Complement the gameView environment
2020-07-21 17:36:07 +08:00
Leslie Leigh (李的序) 8f1a22812a Fix Mesh.prototype.readAttribute, Mesh.prototype.copyAttribute (#6988) 2020-07-20 08:44:50 +08:00
lsybblll 83d7133c4c fix audio sometimes not work in wkwebview (#6987)
fix audio wich use player-web sometimes not work in wkwebview

场景:打包web-mobile,在ios的wkwebview中加载。
问题1:预加载音频时,this._context.state为running,但是播放的时候this._context.state为interrupted。
问题2:切到后台再切回,this._context.state为interrupted。
解决方案:如果在播放的时候,如果状态为interrupted,强制resume一下。
相关信息:https://github.com/goldfire/howler.js/pull/928
2020-07-19 16:04:36 +08:00
Yun Hsiao Wu a0d4480f55 command buffer interface update (#6991) 2020-07-17 13:55:58 +08:00