
07-09-2006, 05:58 AM
|
 |
Centurion
|
|
Join Date: Mar 2006
Location: Israel
Posts: 150
|
|
Need some help with alphablend effect for shadows (Direct 3D8 - primitive draw)
|
hi everyone.
im working on a RPG game in DX8 (primitive draw), and im having a problem with the objects shadows.
what im basicly doing with shadows, is like painting the objects that doing the shadow, only with RGB of (0,0,0), and strech down. in other words, a shadow for a tree would be a picture of the same tree, only strech down on the ground and in black color.
now im trying to do those shadows half visible, to be realistic.
problem is, when i do alphablend using this render state :
Direct3D_Device.SetRenderState D3DRS_ALPHABLENDENABLE, True
its like Additive blend, like the picture below colors + the picture i merge colors.
which means, with the currnet alphablend i have it can only alphablend things to be brighter. and i need darker..
so can anyone show me how to do normal alphablend that can do things darker?
thanks
|
|