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

Flexible Vertex Format Flags

This topic is 6020 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

While the flag descriptors are correct, are you ordering the variables correctly in your vertex structure? XYZ Coords come first, then normals, then color, then texture:

typedef struct sVertex {
float x, y, z;
float nx, ny, nz;
D3DCOLOR Diffuse;
float u, v;
} sVertex;



Jim Adams
Programming Role-Playing Games with DirectX 8

Share this post

Link to post
Share on other sites
No you cannot combine all fvf flags. There are some restrictions. For example you cannot combine D3DFVF_XYZ and D3DFVF_XYZRHW because you cannot use both transformed and untransformed coordinates in the same vertex.


Share this post

Link to post
Share on other sites