Original Post
I'm have been trying for hours to texture a panel. So far, it loads the image okay then proceeds to draw the panel shaded red to black from the bottom up. This doesn't make any sense to me! There's no red anywhere in the image or in the code. The all four verticies are white and the image is mostly white.
Here's some small clips from my code:
So, uh, can anybody help me figure out why it's refusing to render the texture?
----
Herb M. (mdfmKoRn)
s3202@attbi.com
Edited by - mdfmKoRn on December 23, 2001 5:21:13 PM
LPDIRECT3DDEVICE8 D3DDevice;
LPDIRECT3DVERTEXBUFFER8 TS_VBuffer;
LPDIRECT3DTEXTURE8 Logo;
D3DXCreateTextureFromFile( D3DDevice, "Logo.dds", &Logo );
D3DDevice->SetTexture( 0, Logo );
D3DDevice->SetStreamSource( 0, TS_VBuffer, sizeof(CUSTOMVERTEX) );
D3DDevice->SetVertexShader( D3DFVF_CUSTOMVERTEX );
D3DDevice->DrawPrimitive( D3DPT_TRIANGLESTRIP, 0, 2 );
|