WEELY PROJECT -5-


  Well this code certainly demonstrates how much computatinal power alpha blending
  uses...
  Its a really simple example...but yet its really easy to understand.  And it shows
  the alpha component changing dynamically.  I've chosen to use a simple square
  as an example as usual...hehe.
  But why complicated things...life is to short.

  What the square rotate and fade in and out ...ghost like...certainly demonstrating
  and showing alpha-blending at its easiest.


  FinalColour = SourcePixel * 'SourceBlendFactor' + DestPixel * 'DestBlendFactor'

  Dest is the current screen
  Src  is your new image or ojbect colours

  You set SourceBlendFactor and DestBlendFactor with 

  g_pD3DDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
  g_pD3DDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_DESTCOLOR);



Well happy coding.

Ben_3D


Ben_3D@xfatordev.net