Jump to content
  • Advertisement

Archived

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

BlackDragon

MultiTexturing question

This topic is 5916 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

Im using MS visual c++ 6.0 and DirectX, im trying to put two textures on top of each other. for example i want to do a wall texture and put some graffti on it, the graffti picture has alpha for everything i want to show up, but seems to be blending the alpha values also. These are my texture settings m_pD3DDevice->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE ); m_pD3DDevice->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE ); m_pD3DDevice->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE ); m_pD3DDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG1,D3DTA_TEXTURE); m_pD3DDevice->SetTextureStageState( 0, D3DTSS_ALPHAARG2,D3DTA_TEXTURE); m_pD3DDevice->SetTextureStageState(0, D3DTSS_MAGFILTER, D3DTEXF_LINEAR); m_pD3DDevice->SetTextureStageState(0, D3DTSS_MINFILTER, D3DTEXF_LINEAR); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_COLORARG1, D3DTA_CURRENT ); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_COLORARG2, D3DTA_TEXTURE ); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_COLOROP, D3DTOP_MODULATE ); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_ALPHAOP, D3DTOP_MODULATE ); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_ALPHAARG1,D3DTA_CURRENT); m_pD3DDevice->SetTextureStageState( 1, D3DTSS_ALPHAARG2,D3DTA_TEXTURE); m_pD3DDevice->SetTextureStageState(2,D3DTSS_COLOROP,D3DTOP_DISABLE); m_pD3DDevice->SetTextureStageState(2,D3DTSS_ALPHAOP,D3DTOP_DISABLE); I also was wondering how games like Everquest and others with out door zone detect when a player is in lava, or water. I cant figure out for the life of me how games do this. Thanks for the Help

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!