Jump to content
  • Advertisement
Sign in to follow this  
blowing20

I have puzzled in 3d vertices

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

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
Advertisement
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
Both are as accurate as floating point numbers can be.
The difference is probably in the view matrix.

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!