User Tag List

Results 1 to 9 of 9

Thread: Weird black artifacts when rotating a sprite with alpha

  1. #1
    Clicker Fusion 2.5Android Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird black artifacts when rotating a sprite with alpha

    Hi guys

    When I import a sprite with an alpha channel, it displays perfectly smooth if it is not rotated.

    However, when I rotate the sprite, strange black/gray anti-aliasing begins to show.

    Is there anything that can be done about this?

    Thank you!

    pic.PNG

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    anatol's Avatar
    Join Date
    Jun 2016
    Posts
    119
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    did you change the size of the object in the clickteam fusion ?

    Anyway - change the settings before transform your image
    Clipboard02.jpg

  3. #3
    Clicker Fusion 2.5Android Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi @anatol

    Thank you very much for your reply

    I did not change the size of the object at all - only rotated it slightly. When un-rotated, it displays perfectly.

    I used your settings and still exactly the same thing.

    Any ideas?

  4. #4
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    2,997
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    I cannot reproduce it. Please post a small test .mfa demonstrating the problem, thank you.

  5. #5
    Clicker Fusion 2.5Android Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi @Olivier

    Thank you for the reply!

    I've attached a simple project illustrating the issue.

    One image imported into sprite and left as is - display perfectly.
    One image imported into sprite and the sprite rotated - shows funny black/gray outline.

    Please let me know what could be causing this

    Thank you!

    outlineIssue.mfa

  6. #6
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    2,997
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    When rotating an object, the pixels are smoothed or anti-aliased. If you check the RGB channel of your image, you will notice that the bottle sprite is actually surrounded by black pixels. That's why you get that gray outline. Here's what you could do:
    - Rotate the object at runtime with the SetAngle() action and with the Quality parameter set to 0 (= no anti-aliasing)
    - On the RGB channel of your image, change the color of the black pixels to colors actually used by the bottle sprite

    Also please note that rotating your object in the Frame Editor, ie with the Angle property, is a kind of "lossy" operation. After you close and reopen your .mfa, your object is still rotated whilst that property is reset to 0.

  7. #7
    Clicker Fusion 2.5Android Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi @Olivier

    Thank you for the explanation. I assume this is an rendering engine limitation? I don't seem to have the same issues when rotating sprites in other engines that I'm testing?

    When using 0 quality, the bad quality of the rotation is quite noticeable. I guess my question is - is this likely to be updated / fixed, or most likely not until Fusion 3 comes out?

    Thank you again for the help!

  8. #8
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    2,997
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    According to my tests this rendering issue doesn't actually affect the HTML5 runtime, but only the Windows, macOS and iOS runtimes. I will open a bug report about this inconsistency. So for the best results with the HTML5 runtime, my advice is to rotate your objects at run time by using the SetAngle() action with the Quality parameter set to 1 (maximum).

  9. #9
    Clicker Fusion 2.5Android Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi @Olivier - Thank you for the reply and the bug report

Similar Threads

  1. Mode 7 - Choppy sprite mapping when rotating.
    By GamesterX23 in forum Fusion 2.5
    Replies: 5
    Last Post: 28th April 2015, 10:09 AM
  2. Sprite Editors Colors Black
    By Devis in forum Fusion 2.5
    Replies: 0
    Last Post: 25th January 2015, 10:04 AM
  3. Images artifacts
    By Nellatermica in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th May 2013, 05:46 AM
  4. Graphic artifacts
    By dub in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st February 2009, 11:14 AM
  5. Artifacts on rotation... yes this again
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd February 2007, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •