Sign in to follow this  
nick5454

Lighting messed up after texture

Recommended Posts

I have a simple sphere and a backdrop bmp as the background If I don't add a tecture the color(1.0,1.0,1.0,1.0) is white. correct. but as soon as I add the background pic its blue. Whats wrong? TextureCode m_pd3dDevice->SetTexture(0, ppTextureBackground ); m_pd3dDevice->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE); m_pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1); m_pd3dDevice->SetFVF(FVF ); // new in DX9 m_pd3dDevice->SetStreamSource( 0, m_pVB, 0, sizeof(VERTEX) ); m_pd3dDevice->DrawPrimitive( D3DPT_TRIANGLEFAN, 0, 2); please help. nick

Share this post


Link to post
Share on other sites
Okay I finally got it to work.

Does anyone know of links that thoroughly explains textures and stages from the ground up and stays pretty simple?

Nick

[Edited by - nick5454 on July 9, 2005 9:57:44 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this