Commit Graph

21 Commits

Author SHA1 Message Date
ChiaNing 408cc6f930 Copyright Notice format change (#4665) 2019-06-21 09:34:05 +08:00
Santy-Wang 0b9abf671a support asyncLoadAsset (#4388)
* support asyncLoadAsset(#486)

* support asyncLoadAsset in particle system
2019-05-11 22:54:05 +08:00
jerrywwl 0aea0d54ad fix merge mesh references 2019-04-12 16:49:12 +08:00
Leslie Leigh fdaaf22ea4 remove unused files (#4118)
* remove unused files

* typing
2019-03-30 18:18:08 +08:00
Leslie 14fd6888c6 restruct mesh 2019-01-10 17:26:58 +08:00
Leslie 06797ddb05 rename; tslint 2019-01-10 17:26:57 +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
Yun Hsiao Wu 367ae4ad3c render to texture (#3662) 2018-12-21 14:16:24 +08:00
Leslie Leigh 030453cb9e rename package (#3535)
* impl texture2d using imageasset

* texture-cube

* fix issue comment

* remove initWithElement and initWithData; fix issue comment

* define TextureUpdateOpts in gfx/texture-2d.js

* optimize some `new ImageAsset`; optimize image-asset; add updateMipmaps() to Texture2D

* use onLoaded, remove hack

* rename package
2018-11-20 17:42:49 +08:00
Leslie Leigh 4da594d906 impl texture2d using imageasset (#3488)
* impl texture2d using imageasset

* texture-cube

* fix issue comment

* remove initWithElement and initWithData; fix issue comment

* define TextureUpdateOpts in gfx/texture-2d.js

* optimize some `new ImageAsset`; optimize image-asset; add updateMipmaps() to Texture2D

* use onLoaded, remove hack
2018-11-14 22:29:37 +08:00
Leslie Leigh 3f972a4d3c define mesh its own format; improve the robust of gltf-utils; now the standard gltf can be imported (#3435)
* uuid-loader.js

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

* define mesh its own format; improve the robust of gltf-utils; now the standard gltf can be imported

* typo

* bugfix

* material serialization;gltf material import; fix animation component bug

* cinnebt

* remove skeleton root

* small fix

* bug fix

* remove the hack materials

* small fix
2018-11-05 17:48:24 +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
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
Yun Hsiao Wu 24e099885f proper IA data extraction (#3323) 2018-09-28 18:46:58 +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
Leslie Leigh a1ed40ad47 support original gltf animation;use creator's texture2d instead (#3265)
* 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
2018-09-18 17:14:35 +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
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
Huabing.Xu 0f23cba394 add 3d files 2018-09-04 16:02:46 +08:00