Skip to main content
Participant
July 29, 2013
Question

Strange bug/artefacts on Sprites rendering

  • July 29, 2013
  • 1 reply
  • 1585 views

Hi everyone,

I am experiencing some very strange rendering artefacts on the facebook game I am working on (Mutants: Genetic Gladiators).

I render our characters as a series of quads drawn with the Graphics class on a bunch of Sprites (no stage 3D here)  that are animated by code. Each Sprite can have its own blending mode and color transform.

In some situations I can see some bright colored lines along what appears to be the borders of my quads although the image I use as my texture atlas is fully transparent in those areas.

I observed that the symptoms appear most often when I have quite a lot of overdraw. Especially with mixed blend modes. As an example The particles in the image below are rendered with the "add" blend mode. We can clearly see some unwanted purple outlines.

The issue is not systematic, it occurs randomly with the same setup but when it does it is repeatable. It has been reported with various versions of the flash player including 11.8.800 and in different browsers (Chome, Firefox, Safari).

Another interesting aspect is that artefacts don't appear if I hide the background (which is a large bitmapFilled quad with a colortransform).

Here is another example during his attack, we can clearly see some bounding rectangles of my crabman, especially around the claw. I added a close-up on the artefact and a screen grab of the atlas I use.

 

EDIT: As a complimentary information, the artefacts don't appear if I remove the ColorTransforms that I apply on the characters and the background.

EDIT 2 : The artefacts don't appear in LOW stage quality (which is insufficient for my purposes). The higher the anti-aliasing, the more present the artefacts are.

Have you experienced similar artefacts? Is there a workaround? Am I doing something evil that breaks the Flash renderer?

Any help would be greatly appreciated.

Thanks,

Phil

This topic has been closed for replies.

1 reply

jeromiec83223024
Community Manager
Community Manager
August 12, 2013

Hi Phil,

We'd be happy to take a look, but we'll need to run it under a C++ debugger to really understand what's going on.  If possible, it would be great if you could strip this down to a super simple example.  It will make it much faster for us to debug.

Please file a bug here:

http://bugbase.adobe.com/

If you're not comfortable posting examples or details in the public bug, send me a private message and I can pass the information along in our private channels.

Thanks,
Jeromie

jeromiec83223024
Community Manager
Community Manager
August 12, 2013

Also, if you reply here with the bug number, I'll get an email notification and will escalate the issue.

PhilPixAuthor
Participant
August 13, 2013

Thank you Jeromie,

I filed the bug 3611314 in the bugbase. I will know better next time I encouter this kind of issue

For those who may be interested, I found a workaround. It seems the artefacts dissapear when the background cacheAsBitmap property is set to true. I neither like that solution nor understand why this works but it was goo enough to solve my problem in production.

Thanks,

Phil