It's also worth mentioning that the problem appears to happen rather sporadically, i.e. It's worth mentioning the problem appears to go away if running on the iOS simulator or in Win32, hopefully that may help to fix it. I have also tested it on an Android device (Samsung Galaxy Tab 4 10.1) and it still happens. Then move the camera every frame on the y-axis, I moved it up (+0.1f). It should be fairly simple to reproduce, export a texture pack (sprite atlas) with a few images. I'm 99% it's something going wrong in the Cocos2D-x engine. I've tried every option in TexturePacker and I'm convinced that's not the problem. There is a visible offset of the spriteframe and I know the rect is changing because I can see the first line of pixels from the frame above that particular frame in the sprite atlas is getting drawn. It doesn't happen consistently every frame, but maybe every 4-5 frames. If I move my Cocos2d::Camera (orthographic) in the Y axis the rect for each sprite frame appears to be changing its offset 1 by pixel. I am using a sprite atlas exported from TexturePacker. I encountered this problem when I started cutting the level in my game in to smaller peices.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |