Sign in to follow this  
derek7

FVF has order?

Recommended Posts

derek7    100
before I thought FVF has no order,because FVF just a combination of flag. DX can not get order just by FVF. But if FVF has no order , DX how to know where is position of vertex ,where is color.......

Share this post


Link to post
Share on other sites
circlesoft    1178
Quote:
Original post by derek7
But if FVF has no order , DX how to know where is position of vertex ,where is color.......

It doesn't - is assumes you have them in the correct spots. Just check the SDK for a comprehensive look at it. In all reality, you absolutely should be using vertex declarations, not FVF codes. They are outdated and inflexible (maybe they should be called "Inflexible Vertex Format" heh).

Share this post


Link to post
Share on other sites
derek7    100
Quote:
Original post by darookie
Just look it up here. The order is apparently fixed.


You mean the order is fixed. We must follow the order to create the vertex data?

Share this post


Link to post
Share on other sites
darookie    1441
Quote:
Original post by derek7
Quote:
Original post by darookie
Just look it up here. The order is apparently fixed.


You mean the order is fixed. We must follow the order to create the vertex data?

Indeed. The "flexible" vertex formats requires the components to follow this defined order to work. As circlesoft already pointed out, you should use vertex declarations instead. Beware though, that some drivers still only accept FVF-like component ordering.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this