• Advertisement

Archived

This topic is now archived and is closed to further replies.

Light Texture

This topic is 5464 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am a newbie of Direct3D. I am writing a 3D action game which need to draw some laser beam on the 3D enviroment. Therefore, I want to add the color of the laser texture to the 3D enviroment I set the texture state by: pd3dDevice->SetTexture( 0, m_pLaserTexture ); pd3dDevice->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE ); pd3dDevice->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_CURRENT ); pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_ADD ); And get a wrong result. (see the picture below) Can anyone tell me what's wrong with my code? Is that I am in the right direction? Please help. Thanks! Marti [edited by - marti wong on March 5, 2003 10:58:06 PM] [edited by - marti wong on March 6, 2003 3:11:17 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement