XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Alpha Values for Images Guidance

Last post 10/5/2009 4:24 AM by Social Loner Studios. 2 replies.
  • 10/5/2009 3:33 AM

    Alpha Values for Images Guidance

    I completed the particle system tutorial on this website :)

    http://creators.xna.com/en-US/education/gettingstarted/bg2d/ExtraCredit

    I want to work towards making my own images to use as textures to become cool particle effects.  I want to confirm an idea I have and then ask for guidance.

    1:  The "transparency" of an image loaded as a texture in XNA is determined by its alpha values.  (Correct/Incorrect?)
    2:  Is there another way to define alpha transparency?
    3:  What is a good program (one that is free please!) that will let me label that alpha/transparency of an image file.

    Thank you.
  • 10/5/2009 4:23 AM In reply to

    Re: Alpha Values for Images Guidance

    CreatorEn5:
    2:  Is there another way to define alpha transparency?


    Yes, Color Keying.

    In the game studio properties window of your texture files, if you expand the Content Processor property, you will see Color Key Color and Color Key Enabled properties. If Color Key Enabled is true, then any color in your texture that = the Color Key Color (default Magent 255, 0, 255) will be 100% transparent.
    Game hobbyist hell-bent on coding a diabolical Matrix
  • 10/5/2009 4:24 AM In reply to

    Re: Alpha Values for Images Guidance

    CreatorEn5:
    1:  The "transparency" of an image loaded as a texture in XNA is determined by its alpha values.  (Correct/Incorrect?)
    Correct
    CreatorEn5:
    2:  Is there another way to define alpha transparency?

    You can use the Color Key, pick a specific color, and it will become transparent.
    CreatorEn5:
    3:  What is a good program (one that is free please!) that will let me label that alpha/transparency of an image file.

    I use Gimp, other people seem to like Paint.Net, both of these will support transparency, be sure to use png (not jpg/jpeg, or bmp, these two formats don't support transparency)
Page 1 of 1 (3 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG