Commit Graph

60 Commits

Author SHA1 Message Date
jerrywwl 41c453bf19 rename scene-manager to render-scene 2019-01-02 16:15:26 +08:00
jerrywwl 56b53b2298 add a new scene manager 2019-01-02 15:28:51 +08:00
jerrywwl 01a2b85f5b bind vertex attribute location by builtin name 2019-01-02 12:30:42 +08:00
jerrywwl d9a9add5f5 fix crashes 2019-01-02 02:41:52 +08:00
jerrywwl 5744fff652 move cocos/renderer/pipeline to cocos/pipeline 2018-12-29 18:53:08 +08:00
jerrywwl ee936231cf update pipeline code 2018-12-29 18:37:24 +08:00
jerrywwl 7740474a80 add pipeline module 2018-12-29 16:53:59 +08:00
Leslie Leigh 1b89e35dac Small fix (#3688)
* revert user defined script menu

* texture default flipY

* Update texture-2d.js
2018-12-28 14:37:06 +08:00
Leslie Leigh 3ed9edfbc6 phy framework (#3644)
* phy framework

* phy mat

* framework/index.ts

* a node can have more than one collider

* rename physical to physics

* fix

* fix

* support mix ts js

* fix

* fix problems in issue

* fix

* remove RigidBodyType, add DataFlow

* useGravity, freezeRotation, isKinematic

* raycasts

* fit buildin-world raycast options

* add contact material

* lint

* add rigid-body-component.ts

* some improvements

* improvements

* fix bug
2018-12-27 12:03:10 +08:00
Leslie Leigh 05ebe174fb component menu (#3682) 2018-12-26 14:08:52 +08:00
Yun Hsiao Wu 17b5d9bda3 texture cube from texture2d (#3624)
* texture cube from texture2d

* fix format
2018-12-12 19:12:22 +08:00
Yun Hsiao Wu 6cffc59376 fix primitives (#3613)
* fix primitives

* defines & view clear color
2018-12-11 10:43:07 +08:00
Yun Hsiao Wu 1850cabe7b Effect Improvements (#3599)
* default material

* remove effects

* better builtin effects

* builtin primitives

* fix material

* builtin uniforms

* fix percision
2018-12-07 14:38:53 +08:00
Yun Hsiao Wu 64adf77910 Maintain Node EulerAngles & Effect Asset interface (#3574)
* node euler

* transparent sort

* fix node dirty

* fix material onLoaded

* effect asset uuid get

* dont store effectName in material
2018-12-05 17:52:21 +08:00
Yun Hsiao Wu 58e59701ba Unified effect/shader assets (#3559)
* modify render piplien p1

* new effect format

* minor refactor

* mod render pipelien p1

* process queues and stages offline

* choose tech on load

* fix second pass

* modify render pipeline p2

* minor

* stage item default

* support render queue below opaque constant

* fix shadow stage in new render pipeline

* unified shader assets

* unified shader assets: parser

* add technique lod

* unified shader assets: pipeline

* fix some defect

* fix some defect

* fix effect asset cid

* game init

* minor fix
2018-12-03 13:59:36 +08:00
Yun Hsiao Wu 48e9606f0c adaptations for new editor (#3513)
* HideInHierarchy

* resetHasChanged

* dont inherit skybox from RenderableComponents

* transform changed event
2018-11-21 10:52:26 +08:00
Yun Hsiao Wu da885ac40a effect improvements (#3480)
* effect (de)serialization

* more GL params to configure in effect

* uniform tags

* material (de)serialization

* switch to json solution

* effect: pass default value to editor too

* minor fix

* use default (de)serialization procedure

* async builtin init only
2018-11-13 15:12:02 +08:00
Yun Hsiao Wu 51c700f86c fix material (#3470) 2018-11-06 16:11:30 +08:00
zxg0622 96ee66123b change builtin effect load (#3459) 2018-11-05 19:39:13 +08:00
Yun Hsiao Wu 4dd415342b node, light, texture-cube (#3460)
* node, light, texture-cube

* skybox

* flipY issue

* mouse data when locked

* fix init info
2018-11-05 18:51:22 +08:00
Yun Hsiao Wu e540797785 new adaptations for gizmos (#3438)
* gizmos adapt

* working texture cube

* misc fixes

* gizmo lighting
2018-10-31 11:54:58 +08:00
Yun Hsiao Wu 4d99992908 new material json format (#3422)
* auto-generate shader infos

* remove define jsons

* program-lib

* new effect format

* first working version

* structure adjust, enable type dependency extraction
2018-10-26 11:47:06 +08:00
Leslie Leigh 2f7d422519 refactor skinning and animating framework (#3399)
* * add onLoad() callback when asset is loaded;
* discard class SkeletonInstance, refactor skinning and animating framework
* discard interface AnimationResource and it's relevant classes, directly store animation clip data into AnimationClip asset
* add getNodeByPath() API to class Node

* uuid-loader.js

* bug fix

* Make camera-component is available in previewing;
Remove onLoad of mesh asset class, instead do its content in model-component and skinning-model-component's _updateModels method.

* typo

* move _resetTarget() to onLoad
2018-10-25 10:29:07 +08:00
Yun Hsiao Wu da2d334157 gizmos adaptation (#3401)
* raycast adapt

* gizmos: first working version
2018-10-23 15:36:29 +08:00
Yun Hsiao Wu db393560bc refine math lib (#3383) 2018-10-16 11:58:31 +08:00
JoneLau 20de39f85b implement property editing on the editor, as well as running bugs (#3316)
* implement property editing on the editor, as well as running bugs(#3316)

* update
2018-09-28 16:59:37 +08:00
Huabing.Xu 6e61913c03 built in mesh can be rendered (#3310)
* fix error, can not rendering

* model can be rendered

* fix for node api changing

* class rename

* clean up code
2018-09-28 15:10:12 +08:00
Yun Hsiao Wu 88d8345358 fix eulerAngles 2018-09-25 14:48:16 +08:00
pandamicro 60f73c3536 Avoid editor running issue caused by 2d camera (#3301) 2018-09-22 12:24:20 +08:00
Yun Hsiao Wu 948b90e5e9 export decorators in mode 3 (#3293) 2018-09-22 12:16:14 +08:00
Huabing.Xu 7579b554e1 Merge pull request #3288 from dabingnn/fix-error
fix cctouch error
2018-09-20 16:37:43 +08:00
Huabing.Xu f02e0a6f05 fix cctouch error 2018-09-20 16:30:25 +08:00
Yun Hsiao Wu ce920ebaff per-primitive raycast for editor (#3279)
* misc fixes in vmath

better vector random sampling
custom w in vec3.transformMat4

* prepare geometry data in editor mode

* per-primitive raycast for editor

* fix dependencies
2018-09-20 16:30:19 +08:00
pandamicro 6282af03ba Fix editor running issues (#3286) 2018-09-20 11:44:57 +08:00
Huabing.Xu b717d9148f Renderer (#3282)
* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format

* fix debug

* fix run errors

* renderer can clear now
2018-09-19 19:24:16 +08:00
pandamicro 7132e20b84 Fix editor running issues (#3280)
* Fix MutableForwardIterator not found issue

* Fix editor runtime issues

* Update 3d node API usage (need merge API in future)

* Temporarily comment out rendering code (need revert)
2018-09-19 17:33:04 +08:00
Huabing.Xu 164221b5a5 Renderer (#3278)
* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format

* fix debug

* fix run errors
2018-09-19 15:21:06 +08:00
pandamicro e55ec15987 Refactor IdGenerater to IDGenerator (#3276)
* Refactor IdGenerater to IDGenerator

* Rename file and fix issues
2018-09-19 14:14:45 +08:00
pandamicro 16abb6daf8 Fix npm run build:dev (#3275) 2018-09-19 13:58:36 +08:00
pandamicro 77362915c2 Fix editor running issues (partial) (#3274)
* Fix editor running issues (partial)

* Fix core/utils module
2018-09-19 12:23:35 +08:00
Huabing.Xu aa29c19b74 Raw renderable (#3272)
* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format
2018-09-19 11:52:25 +08:00
pandamicro 41194ab9c3 Avoid system absent issue caused by ecs import 2018-09-19 10:21:15 +08:00
pandamicro 7cdbfaf5f8 Fix build issues 2018-09-19 10:20:46 +08:00
zxg0622 423132c567 migrate app to director (#3259) 2018-09-18 14:03:43 +08:00
pandamicro 87577bca2d Merge remote-tracking branch 'fireball/master' into 3d 2018-09-13 16:21:06 +08:00
Leslie Leigh 968a67260c Modify part of asset classes (#3229)
* Modify part of asset classes

* Update import

* Update

* mesh-loader

* Update the import statement of JsonAsset as default import

* Rename files

* Remove old asset and asset-mng

* Copyrights

* Fix some bugs

* Fix imports of vmath classes; Fix errors of decorator property's ts comment notation;Adjust the order of member declarations for better IDE intelligense
2018-09-13 10:30:07 +08:00
Yun Hsiao Wu 243d645760 ES6 scene-graph (#3234)
* ES6 base-node

* ES6 node

* ES6 node activator

* ES6 component scheduler

* ES6 find

* ES6 scene

* ES6 private node

* fix linter globals
2018-09-13 01:29:59 +08:00
pandamicro 6449068c41 ES6 modulize camera and components (#3230)
* Move profiler to 2d (rely on Label)

* Fix class name

* Fix super call and @property()

* ES6 modulize camera and components
2018-09-11 16:09:21 +08:00
pandamicro b90fbe9233 ES6 modulize load-pipeline (#3226)
* Fix super calls

* Improve Asset name access

* ES6 modulize load-pipeline
2018-09-10 19:29:20 +08:00
pandamicro 6b1e031dfb ES6 modulize assets (#3221)
* use babel instead of buble

* ES6 modulize assets
2018-09-09 23:49:25 +08:00