We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CCArmature performance is different between 2.1.5 and 2.2.0
CCArmature performance is different between 2.1.5 and 2.2.0
- Assignee deleted (
zhangbin@cocos2d-x.org)
I have tested in cocos2d-x 2.2.0 and ran testcpp, but mine is smooth too.
Did you modify it or do something else?
My armature files are built by DragonBones 2.0, not CocoStudio.
Please compare the testcpp in v2.2.0 and v2.1.5, they are different.
There are two screen capture movies for TestCpp(v2.2.0 and v2.1.5), the files are a bit big, please wait a minute.
Please notice the tail end, the motion of arms and legs.
I don’t modify anything in this test.
For v2.2.0 testcpp/ExtensionsTest/CocoStudioArmatureTest
For v2.1.5 testcpp/ExtensionsTest/ArmatureTest
ok i see that
- Assignee set to jyinkailej
- Priority changed from Urgent to Normal
- Target version set to 3.0-alpha1
It’s not the program error.
Just the changed Dragon .fla error.
And the Cyborg.fla also be changed, you cann’t use the Cyborg.fla from DragonBone site
If this isn’t program error, why the cocos2d-x 2.1.5 display corrected, and the official TestCPP of cocos2d-x 2.2.0 display incorrect?
I should use which fla file? Or I must modify a fla file to match the cocos2d-x 2.2.0? HOW?
Because i have modified the .xml file.
I have updated the Dragon .xml file. Waiting for reviewing.
- File cyborg.zip added
Tens of minutes ago, I saw a new pull request: [[https://github.com/cocos2d/cocos2d-x/pull/3944]].
Is that pull request for this bug?
I found some modification in Dragon.xml. The version of skeleton
tag update to 2.2, and it add a parent
key in b
tag.
My Cyborg armature data is generated by (DragonBone2.2.2 for cocos2d-x), this is a tool that I modified for match to cocos2d-x 2.1.x, it can auto-generate a PLIST file when export png+xml. Therefore, I believe my Cyborg armature data is new and it can match to DragonBones 2.2.
The tool(DragonBone2.2.2 for cocos2d-x) is here: [[http://zengrong.net/post/1915.htm]]
I uploaded a cyborg.zip file, this file was generated by DragonBone2.2.2 for cocos2d-x. The file format is as same as the amended Dragon.xml. It also include parent
key in b
, and pX
/ pY
in d
tag.
This armature file(cyborg.zip) is correct in cocos2d-x 2.1.5, and is incorrect in cocos2d-x 2.2. It looks like description above.
If this tool can’t generate normal aramture data for cocos2d-x 2.2, then can I use which tool to generate the new .xml file?
Must I modify it by manual operation?
You cann’t make .fla like before.
In origin .fla the last frame and the first frame is not the same. And some movement only have two frames.
It may cause some problem.
You can find the changed .fla from http://www.cocoachina.com/bbs/read.php?tid=161916.
- File fla.zip added
Upload a fla.zip here. You can find the modified project here
1.I think the Dragon in the DragonBone Test moves not normally is a bug of DragonBonePanel.
I just remove the parent and child relationship of this Dragon in the DragonBonePanel, then export data for cocos2d-x.
And as you see, the tail end, arms and legs is strange.
So i just test the original .fla, and it looks good.
2.Original .fla makes animation like : 1.png .
A movement just has two frames, it likes only going but not coming back.
You need to make the first frame and the last frame the same to make this animation fluency and normal.
like : 2.png.
You can find the modified project in the attachment fla.zip.
Status: | Closed | |
---|---|---|
Start date: | 2013-10-07 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 0% |
|
Category: | all | |
Target version: | 3.0-alpha1 |
Today I update my Cocos2d-x from 2.1.5 to 2.2.0, I found the CCArmature animation is very different in 2.2.0.
My armature in 2.1.5
The running is smooth, and the action of arms and gun looks unaffected.
The same armature in 2.2.0
The running has a little pause frequently, and the action of arms and gun looks very rigid.
I observed the cocos2d-x 2.2.0 move the
extension/CCArmature
package toextensions/CocoStudio/Armatue
, and modify a lot of codes, is this cause that performance looks different?Or is this a bug?
cyborg.zip - The Cyborg armature data (54.5 kB) zrongzrong@gmail.com, 2013-10-15 09:53
fla.zip (227.1 kB) jyinkailej, 2013-10-17 02:39
1.png (5.1 kB) jyinkailej, 2013-11-01 06:47
2.png (7.6 kB) jyinkailej, 2013-11-01 06:47