Archived

This topic is now archived and is closed to further replies.

schwemmer

Exeption in DebugMode

Recommended Posts

Hi all, I have programmed a little Game in DX8. Everything is working fine. But when I usere the DX8 Debug-Version, I only see a Black-Screen and get the trace-Messages: Direct3D8: (ERROR) :*** Exception in d:\nt_chk\multimedia\directx\dxg\d3d8\fe\vshader.cpp Line: 592 Direct3D8: (ERROR) :Stream 0 stride should match the stride, implied by the current vertex shader Direct3D8: (ERROR) :DrawPrimitive failed. Perhaps its because of the big textures? Thanks for your help. Björn Schwemmer

Share this post


Link to post
Share on other sites
This has nothing to-do with the texture. Your FVF does not match the size of the vertex structure. It maybe an alignment problem (even thought I never encounter this) or more likely your FVF is wrong. Anyway, without the actual code there is nothing left to say

Bjørn.

Share this post


Link to post
Share on other sites
Thank you !!!

"Your FVF does not match the size of the vertex structure", this was exactly what was wrong. I used the struct:

struct my_vertex{
FLOAT x, y, z;
DWORD color;
FLOAT tu, tv;
};

Und this was my FVF:

#define D3D8T_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_TEX1)

This was really stupid.

Thanks a lot,

Björn Schwemmer

Share this post


Link to post
Share on other sites