Skip to main content
GameDev.net gamedev.net
🔒 Locked

Transparency

Started by Greg K Dec 18, 2002 at 3:47 AM 2 replies 300+ views
Original Post
Greg K
Greg K
Ok, I want all pink pixels to not appear when I texture a triangle. I am using the D3DX Function to load a texture (D3DXLoadFromFileEx) or whatever it is. It loads fine and displays almost fine. Wherever there is supposed to be a blank pixel, a black one is drawn instead. Does anyone know why? ALPHABLENDENABLE = true. -Greg
Lupin
Lupin
I think you don''t need to enable alpha-blending, but I''m not sure... but you could try to set blending states to:

D3Ddevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
D3Ddevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
Greg K
Greg K
That worked for my normal texture. Is it supposed to be any different for point sprites? (They are still not rendering)
-Greg

Topic Locked

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

Sign in to reply to this topic.