Commit Graph

37 Commits

Author SHA1 Message Date
zhuxuguang 7a1c1436cc add submodel 2019-01-17 17:30:07 +08:00
Yun Hsiao Wu aa6cd0f636 type for renderable comp 2019-01-16 17:32:06 +08:00
Yun Hsiao Wu fc05fdcf47 minor 2019-01-14 18:05:32 +08:00
Yun Hsiao Wu 0855268766 pass: rebuild with overrides 2019-01-14 17:11:03 +08:00
Yun Hsiao Wu 4110f91946 editor adapt 2019-01-11 16:53:27 +08:00
Yun Hsiao Wu 852d4ec1a6 node from compoennt 2019-01-10 20:37:37 +08:00
Yun Hsiao Wu f099e500c3 node & camera refactor 2019-01-10 20:07:22 +08:00
zhuxuguang 224c842a8b adapt model to new mesh 2019-01-10 18:12:21 +08:00
zhuxuguang 324914df02 fix model bug 2019-01-10 14:32:10 +08:00
zhuxuguang 7c6d60c60c fix some defects 2019-01-09 20:56:57 +08:00
zhuxuguang 6172f7d23b fix model 2019-01-08 19:58:52 +08:00
zhuxuguang 6af7b4cf74 adapt model 2019-01-08 17:27:06 +08:00
zhuxuguang 08a0cf761c adapt render scene in components 2019-01-02 17:52:35 +08:00
Yun Hsiao Wu ec9bf142a1 builtin defines (#3633) 2018-12-14 15:51:28 +08:00
Yun Hsiao Wu 2dc989e70e fix defines (#3618)
* fix defines

* fix material copy
2018-12-11 16:19:21 +08:00
Leslie Leigh d69ab0b3ee remove hack (#3614) 2018-12-10 17:02:30 +08:00
Leslie Leigh 5df8df4342 temp hack (#3608) 2018-12-07 16:59:51 +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
Leslie Leigh 2c7e120d14 default material use phone effect;fix skinning model bug (#3571)
* 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

* default material use phone effect;fix skinning model bug
2018-11-29 18:23:04 +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
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 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
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
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
zxg0622 7aa9629b97 support base component (#3377) 2018-10-22 13:21:14 +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
zxg0622 8fda3ce34c add material instance (#3337) 2018-10-08 17:09:33 +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
JoneLau 9a370d460d decorator component (#3277) (#3277) 2018-09-20 16:29:22 +08:00
Huabing.Xu 343023ee68 update to lastest 3D engine 2018-09-11 16:42:03 +08:00
Huabing.Xu 0f23cba394 add 3d files 2018-09-04 16:02:46 +08:00