Sign in to follow this  

Problems with edges of 3D triangles...

This topic is 4310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i'm starting a D3D device with Direct X 9.0, basically i'm using with HAL a software vertex processing, D3DFMT_X8R8G8B8 for the back buffer and D3DFMT_D16 for the z-Buffer, then i'm just trying to draw over a vertex buffer, that store a simple 3D coordinates triangle in front of my camera position [DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1)]... so my results are in the next link to the JPG image: http://webdelasangre.webcindario.com/TriangleZOOM.jpg I don't know why the 2 lateral edges of the triangle look like this capture (to make it out better i applied a zoom to the image)... Can you help me giving me a clue to solve the problem??? I've tried a lot of things... first i think may be was a problem with the z-buffer because of this disappearing pixels, but then i looked the code where i can't see anything wrong (although i know I'm a totally beginner...): ... EnableAutoDepthStencil = true; ... ... SetRenderState(D3DRS_ZENABLE, true); ... For each frame, before BeginScene, i always clean the z-buffer... Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, 0xffffffff, 1.0f, 0); ... ... so i hope you can help me, thanks a lot just for reading here!!!, bye, e-milio =/\=.

Share this post


Link to post
Share on other sites

This topic is 4310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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