Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I use the D3DX shape creation functions to generate a mesh, there are no texture coordinates in the vertices. How can I set texture coordinates?

0
0 Posted

When I use the D3DX shape creation functions to generate a mesh, there are no texture coordinates in the vertices. How can I set texture coordinates?

0
0

To add texture coordinates, you will first have to use the D3DXCloneMeshFVF function to create a duplicate of the mesh with a new vertex format which contains elements for storing texture coordinates (tu,tv). For an example of how to do this, take a look at the source code in Spherical Texture Mapping.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123