Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

When I use the draw method inside a image, it completely ingores the alpha channel and fills it in with white. Is there a way I can draw it where the alpha is see through like it's suppost to be? I would look at their website but

share|improve this question
1  
you would look at their website but what? –  Liosan Feb 23 '13 at 9:02
1  
Show the code you use to load the image –  Savlon Feb 23 '13 at 9:55
    
Make sure you are loading an image type that supports transparency, provide the code you are using. –  Fizzik May 24 '13 at 12:18
add comment

1 Answer

up vote 1 down vote accepted

Have you tried

GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

Of you are using OpenGL to draw the image then this enables alpha channel blending.

Sources: LWJGL Wiki and Trial and Error

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.