Actors and bad antialiased edges when rotating . . .

CloudsClouds Member Posts: 1,599
I posted this elsewhere in relation to another question, but I thought I might share it more generally as this was a real issue for me until I worked out a way around it.

When you have an actor that rotates in certain situations - and - if your image goes right up to the edge of your actor then GS will struggle with the anti-aliasing (specifically when rotating).

What I have discovered is that if you put a thin line of transparency around the edges of (in this example below) a square then GS will give you a much much much (much) better edge quality !

The square on the left was taken into Photoshop and given a 2 pixel transparent boarder, the square on the right is the same file but without the transparent boarder treatment.

Download the GS project to see the two different edges moving . . . > http://www.mediafire.com/?2x5jb3mzg46d2wu

You can see how much worse the anti-aliasing is on the actor without the transparent edge.

Comments

  • CloudsClouds Member Posts: 1,599
    edited January 2012
    Two squares rotated slightly counterclockwise in Gamesalad.

    image
  • CloudsClouds Member Posts: 1,599
    Whoops, I spelt transparency wrong in my image . . . . lol @ 'tranprency' !

    : )
  • simo103simo103 Member, PRO Posts: 1,331
    @Tynan ... super tip ... thanks for sharing will come in handy for sure.
  • CloudsClouds Member Posts: 1,599
    Just tested . . . . you only need to have a 1 pixel transparent boarder for this fix to work, no need for 2 pixels.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Yes, nice tip, Tynan, thanks. :-)


    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    Thanks for sharing this! I've been frustrated by the jaggies for weeks. And now to find such a simple solution -- its great!

    RThurman
  • PixelgunPixelgun Member Posts: 111
    Great tip! +1
  • MikeProjectMikeProject Member Posts: 2

    Either this trick doesn't work on round actors or I am doing something wrong.

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2014

    @MikeProject said:
    Either this trick doesn't work on round actors or I am doing something wrong.

    There is no such thing as a round actor, all actors are rectangular !

    If your image is circular then this method shouldn't apply as every pixel in the image is within the image's boundary (except - in theory - the 4 or so pixels where the circle's edge touches the image boundary).

    (PS, 'clouds' is my old forum account)

Sign In or Register to comment.