VBGamer |
|||||||||||||||||||||||||||
Some dx 8 graphics questions Stuart Zahn (1 reply, 0 views) (2001-Jan-1) I'm having a few problems with the new dX8 API (and probably so do you). I have two questions...
Question #1 : My alphablending code doesn't seem to work. If I wanted to enable alpha blending I would do...
D3DDevice.SetRenderState D3DRENDERSTATE_ALPHABLENDENABLE,False
D3DDevice.SetRenderState D3DRENDERSTATE_ALPHABLENDENABLE, True
D3DDevice.SetRenderState D3DRENDERSTATE_SRCBLEND, D3DBLEND_ONE
D3DDevice.SetRenderState D3DRENDERSTATE_DESTBLEND, D3DBLEND_ONE
...Then to disable it I would do
D3DDevice.SetRenderState D3DRENDERSTATE_ALPHABLENDENABLE, False
This procedure doesn't seem to work! can someone help me here :(
Question #2 :
Since MS totaly got rid of DD, I was wondereding how you would use rects to only blts parts of a surface. Theres got to be a special command for DX to automatically do this, right ? or do you have to change how you initialize the vertexes and stuff. Please help!!!
|