Sign in to follow this  
luisvb1

Problems renderign with directx 7

Recommended Posts

luisvb1    122
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.jpg http://www.surgik.com/vb6/cube_left.jpg http://www.surgik.com/vb6/cube_top.jpg You can see the hole shows from any views. I used different 3d model with same exact results. Please help me.. Luis..

Share this post


Link to post
Share on other sites
Evil Steve    2017
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?

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by luisvb1
Could 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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this