User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Alpha Channels leaving white border

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alpha Channels leaving white border

    Is there any reason some alpha channels will still leave a light border around my object? It only occurs in HWA.
    Direct3D (8 and 9)

    Standard

  2. #2
    No Products Registered

    Join Date
    Sep 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    could you show what the unscaled/rotated object looks like, its alpha mask, and the RGB without the alpha mask? Possibly, the hardware is interpolating from texture regions outside of the object, or that your sprite's RGB data doesn't extend out to the edge of the alpha mask, so it's blending in adjacent colors which aren't part of your intended result. This is a common cause of halos of any color when dealing with alpha channels in hardware-accelerated games...

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    http://ftp.jacobpariseau.com/alphamask.png

    That's the alpha mask, the rgb mask is solid #000000 black. I tried increasing the size of the canvas but it still doesn't work

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    Try making sure it is a multiple of 32, or at least a power of 2 (8,16,32,64,128,256,512). If the problem is specific to your gpu, it can sometimes be caused by resizing the textures in the pipeline.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    It's 8x8 right now, but I made the canvas 32x32 with the image centered and the same thing happened.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    Can you upload a demo mfa? Shouldn't be too big for this one.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    I've figured out that it wasn't just a white border, the border takes on the colour of the background.
    View MFA

    I can't recreate this in a new MFA, but I stripped everything out of my current project and it still happens. There are two objects, the small one that I had issues with, and a cloned one that is much larger where the effect is more noticeable.

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    Really just seems like your alpha map is too gray/white... So of course it's going to show with like a ring around the bullet... If you just up the contrast on the alpha map, the problem is fixed.

  9. #9
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    Erm... that doesn't make sense. The alpha map controls transparency, not colour. In any case, pasting these objects into a blank frame doesn't replicate the issue, which means it is most likely a bug.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alpha Channels leaving white border

    Hmmm, I can't get it to happen in your example, though I didn't have that hue shift shader that you use on Layer 1.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Random Issues With SWF Alpha Channels Flashing White Only on Portals
    By redpandagames in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 21st May 2013, 02:22 PM
  2. iOS and alpha channels
    By ratty in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 12th February 2013, 04:25 PM
  3. White Border Glitch
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th July 2010, 12:06 AM
  4. Leaving channels...
    By Looki in forum Lacewing
    Replies: 7
    Last Post: 24th January 2009, 09:24 PM
  5. Alpha Channels?
    By AllistairF in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 18th August 2006, 06:20 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
  •