I have this plane that is like a window with 4 glasses, and it's over a big plane. The big plane shows thru the window, but the cone is not rendered correctly. What could be happening, did I forget to set something?
These are the states I'm using:
Code:
Device.SetRenderState(D3DRS_AMBIENT, AmbientLight);
Device.SetRenderState(D3DRS_LIGHTING, iTrue);
Device.SetRenderState(D3DRS_DITHERENABLE, iTrue);
Device.SetRenderState(D3DRS_SPECULARENABLE, iTrue);
Device.SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
Device.SetRenderState(D3DRS_ZENABLE, iTrue);
Device.SetRenderState(D3DRS_ALPHABLENDENABLE, iTrue);
Device.SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
Device.SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
Device.SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE);
Device.SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE);
Device.SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE);
Device.SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1);
Device.SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);
Device.SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);
Device.SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
Device.SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR);
Regards!
-Marco
Bookmarks