Original Post
Hi, I'm trying to load alpha only texture (D3DFMT_A8 format with D3DXCreateTextureFromFileEx) from 8bit grayscale images (tried tga and png formats). But DirectX is always loading the images as 32bit textures (ARGB) with alpha completely white. The video card is Geforce 5700. In OpenGL I can always load the 8 bit grayscale in whanever format I want. Here is the loading parameters: D3DXCreateTextureFromFileEx( dx_dev, name, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_A8, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &dx_texture); So the question is, what am I doing wrong? How can I load an alpha only texture from a grayscale image? Thanks