We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Refactor #3650: Improving New Renderer
Manual creation of TextureAtlas not working
Refactor #3650: Improving New Renderer
Manual creation of TextureAtlas not working
- Assignee changed from dabingnn to zhangbin@cocos2d-x.org
- File v2.2.2.jpg added
- File v3.x.jpg added
dabingnn wrote:
Now the result can be rendered, but it is different with v2.x
Yep, the appearance of TextureAtlas is depends on the GL status when it's rendered. Because it doesn't setup GL status itself.
Now the effect of the test case in TestCpp is related with the CCAtlasNode's GL status. And the CCAtlasNode's GL status in v3.x is different with the one in v2.x. So the result of the test case in v3.x is different with v2.x.
PS:
I get the result by my test both on v2.2.2 & v3.0-current:
1. New a project.
2. Add a TextureAtlas into the scene.
3. Remove other nodes.
The effect in v2.2.2 is:
And the effect in v3.x is:
If the parameter of method Director::setDisplayStats() is set to false, there is nothing was rendered.
The FPS is rendered with AtlasNode. So, I get the result :
In the test case of TestCpp, the effect of TextureAtlas is affected by the AtlasNode's GL status.
- File v2.2.2.jpg added
- File v3.x.jpg added
dabingnn wrote:
Now the result can be rendered, but it is different with v2.x
Yep, the appearance of TextureAtlas is depends on the GL status when it's rendered. Because it doesn't setup GL status itself.
Now the effect of the test case in TestCpp is related with the CCAtlasNode's GL status. And the CCAtlasNode's GL status in v3.x is different with the one in v2.x. So the result of the test case in v3.x is different with v2.x.
PS:
I get the result by my test both on v2.2.2 & v3.0-current:
1. New a project.
2. Add a TextureAtlas into the scene.
3. Remove other nodes.
The effect in v2.2.2 is:
!v2.2.2.jpg!
And the effect in v3.x is:
!v3.x.jpg!
If the parameter of method Director::setDisplayStats() is set to false, there is nothing was rendered.
The FPS is rendered with AtlasNode. So, I get the result :
In the test case of TestCpp, the effect of TextureAtlas is affected by the AtlasNode's GL status.
- File deleted (
v2.2.2.jpg)
- File deleted (
v3.x.jpg)
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset commit:9f46678c345e2fec1fa564366079bd9703e18ec6.
Status: | Closed | |
---|---|---|
Start date: | 2014-01-13 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | all | |
Target version: | 3.0-rc0 |
v2.2.2.jpg (288.4 kB) zhangbin@cocos2d-x.org, 2014-02-28 02:23
v3.x.jpg (123.6 kB) zhangbin@cocos2d-x.org, 2014-02-28 02:23