Cocos2D - moving sprite deformed, flickering

Member
Posts: 60
Joined: 2009.06
Post: #1
this occurs in both the simulator and the device. I have a sprite that is moving, its position being updated base on the physics of the game. The side in the direction of movement appears faded/slightly squished. Is there anything I can do to eliminate this effect? There's also a shimmering effect on the device, where the black edges of the sprite appear to flicker against the mostly white background.
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
The first issue you describe sounds like it's simply the switching speed of the screen you are using. Colors don't change instantly, but take a few milliseconds to fade from one color to the next.

The second issue might be that you need to use premultiplied alpha, but it's hard to say for sure without more information.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Member
Posts: 60
Joined: 2009.06
Post: #3
but I thought the GLblend function were to be overwritten only when the simulator differs from the device. The graphics look the same in my case.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL swapping buffers: flickering kirill 5 4,942 May 11, 2010 11:56 AM
Last Post: Frank C.
  Moving away from xib\nib kendric 2 2,405 Apr 22, 2009 10:16 PM
Last Post: kendric