Jump to content
  • Advertisement
Sign in to follow this  
vcGamer

finding vertex type

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

hi friends How can I find the write FVF codes for my skin mesh characters (X files)? I want to work on characters geometry, so I should know the correct FVF used, and also the vertex type that I should use, for instance: struct vert { D3DXVECTOR3 pos; D3DXVECTOR3 nrm; FLOAT u,v; D3DXVECTOR4 blendweight. ... ... } how can I find the correct vertex structure for my mesh (based on fvf)? can I find it with several tests? thanks for your help

Share this post


Link to post
Share on other sites
Advertisement
Don't use FVF, use Vertex Declarations instead..
http://msdn.microsoft.com/en-us/library/bb153284(VS.85).aspx

Share this post


Link to post
Share on other sites
Molle85 is right - FVF's are a historical relic and you only want to use them if you have no choice. A declaration is a superset and is easier to parse.

If you insist on going down the FVF route you'll have to get friendly with your binary mathematics to check each and every D3DFVF combination from ID3DXBaseMesh::GetFVF() and decode accordingly.

Another option can be to clone the mesh to an acceptable and known vertex format/declaration.

hth
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!