Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

markdezonia

Texture coordinates matrix ?

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

struct PANELVERTEX { FLOAT x, y, z; DWORD color; FLOAT u, v; }; #define D3DFVF_PANELVERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1) -------------------------------------- pVertices[1].u = pVertices[2].u = 1.0f; pVertices[0].u = pVertices[3].u = 0.0f; pVertices[0].v = pVertices[1].v = 0.0f; pVertices[2].v = pVertices[3].v = 1.0f; -------------------------------------- I have been using D3DFVF_TEX1 , Texture coordinates Vertices Is there a matrix I can use? Is Texture coordinates Vertices better than Texture coordinates Matrix? Is it harder to code? I have way to many Vertices. Were can I find the code for a Texture coordinates Matrix? Edited by - MarkDeZonia on December 12, 2001 10:59:22 AM

Share this post


Link to post
Share on other sites
Advertisement
The texture matrix will transform the texture coordinates in the same way that the other matrices transform the vertex position.

Look in the SDK docs for information about this - you''ll need to set the proper states for it to work.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!