XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

VertexPositionTexture: How does the vertices match the texture point?

Last post 11/13/2009 10:08 PM by Kyle W. 1 replies.
  • 11/13/2009 8:02 PM

    VertexPositionTexture: How does the vertices match the texture point?

    So, I'm a little confused on how the vertex point is matched up to the texture point and what post-processing is happening to apply the texture?

    I played around with it, but it is a little hard to discern what is exactly happening.
  • 11/13/2009 10:08 PM In reply to

    Re: VertexPositionTexture: How does the vertices match the texture point?

    Every vertex has a 2D UV coordinate stored with it. This 2D coordinate maps to the part of the texture that corresponds to that vertex. In UV space, typically the lower left corner of the texture image maps to UV coordinate (0,0) and the upper right corner of the image is (1,1). You lay out the UV coordinates in the 3D modeling package used to create the model. It then just stretches the texture across each polygon based on the UV positions of each vertex associated with that polygon.
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG