GLBasic forum

Main forum => GLBasic - en => Topic started by: mykyl66 on 2009-Oct-21

Title: Transparency issue???
Post by: mykyl66 on 2009-Oct-21
Hi,

I have made some sprites with nice soft edges in photoshop so that it will blend in with the background. However glbasic seems intent on making any soft edges solid regardless of using loadsprite or loadanim etc. Not nice when your trying to put forward a professional look with clean edges in your graphics.

(the transparency is  a graduated transparency that gradually fades out as it moves to the edges of the sprite.)

I cant use this pink malarky as when the graphic is scaled as you progress in the game you get  pink fringe so I use true transparency in my png's.

Any info needed please ask as I am at the end of my tether here.

I thought I would put a little explanation. Imagine you want a glowing ball on screen with nice transparent soft glow at the edge instead of the harsh edge that is being produced currently. (Its like it takes semi transparent pixels and makes them solid.)

Mike R

Title: Re: Transparency issue???
Post by: Moru on 2009-Oct-21
post some examples of your png so we can have a look at them, it works perfectly for me so far.
Title: Re: Transparency issue???
Post by: mykyl66 on 2009-Oct-21
This is not what i am using but something I put together that shows how my transparency is done on the png file..

As you will see it has a nice soft fuzzy edge that should blend into the background. Which it does even in the forum here. You can see the backdrop of the forum through the edges of this graphic.

Mike

[attachment deleted by admin]
Title: Re: Transparency issue???
Post by: Kitty Hello on 2009-Oct-21
Try ALPHAMODE -1
Title: Re: Transparency issue???
Post by: mykyl66 on 2009-Oct-21
Thank you. ummmm is it time for me to admit a failing. I tried alphamode but ummmm stupidly put it in the wrong position.

Works perfectly.  :good:
Title: Re: Transparency issue???
Post by: Moru on 2009-Oct-21
Oh sorry, should have said that from the start, Alphamode is the way to go if you want transparency :-)