Archived

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

markdezonia

Texture coordinates matrix ?

Recommended Posts

markdezonia    122
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
CrazedGenius    156
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