Commit Graph

83 Commits

Author SHA1 Message Date
Yun Hsiao Wu 3bedccdeaa fix skinning model type when not enabled immediately (#6542)
* fix skinning model type update

* unbatch util

* camera property display order

* fix model type order
2020-04-14 12:47:58 +08:00
Yun Hsiao Wu 34686586b1 update skybox effect (#6509) 2020-04-08 16:33:13 +08:00
Yun Hsiao Wu d9ebca6ed7 should update FOV when set FOV axis (#6503) 2020-04-07 18:13:49 +08:00
Yun Hsiao Wu 89a43b50e8 camera FOV axis (#6501)
* fov axis

* deprecation
2020-04-07 17:49:52 +08:00
Yun Hsiao Wu 69559edb79 misc skinning model fixes (#6497)
* disable the source node after static batching

* disable the components instead

* fix joint texture release
2020-04-07 16:51:04 +08:00
Yun Hsiao Wu 9925844829 better docs (#6496) 2020-04-07 11:36:12 +08:00
Yun Hsiao Wu 5267f8bf68 simpler animation clip hash (#6479) 2020-04-02 23:03:13 +08:00
Yun Hsiao Wu d8c16d72fb better anim data prep (#6460) 2020-04-01 12:15:51 +08:00
黄森斌 5aaae03612 components add @help for editor show document url (#6428) 2020-03-26 18:42:08 +08:00
Leslie Leigh (李的序) 14982d340a Morph optimize (#6410) 2020-03-25 12:09:34 +08:00
Leslie Leigh (李的序) 421ed0fffb Morph target (#6400) 2020-03-23 23:40:57 +08:00
jiaxin.lai 216cb739b4 fix set of color & clear color (#6383)
* fix set of color & clear color

* add protect

* tweaks
2020-03-20 19:16:42 +08:00
Yun Hsiao Wu df6b7b5e60 better joint texture layout (#6372)
* better joint texture layout

* still need to update world matrix when batching

* shouldn't update instancing attributes for implant psos

* fix copy framebuffer to buffer

* fix texture multiple upload

* wording
2020-03-20 18:26:29 +08:00
Myway 458111b77c Support Lightmap options in light and model and small tweeks (#6366)
* 增加修改lightmap接口

* light-component增加bake参数

* 修改LightBakeType名字

* 新增lightmap属性设置
2020-03-19 15:46:50 +08:00
jiaxin.lai 4aac1be3f6 add ray_mesh to intersect (#6317)
* stash

* add ray_mesh

* stash

* ceche geometric info at runtime

* add ray_mesh & ray_model

* remove redundant data

* tweaks

* renaming
2020-03-17 16:54:57 +08:00
Myway d049b259f2 Lightmap and LightComponent refine (#6342)
* 增加修改lightmap接口

* light-component增加bake参数

* 修改LightBakeType名字
2020-03-17 16:19:45 +08:00
Yun Hsiao Wu a07ddb4bb1 Frame ID should be synced regardless of dirty flag (#6321) 2020-03-12 19:17:15 +08:00
Yun Hsiao Wu 45d182308b GPU instancing support (#6300)
* instancing works

* misc opts

* material.setproperty typing

* baked skinning model instancing works

* fix isNormalized

* custom chunk rules injection framework

* profiler instance count

* seperate custom joint textures

* fix joint mapped buffers

* WebGL 1 doesn't allow int attributes

* should rebuild instances after pso change

* set instance attribute

* constants naming
2020-03-12 10:21:19 +08:00
Leslie Leigh (李的序) 284aa38d25 Build time constants (#6256)
* consts

* Bump @cocos/build-engine version

* Fix

* Upload @cocos/build-engine

* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00
Yun Hsiao Wu 2d431f7ec4 SubModel level joint data (#6260)
* submodel joints data

* map VB joint indices on demand

* fix joint mapping

* fix shadows

* minor
2020-03-09 21:45:37 +08:00
Yun Hsiao Wu edd1189518 flexible skinning model (#6131)
* flexible skinning model

* skinning shader works on non-skinning models

* more opts

* UBO default values

* more opts

* update default joint

* more opts

* more opts

* unified skeletal animation component

* misc opts

* fix batched skinning model

* fix mesh interfaces

* texture buffer pool alignment

* move switch to skeletal animation component

* in-shader joint offset

* minor
2020-02-26 11:32:38 +08:00
pandamicro b44dcc1115 Merge pull request #6220 from cocos-creator/3d-v1.0.4
Merge 3d v1.0.4
2020-02-25 10:12:28 +08:00
Yun Hsiao Wu c1c1a82946 API docs (#6174)
* API docs

* wording & tooltip

* update material
2020-02-21 10:20:29 +08:00
jiaxin.lai 576be92838 rename geom-utils to geometry (#6161) 2020-02-13 10:08:57 +08:00
ChiaNing 5f2f153ebc api doc update (#6130) 2020-02-08 23:44:36 +08:00
JoneLau a7a8cdbd05 [BUG] support api that have not yet been removed (#6097) 2020-01-14 15:53:52 +08:00
Yun Hsiao Wu e75b394008 fix convertToUINode (#6085) 2020-01-12 15:09:32 +08:00
zxg0622 7e26112852 fix modelcomponent attach scene bug (#6056) 2020-01-08 15:50:14 +08:00
Leslie Leigh (李的序) bdcc94bd33 Circular reference (#6050) 2020-01-08 12:38:40 +08:00
JoneLau ea700afb50 fix coordinate replace function (#6025)
save
2020-01-04 11:22:14 +08:00
JoneLau 845871214c fix circle code (#5991) 2019-12-28 14:06:22 +08:00
zxg0622 395ab9fb41 fix some bug (#5974) 2019-12-26 16:59:47 +08:00
zxg0622 39a7fbdd89 refactor material instance (#5910)
* refactor material instance

* revert setMaterial signature

* fix some defects

* material instance using inheritance (#5)

* material instance using inheritance

* renderable component

* more fixes (#6)

* more fixes

* minor

* fix some defects

* fix batching (#7)

* better format (#8)

* fix

* fix batching & skybox (#9)

* fix skinning (#10)

* change sharedMaterial decorator

* add modelcomponent property deprecated

Co-authored-by: Yun Hsiao Wu <inheritorofgalaxy@gmail.com>
2019-12-25 17:41:04 +08:00
Yun Hsiao Wu 3513319c1e copyBuffersToTexture using ArrayBufferViews (#5945) 2019-12-23 16:10:46 +08:00
JoneLau 12aca7d4a4 convert coordinate from 3d camera to ui (#5896) 2019-12-19 15:05:37 +08:00
Leslie Leigh (李的序) 86636442cf Kill INode & IBaseNode (#5893)
* Remove INode, IBaseNode

* Fix

* Fix types error

* Update
2019-12-19 14:17:14 +08:00
pandamicro 3bffb3f48a Merge remote-tracking branch 'origin/3d' into 3d-v1.0.2
# Conflicts:
#	cocos/core/pipeline/render-view.ts
2019-12-12 16:59:17 +08:00
Yun Hsiao Wu d02b23eb71 fix skinning model & model comp onEnable (#5873) 2019-12-09 19:53:52 +08:00
Yun Hsiao Wu 9d49b80cca misc improve (#5870) 2019-12-09 18:27:28 +08:00
zxg0622 1c7c5f4d75 fix renderpipeline bug & some defects (#5843) 2019-12-05 15:22:52 +08:00
pandamicro 802d7a9b49 Merge branch '3d-v1.0.2' into 3d
# Conflicts:
#	cocos/core/components/ui-base/canvas-component.ts
#	cocos/core/components/ui-base/ui-render-component.ts
#	cocos/core/game.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/render-flow.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/root.ts
#	cocos/core/scene-graph/base-node.ts
2019-12-03 19:23:26 +08:00
zheng han 096c949807 change animatable property from sharedMaterials to materials (#5789) 2019-12-02 10:36:02 +08:00
Yun Hsiao Wu f47cea1422 better playground framework (#5805)
* better playground framework

* remove redundant memops

* minor

* linter

* restore memops
2019-11-29 13:26:34 +08:00
Yun Hsiao Wu f18becae28 fix main light (#5793)
* fix main light

* linter
2019-11-27 16:53:22 +08:00
zxg0622 53ed7da2db fix render scene error (#5790) 2019-11-26 15:04:16 +08:00
zxg0622 cda23e5c14 refactor model allocation logic (#5689)
* refactor model allocation logic

* fix ts null check

* fix particle system decorator
2019-11-23 18:28:28 +08:00
ChiaNing b7606ef2fc node event TRS remove (#5750)
* node event TRS remove

* transformBit  rename & deprecated

* notice update
2019-11-20 16:07:50 +08:00
Yun Hsiao Wu f7f6193f26 skinning model bounds (#5743)
* first try: skeleton bounds with scaling

* second try: bone space per joint bounds

* rendering data pool manager

* shadow culling

* better identity joint texture handle allocation

* fix batched skinning model material lost

after quitting animation editor

* unify local ubo binding
2019-11-19 18:13:49 +08:00
pandamicro 27cb457039 Merge pull request #5737 from cocos-creator/3d-v1.0.1
Merge 3d v1.0.1
2019-11-14 14:20:13 +08:00
Yun Hsiao Wu 1ae2069a7a reupload clip after model destroyed (#5716) 2019-11-08 17:38:57 +08:00