Changing colors

Started by
33 comments, last by Jower 20 years, 1 month ago
So where are your calls to Begin/End? We really need to see your whole rendering function to see where the problem is. It''s likely something is being done out of order, or not at all, but if you don''t show us the code what are we supposed to do?

Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena
Advertisement
LPDIRECT3DDEVICE9->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,0), 1.0f, 0);LPDIRECT3DDEVICE9->BeginScene();LPD3DXSPRITE->Begin();LPDIRECT3DDEVICE9->SetRenderState(D3DRS_ALPHAREF, 128);LPDIRECT3DDEVICE9->SetRenderState(D3DRS_ALPHABLENDENABLE, false);//Lots of draw-commandsLPD3DXSPRITE->End();LPDIRECT3DDEVICE9->EndScene();LPDIRECT3DDEVICE9->Present(NULL, NULL, NULL, NULL);

I think that´s all rendering-code
I don´t call any other SetRenderState except for the D3DRS_ALPHATESTENABLE and D3DRS_ALPHAFUNC I showed earlier
And no SetTextureStageState.
Swapeffect is D3DSWAPEFFECT_DISCARD, windowed mode.
Anyone got any ideas ?
When you create your device, change it from HAL to REF. If it works under REF, but not HAL it''s likely a driver bug. If it doesn''t work under REF then the problem is somewhere in your code. It''s a good way to narrow down the source of the problem.


Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena
lol
When I try to create it as REF I get D3DERR_NOTAVAILABLE

This topic is closed to new replies.

Advertisement