Commit Graph

39 Commits

Author SHA1 Message Date
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
Yun Hsiao Wu 367ae4ad3c render to texture (#3662) 2018-12-21 14:16:24 +08:00
Yun Hsiao Wu 04164f2767 fix node transform update (#3661) 2018-12-20 19:12:08 +08:00
Yun Hsiao Wu 1bbed51f26 fix transform & euler 2018-12-20 09:50:26 +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 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 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 12ef67f6b4 area lighted gizmos (#3451)
* area lighted gizmos

* better effect parsing

* logical OR in shader info extraction
2018-11-02 11:06:53 +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 076951e3d9 node field serialization (#3426) 2018-10-26 09:16:18 +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 1943c9eb6d adaptation for editor camera (#3371)
* fix min build

* expose some useful utils

* fix color & node quat
2018-10-11 16:57:08 +08:00
Leslie Leigh 913c9013eb mesh rendering and skinning mesh rendering (#3362)
* 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

* Transplant loader of animation clip; Unify export statement style according rules

* Skeleton asset and SkeletonInstance class

* Rename

* Fix material annotation

* fix import path

* fix annotation error

* Rename update to flush, fix index.js files.

* support original gltf animation;use creator's texture2d instead

* Fix build issues

* Avoid system absent issue caused by ecs import

* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format

* Fix core/utils module

* Rename file and fix issues

* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format

* fix debug

* fix run errors

* 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)

* 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

* 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

* fix cctouch error

* fix error, can not rendering

* model can be rendered

* fix for node api changing

* class rename

* clean up code

* add name to ccclass decorators; temporarily comment out vb/ib buffer creation in gltf-loader;temporarily modification of base-node.js

* Open commented vb/ib creation

* make gltf-asset itself a variant of json

* fix import bugs

* update

* import fix

* node transform api

* mesh renderer and skinning mesh renderer

* bug fix

* bug fix
2018-10-10 13:05:31 +08:00
Leslie Leigh cf213ebdd7 changes to run in editor (#3311)
* add name to ccclass decorators; temporarily comment out vb/ib buffer creation in gltf-loader;temporarily modification of base-node.js

* Open commented vb/ib creation

* make gltf-asset itself a variant of json

* fix import bugs

* import fix

* node transform api
2018-10-08 11:52:14 +08:00
JoneLau 0c86fddb13 Transfer the reference to 3d vmath in node to 2d valueType(#3345) (#3345) 2018-09-30 10:00:55 +08:00
Yun Hsiao Wu e399a32524 serialize effect (#3309) 2018-09-29 16:34:24 +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
Yun Hsiao Wu 948b90e5e9 export decorators in mode 3 (#3293) 2018-09-22 12:16:14 +08:00
Yun Hsiao Wu 4ebe2f8ea7 follow 2d convention on transform APIs (#3291) 2018-09-21 11:05:13 +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 ca5fdc3168 Add 3d Node.isNode (#3283) 2018-09-19 19:27:09 +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
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 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 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
Leslie Leigh f05972489c Skeleton asset and SkeletonInstance class (#3251)
* 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

* Transplant loader of animation clip; Unify export statement style according rules

* Skeleton asset and SkeletonInstance class

* Rename

* Fix material annotation

* fix import path

* fix annotation error

* Rename update to flush, fix index.js files.
2018-09-17 17:56:21 +08:00
Yun Hsiao Wu f26e1db2e6 scene-graph migration (#3250)
* put 2d node aside

* migrate 3d node
2018-09-17 14:43:12 +08:00
pandamicro 87577bca2d Merge remote-tracking branch 'fireball/master' into 3d 2018-09-13 16:21:06 +08:00
pandamicro 1dab0a28ad Remove useless ccclass decorator (#3239) 2018-09-13 01:35: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 75427ce09a ES6 modulize core/value-types (#3208)
* Move value types to core

* ES6 modulize core/value-types

* Fix @constructor
2018-09-06 16:56:10 +08:00
pandamicro 2e65ac93f0 ES6 modulize core/utils (#3204) 2018-09-06 14:07:49 +08:00
pandamicro f1d75e94d1 Merge branch 'v2.0-release' into v2-3d 2018-09-03 00:04:11 +08:00
pandamicro 6285147014 Reorganize modules 2018-08-30 23:10:27 +08:00