-
Outline on my text
I am using SDL to make a game. I am starting on the menu system, and decided to start with the text. I have a load.cpp and load.h for loading the images and stuff, and also have a color key for 0x00, 0xFF,0x00, this color is magenta. In photoshop I set the background to this color, which in RGB is 255,0,255. I put the text in, and saved it as bmp. When I loaded it in, the magenta was transparent (which is what I wanted) but their was a faint outline of magenta around the text. How can this be solved ? Should I add a black stroke around the text?
-
Could you post a screenshot and code please? I'm not familiar with SDL (but this is probably an easy thing to solve).
Also, haven't seen you on AIM in a while. I've been making models on my own, I didn't know if you were still interested (I still use the turret and minigun models you made).
-
Perhaps the font texture is interpolated so the magenta you see isn't exactly 0x00FF00 but perhaps ~0x11EE11 or something?
-
Ok, let me see if I can get a picture. The print screen wasnt working, maybe cause i'm using SDL_Delay to keep the window open?
EDIT- Ok i got it now, Check the attachment
-
Make sure Antialiasing is not turned on in photoshop when creating these textures.
-
Aye, sir. That worked perfectly! I can't believe I didn't think of that.
Bob, you make models of your own!? Oh boy, they must look awesome, because your so 1337! :P I'm always on, I never see you on, did you change your name or something?
-
I found a tutorial that seems to have helped me with this problem. It's all about sprites, and it adresses the problem I had with the magenta "mist" around my text. The tutorial is here.