We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Specific picture drawn with "ping-pong" CCRenderTexture(s) “drifts” after each time of rendering
Specific picture drawn with "ping-pong" CCRenderTexture(s) “drifts” after each time of rendering
Bug #3365 [Closed]
The original picture:
Final content of render texture:
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8277
Status: | Closed | |
---|---|---|
Start date: | 2013-12-09 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | ios | |
Target version: | - |
Found the problem while working on an shader program for some special effects. The original image was drawn to one CCRenderTexture renderTexture0 and then the content of renderTexture0 was drawn into renderTexture1. And then draw back from renderTexture1 to renderTexture0, and over and over again…, just like a ping-pong buffer.
It is expected that the final content of renderTextureX should be the same with original image, but actually it makes some offset from the original image.What stranger, is that it seems to happen only on some specific picture(s), while most other pictures are OK.
The source code is reduced to an useless but enough-to-show-issue version, using only cocos2d-x build-in shader programs. And the picture with problem is also posted below.
[]()
[]()
pulsar0.png - Original picture (45.1 kB) godspeed1024, 2013-12-09 08:56
bug0.png - Final content of render texture (49.5 kB) godspeed1024, 2013-12-09 08:56