   Problems renderign with directx 7
  I have spent the whole week trying to figuring out why all my 3d models showing translucent in VB6 directx 7and 8. I imported a STL file then filter to creates all triangles. I have played with all material/light setting and nothing happen. I also modified the normal faces to  other values and still showing translucent. I have turn off the renderstate D3DRENDERSTATE_ALPHABLENDENABLE to false and no difference. Have any one come across this issue?. I am creating models in windowed mode not full screen. Here is a cube with a hole that runs from front side to back side. This image shows 3 different views (front left and top).http://www.surgik.com/vb6/cube_front.jpghttp://www.surgik.com/vb6/cube_left.jpghttp://www.surgik.com/vb6/cube_top.jpgYou can see the hole shows from any views. I used different 3d model with same exact results. Please help me..Luis..   
  Probably you forgot to turn on the depth test.;  Looks like a Z-buffer issue to me. Did you create and attach a depth-stencil surface? If so, what format? And what are your clip planes in your projection matrix set to?   ;  Could you show me how to create and attach a depth-stencil surface to my x buffer? How can i turn on test depth?   ;Quote:Original post by luisvb1Could you show me how to create and attach a depth-stencil surface to my x buffer? How can i turn on test depth?It's been years since I used DX7, and that was only in C++. The SDK samples should show how to do it though. I vaguely remember having to create a depth-stencil surface with CreateSurface() and then attach it to the backbuffer (Although I may be getting confused with older DX versions).   