Sign in to follow this  
blowing20

I have puzzled in 3d vertices

Recommended Posts

direct3d 9 sdk has a example like below; CUSTOMVERTEX g_Vertices[] = { { -1.0f,-1.0f, 0.0f }, { 1.0f,-1.0f, 0.0f}, { 0.0f, 1.0f, 0.0f }, }; another book is CUSTOMVERTEX g_Vertices[] = { { -100.0f, 100.0f, 0.0f}, { 100.0f, 100.0f, 0.0f}, { -100.0f, -100.0f, 0.0f}, the question is how to define the accurately Vertices location.

Share this post


Link to post
Share on other sites
Quote:
Original post by blowing20
the question is how to define the accurately Vertices location.

Doesn't the declaration already contain information about its position? At least the second array appears to have a position and texture coordinates (unless the first three are unnormalized normals) in an array format.

How is CUSTOMVERTEX defined?

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