So far I've used the same texture coordinate for both the normal and diffuse textures on a mesh, yet when reading the Assimp documentation (http://assimp.sourceforge.net/lib_html/structai_mesh.html#details) on a Mesh, it implies that there can be more than one texture coordinate sets per mesh.

My question is, in general what scenario would these be present and what is their purpose?


Multiple texture coordinates per mesh what is their purpose?

Multiple texture coordinates set can be used to achieve different texture mapping per mesh, this helps achieve different visual effects that are otherwise hard to accomplish and may require multi-pass rendering.

What scenario would these be present?

For example Reflection mapping usually uses different texture coordinate set other than the one used for applying the basic diffuse texture, this is needed to achieve the illusion of reflection, since perfect reflection isn't usually feasible in real time renderings and may not even add much to the rendering quality. Note that texture coordinates that are used for reflection mapping might be calculated at runtime based on normals, in other cases they can be precomuputed.

Other examples for the use of multi-texture coordinates may include light mapping and alpha mapping.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.