Problem with textures using DX7

Started by
3 comments, last by GameDev.net 24 years, 4 months ago
Make sure your vertices have texture coordinates.
Advertisement
Are you using D3D's lighting module?

If not, be sure to set D3DRENDERSTATE_LIGHTING to FALSE.

Are you using attenuating point lights?

[This message has been edited by simon_brown75 (edited November 07, 1999).]

Hello guys,

The problem is that when my program renders the scene my primitives are rendered well but they are totally black, but the textures are colorful and they are correctly applied with lpD3DDevice->lpVtbl->SetTexture(lpD3DDevice, 0, lpDDSTexture);
What's the problem?

You would see that effect if you set a material prior to rendering that has an ambient rgb of 0.0f for each. Just bump them up to 1 and you should be fine.

This topic is closed to new replies.

Advertisement