Font transparency?

Previous topic - Next topic

MrPlow

Whats the best method when using the font creator?
And when the font is used in ddgui with scaling screen?

I tried the default 255,0,128 color setting and that failed to work.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

I would use ALPHAMODE -1.0 before DDgui_show()


MrPlow

Okay, i will try that...thanks!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Didnt seem to do anything different...

Do I need to do something else...also the background my font I am using is a kind of blue ... does that matter?
I had it black before but changed to closer to menu colour
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

erico

Are you using BMP or PNG for the output?

BMP you will need to work with a color key (the usual pink) but you can use anyother and set transparency inside your code.
PNG should give you an alpha channel, but I don´t quite see it on the likes of photoshop.

My guess is that you will have to experiment, I did it a long time ago and I had problems with png by having a key color on my outlines, so it went off and I had to slightly change the outline a bit.

I´m not sure if the font loading system is apart from set transparency, but fonts are like a sprite sheet, ultimately you can edit them on a paint package.
One other thing, I believe, iirc, the background color is where you set the key color?

Sorry I can´t help much, it has been a while I haven´t digged fonts.
You might want to look at the other extended font creator available on the forums here:
http://www.glbasic.com/forum/index.php?topic=6421.0

SnooPI

try ALPHATESTING 0.0 before DDgui_show()

MrPlow

Quote from: Snoopy on 2013-Nov-19
try ALPHATESTING 0.0 before DDgui_show()

Tried that too...still looks like this,,,

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

kanonet

I use PNG with transparent background. And this font creator is better and more powerful: www.glbasic.com/forum/index.php?topic=6421.0
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrPlow

Quote from: kanonet on 2013-Nov-19
I use PNG with transparent background. And this font creator is better and more powerful: www.glbasic.com/forum/index.php?topic=6421.0


Thanks!!! Now things are looking up.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

SnooPI

MrPlow after ALPHATESTING use always ALPHAMODE 0.99 (or 0.9, 0.8, ... for more transparency)  the result is better than ALPHAMODE 0.0

Of course, you can use also ALPHAMODE -0.99 (-0.8, -0.7, ...) for special effects.