# How to make FVF for my Vertex???

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

## Recommended Posts

typedef struct { D3DXVECTOR3 p; D3DXVECTOR3 n; D3DXVECTOR3 p2; // Wave Height Scale FLOAT tu1, tv1, tw1; D3DXVECTOR3 t; } VERTEX; and my fvf is const DWORD D3DFVF_TLVERTEX = ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEXCOORDSIZE3(0) | D3DFVF_TEXCOORDSIZE3(1) | D3DFVF_TEXCOORDSIZE3(2) ); I don't think it's right , but I don't know how to make the right thing. Could someone tell me???? Appreciate your help!!!

##### Share on other sites
What you've got plus "| D3DFVF_TEX3".

##### Share on other sites
A minor tip for associating fvf with the vertex type :

typedef struct{D3DXVECTOR3 p;D3DXVECTOR3 n;D3DXVECTOR3 p2; // Wave Height ScaleFLOAT tu1, tv1, tw1;D3DXVECTOR3 t;enum {   FVF = ( D3DFVF_XYZ |            D3DFVF_NORMAL |            D3DFVF_TEX3 |           D3DFVF_TEXCOORDSIZE3(0) |            D3DFVF_TEXCOORDSIZE3(1) |           D3DFVF_TEXCOORDSIZE3(2) )          )};} VERTEX;

Then you just reference it with VERTEX::FVF

##### Share on other sites
Quote:
 Original post by SimmerDA minor tip for associating fvf with the vertex type :*** Source Snippet Removed ***Then you just reference it with VERTEX::FVF

thats nice, tnx for a tip. i was using #define VERTEX_FVF D3DFVF_XYZ|D3DFVF_NORMAL...

1. 1
2. 2
3. 3
Rutin
23
4. 4
5. 5
khawk
14

• 9
• 11
• 11
• 23
• 12
• ### Forum Statistics

• Total Topics
633654
• Total Posts
3013168
×