Hello.
I have a texture I want to put on a flag, however all the black pixels are drawn as transparent. I just want them to be black.
The default Style for the flag (the CTFFlag class) is STY_Masked, I have tried setting that to STY_Normal, didn't work.
I load the texture dynamically, so I tried setting its bMasked property to false, didn't work.
As an experiment only, I tried an exec line to get texture in to see if setting the properties this way would work, but it did not (not that I will be doing it this way, I'll be loading it dynamically).
I experimented with the texture itself by using it on a sheet brush in the editor, and the black drew black, so it's not the texture.
Does anyone have any suggestions?
Thanks.
I have a texture I want to put on a flag, however all the black pixels are drawn as transparent. I just want them to be black.
The default Style for the flag (the CTFFlag class) is STY_Masked, I have tried setting that to STY_Normal, didn't work.
I load the texture dynamically, so I tried setting its bMasked property to false, didn't work.
Code:
local Texture t;
local CTFFlag f;
// assume flag has been spawned
t = Texture(DynamicLoadObject("myTexPackage.myTex", class'Texture'));
t.bMasked = false;
f.Skin = t;
As an experiment only, I tried an exec line to get texture in to see if setting the properties this way would work, but it did not (not that I will be doing it this way, I'll be loading it dynamically).
Code:
#exec texture IMPORT NAME=r0 FILE=TEXTURES\myFlag.pcx Mask=off Flags=2
I experimented with the texture itself by using it on a sheet brush in the editor, and the black drew black, so it's not the texture.
Does anyone have any suggestions?
Thanks.