Commit Graph

307 Commits

Author SHA1 Message Date
yinkaile 15e63fc817 fixed label error (#2664)
* fixed label error

* should not render label if string is empty

* improve color render  flag
2018-05-11 11:19:50 +08:00
pandamicro 314b0b55c0 Issue fixes for 2.0 (#2656)
* Generate component _id with uuid in editor

* Fix issues
2018-05-09 18:10:04 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
pandamicro ec9a718569 Issue fixes for 2.0 (#2650)
* Upgrade render engine

* Fix sprite rendering issue while loading sprite frame

* Fix mesh buffer initialization issue

* Fix color fromHEX

* Remove ;
2018-05-09 10:05:23 +08:00
yinkaile e4325577ad Next vertex format (#2645)
* restructure vertex format

* update render-engine.js

* refine vertex format

* refine sprite vertex property name
2018-05-08 21:51:27 +08:00
pandamicro 26de29f489 Upgrade renderer.js to 1.8.3 (#2642) 2018-05-08 10:34:28 +08:00
pandamicro 1034635917 Upgrade render-engine (#2638) 2018-05-07 17:56:14 +08:00
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47:48 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 396154d41b Fix issues (#2608)
* Add missed vec3 APIs

* Fix Node property setter issue

* Fix scene dirty sync issue

* Fix setWorldRot not setting dirty issue
2018-04-27 18:00:48 +08:00
pandamicro 7c94a5f771 Fix Label issues (#2594)
* Fix bmfont anchor point issue

* Fix 0 is ignored as label.string

* Fix doc
2018-04-25 12:36:29 +08:00
pandamicro 7b98f49cd6 Fix updateWorldVerts based on worldMatUpdated and other issues (#2593)
* Fix updateWorldVerts based on worldMatUpdated

* Fix issues
2018-04-24 22:23:18 +08:00
pandamicro c80c8328b4 Avoid dynamic atlas affect hard edge textures (#2586) 2018-04-24 17:18:03 +08:00
pandamicro ef5b172506 Fix scene mat dirty not updated issue and improve logic 2018-04-24 11:21:42 +08:00
pandamicro 7997b2c6a8 Remove _syncWorldDirty for recursive approach (#2582)
* Fix render data issue for bar filled sprite

* Remove _syncWorldDirty for recursive approach
2018-04-23 18:26:06 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
pandamicro 917d4a9bc7 Merge pull request #2556 from pandamicro/optimize
Support build native with native renderer option
2018-04-19 11:44:18 +08:00
pandamicro d87e146585 Enable dynamic atlas 2018-04-19 10:30:15 +08:00
pandamicro 685e1cc487 Update comment to english 2018-04-19 10:30:15 +08:00
yinkaile 58c87a8d58 fixed issues 2018-04-18 15:49:44 +08:00
pandamicro d6f15a3e77 Support build native with native renderer option 2018-04-18 12:36:46 +08:00
yinkaile 2ed79ae029 minor fixed 2018-04-18 11:53:22 +08:00
yinkaile abc4b0b5da optimize dynamic atlas 2018-04-18 11:36:31 +08:00
yinkaile b39a949aa3 minor fixed 2018-04-17 21:32:13 +08:00
yinkaile d07dbc103f optimize dynamic atlas 2018-04-17 18:48:30 +08:00
yinkaile 80af86f262 Merge branch 'optimize' of github.com:fireball-x/engine into optimize 2018-04-17 11:22:05 +08:00
yinkaile e7685fe44e optimize dynamic atlas 2018-04-17 10:58:23 +08:00
pandamicro b315831f8f Fix renderer.config.addStage issue in web 2018-04-17 10:22:23 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
pandamicro da2506bb6f Update render-engine 2018-04-16 16:26:25 +08:00
yinkaile 0d1d3f7b34 minor fixed 2018-04-16 14:50:36 +08:00
yinkaile fec94231c2 refine dynamic atlas 2018-04-16 14:43:23 +08:00
yinkaile d6d6f35c42 Merge branch 'optimize' of github.com:fireball-x/engine into optimize
# Conflicts:
#	cocos2d/core/renderer/assemblers/sprite/index.js
2018-04-16 14:28:00 +08:00
pandamicro a6692d6ed1 Remove assembler check 2018-04-15 19:11:05 +08:00
pandamicro 1230fe6d4d Support component direct assemblers 2018-04-15 19:07:56 +08:00
yinkaile 4ea054b46c support dynamic atlas packer 2018-04-15 18:08:55 +08:00
pandamicro aceac05710 Minor code arrangement 2018-04-14 23:37:01 +08:00
pandamicro ac55b9d5ed Merge pull request #2537 from pandamicro/optimize
Fix render component chain not updated for one child
2018-04-13 22:56:56 +08:00
pandamicro 607d7b2228 Improve render component disable performance 2018-04-13 22:53:33 +08:00
yinkaile 38ab4811fb optimize bufferData 2018-04-13 17:52:21 +08:00
pandamicro 8389f0a833 No world vertex cache for simple sprite 2018-04-13 15:59:26 +08:00
pandamicro 6e8637d623 Improve transform for 2d and while loop 2018-04-12 21:07:08 +08:00
pandamicro ecd8015ec2 Fix _updateWorldMatrix issue 2018-04-12 19:26:05 +08:00
pandamicro a0091761da Sync world mat dirty to ensure mat dirty flag reliable 2018-04-12 11:37:52 +08:00
pandamicro c5b586c5d7 Fix old parent chain issue 2018-04-11 20:10:24 +08:00
pandamicro 6d0872f1bf Small improvements 2018-04-11 14:59:39 +08:00
pandamicro 3dcaf19376 Visit render component with chain instead of walking scene graph 2018-04-11 14:16:36 +08:00
pandamicro 5823a23065 Add transform system to reduce matrix update overhead
Removed world-matrix-changed event, event system is too slow
2018-04-11 14:06:27 +08:00
yinkaile 4d8e97a4a9 support mesh sprite 2018-04-10 13:58:31 +08:00