{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10353","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10353/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10353/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10353/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10353","id":56401031,"number":10353,"title":"is this a bug? Sprite3D and Sprite mixture draw have different zorder between 3.4 and 3.4rc1[v3.4]","user":{"login":"flamefox","id":3197993,"avatar_url":"https://avatars.githubusercontent.com/u/3197993?v=3","gravatar_id":"","url":"https://api.github.com/users/flamefox","html_url":"https://github.com/flamefox","followers_url":"https://api.github.com/users/flamefox/followers","following_url":"https://api.github.com/users/flamefox/following{/other_user}","gists_url":"https://api.github.com/users/flamefox/gists{/gist_id}","starred_url":"https://api.github.com/users/flamefox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flamefox/subscriptions","organizations_url":"https://api.github.com/users/flamefox/orgs","repos_url":"https://api.github.com/users/flamefox/repos","events_url":"https://api.github.com/users/flamefox/events{/privacy}","received_events_url":"https://api.github.com/users/flamefox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T16:29:25Z","updated_at":"2015-02-04T02:51:12Z","closed_at":null,"body":"这是3.4的[this is v3.4]\r\n![image](https://cloud.githubusercontent.com/assets/3197993/6024053/609f408e-ac03-11e4-9d37-34d9912f8388.png)\r\n\r\n```c++\r\nauto spr = Sprite::create(\"Images/blocks.png\");\r\n\tspr->setRotation3D(Vec3(-90, 0, 0));\r\n\t_layer3D->addChild(spr);\r\n```\r\n添加顺序绝对在sprite3d之前，\r\nCamera3DTest.cpp的332行之后添加即可\r\nadd after Camera3DTest.cpp line 332.\r\n\r\n\r\n这是3.4rc1的[this is v3.4rc1]\r\n![image](https://cloud.githubusercontent.com/assets/3197993/6024122/ddaab07c-ac03-11e4-82cc-1c6995079b0b.png)\r\n\r\n```c++\r\n\tauto spr = Sprite::create(\"Images/blocks.png\");\r\n\tspr->setPositionY(spr->getContentSize().height / 2);\r\n\tspr->setRotation3D(Vec3(-90, 0, 0));\r\n\t_layer3D->addChild(spr);\r\n```\r\n\r\n因为3d旋转锚点有问题，这里调整了下位置，可以看到角色和精灵的位置完全不一样啊。。我更认同3.4rc1的表现。。"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/72781136","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10353#issuecomment-72781136","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10353","id":72781136,"user":{"login":"lvlonggame","id":5875443,"avatar_url":"https://avatars.githubusercontent.com/u/5875443?v=3","gravatar_id":"","url":"https://api.github.com/users/lvlonggame","html_url":"https://github.com/lvlonggame","followers_url":"https://api.github.com/users/lvlonggame/followers","following_url":"https://api.github.com/users/lvlonggame/following{/other_user}","gists_url":"https://api.github.com/users/lvlonggame/gists{/gist_id}","starred_url":"https://api.github.com/users/lvlonggame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvlonggame/subscriptions","organizations_url":"https://api.github.com/users/lvlonggame/orgs","repos_url":"https://api.github.com/users/lvlonggame/repos","events_url":"https://api.github.com/users/lvlonggame/events{/privacy}","received_events_url":"https://api.github.com/users/lvlonggame/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T02:51:12Z","updated_at":"2015-02-04T02:51:12Z","body":"In 3.4final, you need to set the global-z like this \"spr->setGlobalZOrder(-1)\", after that ,the 3d-sprite will be drawn behind the 2d-sprite, just try it."}}