GLBasic forum

Main forum => GLBasic - en => Topic started by: r0ber7 on 2011-Oct-08

Title: Alpha in png?
Post by: r0ber7 on 2011-Oct-08
First off, hello everyone. I'm coding a game in GLBasic. Later more about that.  :good:

I've got a question, which seems like there should be an easy answer, but I can't find one.
I've added a nice glow to my spellcasting fire. In the attachments, you can see how it looks in my graphics program (the grey blocks are transparent area) and how it ends up looking in the game.
What gives?  :doubt: I've looked at SETTRANSPARENCY, but it only accepts color values and I don't know if there is a colour value for transparency? This is the first time I try using the transparent option of png files. Before this I simply used the standard (255,0,128) for my images, but because I'd like this to glow, I can't do that. Help?







[attachment deleted by admin]
Title: Re: Alpha in png?
Post by: Crivens on 2011-Oct-08
Use ALPHAMODE -1. This uses all the alpha channels used, not just a single alpha channel.

Cheers
Title: Re: Alpha in png?
Post by: r0ber7 on 2011-Oct-08
Thank you! I knew it had to be an easy one.
Title: Re: Alpha in png?
Post by: mentalthink on 2011-Oct-08
You can play whit positive values for making a cool bloom and glow FX.