Skip to main content
gamedev.net
🔒 Locked

Alpha Blending

Started by Ahvolon 2 replies 450+ views
Original Post
Ahvolon
Ahvolon
Hi, I want to do AlphaBlending in my game but when I use the AlphaBlend function nothing happens. What can I do?
python_regious
python_regious
write a software one.
If at first you don't succeed, redefine success.
simon_brown75
simon_brown75
Are we talking Direct3D or OpenGL here? And which version?

In Direct3D8 this code-

g_pD3DDevice->SetRenderState ( D3DRS_ALPHABLENDENABLE, TRUE );
g_pD3DDevice->SetRenderState ( D3DRS_SRCBLEND, D3DBLEND_SRCCOLOR );
g_pD3DDevice->SetRenderState ( D3DRS_DESTBLEND, D3DBLEND_DESTCOLOR );

Will turn on alpha blending.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.