Exeption in DebugMode

Started by
1 comment, last by schwemmer 22 years, 8 months ago
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
Advertisement
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.
We are boki. The rest is known.
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

This topic is closed to new replies.

Advertisement