Everytime i solve a problem, i seem to get another 2 more :(
I have finally managed to draw 3D objects (*.x files) but for some reason, the textures become transparent and hence i'm able to see through them. Is there a way to stop this?
Printable View
Everytime i solve a problem, i seem to get another 2 more :(
I have finally managed to draw 3D objects (*.x files) but for some reason, the textures become transparent and hence i'm able to see through them. Is there a way to stop this?
Show me the code. It seems alphablending has been enabled.
Heres a simple version of my overcomplicated project :sick:
Also For some reason i seem to have stuffed up the way that box is show so it tends to change shape.
[Edit]Fixed the weird box thing - comment out
VB Code:
Direct3D_Device.SetRenderState D3DRS_SRCBLEND, D3DBLEND_SRCALPHA
Set this line to false:
VB Code:
Direct3D_Device.SetRenderState D3DRS_ALPHABLENDENABLE, [b]True[/b]
Nope didn't work :(
Um.. what do you except when not enabling the Z-buffer?
'Init
Direct3D_Window.EnableAutoDepthStencil = 1
'Clear
Direct3D_Device.Clear 0, ByVal 0, D3DCLEAR_TARGET Or D3DCLEAR_ZBUFFER, D3DColorRGBA(0, 0, 0, 0), 1, 0
Thanks so much, it worked :)