VBGamer | 
			
			|||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
			 		
	Alpha blend + color key in D3D   mateo  (2 replies, 0 views)  (2001-Jan-7)  I just implemented an alpha blending routine in D3D7 for use in conjunction with DDraw.  The problem is, when I don't use alpha blend one, the color key doesn't get eliminated and it shows the transparent color.  These are the device settings:
Dev.SetRenderState D3DRENDERSTATE_ALPHABLENDENABLE, True
Dev.SetRenderState D3DRENDERSTATE_SRCBLEND, D3DBLEND_SRCALPHA
Dev.SetRenderState D3DRENDERSTATE_DESTBLEND, D3DBLEND_INVSRCALPHA
Dev.SetRenderState D3DRENDERSTATE_TEXTUREFACTOR, DX.CreateColorRGBA(1, 1, 1, 0.5)
Dev.SetTextureStageState 0, D3DTSS_ALPHAARG1, D3DTA_TFACTOR
Any ideas for getting the color key working? 
  | 
		|||||||||||||||||||||||||||||||||||||||||||||||||||||