Commit Graph

6971 Commits

Author SHA1 Message Date
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
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
zxg0622 d37e6340cd ajust material reference (#3471) 2018-11-07 10:48:15 +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 1549912c48 fix parseType (#3466) 2018-11-05 18:08:24 +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
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
zxg0622 0931e808c7 fix get material instance bug (#3444) 2018-10-31 10:00:52 +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
Yun Hsiao Wu 076951e3d9 node field serialization (#3426) 2018-10-26 09:16:18 +08:00
zxg0622 413ba0a9b7 fix modelComp default material bug (#3429) 2018-10-25 18:22:59 +08:00
zxg0622 37041dc704 modify material structure (#3424) 2018-10-25 15:58:45 +08:00
Huabing.Xu 60d1247543 camera component do not execute in editor mode (#3425) 2018-10-25 15:46:30 +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
Huabing.Xu 8f056df535 add parseType for effect (#3413) 2018-10-23 18:04:34 +08:00
Yun Hsiao Wu da2d334157 gizmos adaptation (#3401)
* raycast adapt

* gizmos: first working version
2018-10-23 15:36:29 +08:00
Huabing.Xu 70bbf741a4 raw version of serialize of deserialize of material (#3406)
* raw version of serialize of deserialize of material

* adjust class for material serialization generation

* add registerEffect function
2018-10-23 14:30:11 +08:00
zxg0622 7aa9629b97 support base component (#3377) 2018-10-22 13:21:14 +08:00
Yun Hsiao Wu db393560bc refine math lib (#3383) 2018-10-16 11:58:31 +08:00
Yun Hsiao Wu 32000e1e8f fix camera transform in ortho mode (#3374)
* utils in scene should be static

* fix camera transform in ortho mode
2018-10-15 10:31:56 +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
Yun Hsiao Wu 8dda58f16b fix shader & effect build (#3352)
* restore effect

* minor fix

* fix shader & effect build
2018-10-09 11:57:22 +08:00
zxg0622 8fda3ce34c add material instance (#3337) 2018-10-08 17:09:33 +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
Huabing.Xu 7a2d764ccf temper hack make editor works (#3344) 2018-09-30 09:25:42 +08:00
Yun Hsiao Wu e399a32524 serialize effect (#3309) 2018-09-29 16:34:24 +08:00
Yun Hsiao Wu 24e099885f proper IA data extraction (#3323) 2018-09-28 18:46:58 +08:00
JoneLau 7b5065b2f2 fixing missing values causes the playground to run out (#3338) 2018-09-28 18:04:09 +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
Huabing.Xu b7c6a5bee5 Merge pull request #3304 from YunHsiao/3d
eulerAngles support
2018-09-26 15:03:57 +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
Yun Hsiao Wu 4ebe2f8ea7 follow 2d convention on transform APIs (#3291) 2018-09-21 11:05:13 +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
JoneLau 9a370d460d decorator component (#3277) (#3277) 2018-09-20 16:29:22 +08:00
pandamicro 6282af03ba Fix editor running issues (#3286) 2018-09-20 11:44:57 +08:00
pandamicro ca5fdc3168 Add 3d Node.isNode (#3283) 2018-09-19 19:27:09 +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