Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Game Development, strange image effect while moving camera

I'm developing Side Scroll 2D Game, using AndEngine

Game image

I'm using their SVG extension (I'm using vector graphic)

But I discovered strange and ugly effect, while moving my player (while camera is chasing player exactly, means while camera is changing its position)

Images of my sprites looks just different, they are like blurred or there is effect like those images would be moving (not changing their possition, just jittery effect, really hard to explain and call this effect properly) Hopefully this image may explain it a bit:

Game image 2

Its more or less, how does it look in the game, where:

a) "FIRST" image is showing square, while player is moving (CAMERA isn't) image looks as it should

b) "SECOND" the same image, but with this strange effect "which looks like image moving/blurring during camera moving [chasing player])

Friend of mine told me that it might be hardware problem:

"the blurring that you notice is actually a hardware problem. Some phones "smooth" the content on the screen to give a nicer feel to applications. I don't know if it's the screen or the graphics processor, but it doesn't occur on my wife's Samsung Captivate. It happens on my Atrix and Xoom though. It's really noticable on the Xoom due to the large screen size."

But seems there is way to prevent it, since I have tested many similar games, where camera is chasing player, and I could not notice such effect.

Is there a way to turn this off in code?


I'm grateful for previous answers, unfortunately, still problem exist.

Till now, I have tried:

  • casting (int) on setCenter method which is being executed on updateChaseEntity
  • testing game using PNG images, instead of SVG extension and vector graphic
  • different TextureOptions
  • hardwareAcceleration

If someone have different idea, what may cause this strange effect, I would be really grateful for help - thank you.

like image 380
Matthewek Avatar asked Dec 06 '11 16:12

Matthewek


1 Answers

Some devices (Xperia Play) bleed everywhere when trying to draw things that are moving quickly. For example a red icon on the application list leaves a blur behind it. You could try hardwareAcceleration in the manifest (on and off) to see if it makes a difference.

You'd probably get the same effect if you weren't using svg

like image 135
FunkTheMonk Avatar answered Sep 22 '22 19:09

FunkTheMonk