Original Post
I tried render two graphic object with different FVF type.
When i enable rendering of axes first,then the axes are displayed right(lines are continuous and full).
When I enable rendeering of mesh,the lines are interupted,strange fade-out.Mesh is displayed properly...
Know anybody where is problem,please?
[edited by - AlexanderCZ on October 25, 2002 3:31:11 AM]
typedef struct _FVF1{
float x,y,z;
DWORD col;
} FVF1;
typedef struct _FVF2{
float x, y, z;
float nx, ny, nz;
DWORD col;
float tu, tv;
} FVF2;
//i am using template classes for graphic objects:
GrObj<FVF1> g_axes;
GrObj<FVF2> g_mesh;
.
.
//creating...
g_axes.Create("axes.vsh");
g_mesh.Create("mesh.vsh","tiger.x","tiger.bmp");
.
.
//rendering...
g_axes.Render(D3DPT_LINELIST);
g_mesh.Render();