From ddd63297fea8a6aa2b3a5597eeffb089fcc8feab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Wed, 8 Jul 2015 09:38:06 +0000 Subject: [PATCH] add info about texture index property refs #2512 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1307 fdac6126-5c0c-442c-9429-916003d36597 --- Doc/tutorial_08.docu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/tutorial_08.docu b/Doc/tutorial_08.docu index d22cc195..3759f898 100644 --- a/Doc/tutorial_08.docu +++ b/Doc/tutorial_08.docu @@ -41,7 +41,11 @@ These texture information (includes texturename and index) will be saved in the with the name: \code "TextureMapping" \endcode If you want to use the texture information, you have to request this custom property in your mesh -before loading it with the obj reader. There is no other option you have to define for reading texture information beside of the request of the property. +before loading it with the obj reader. There is no other option you have to define for reading texture information beside of the request of the property.\n +Additionally, the OBJ loader writes the texture index per face, if the property "face_texture_index" is requested. The texture index is +the same index as the index written in the texture mapping. So, it is possible to get the name of the texture from a face via its texture index over the texture mapping property +to the texture name. But remember, you have to request these properties first before loading to use them. There is no option to check, whether texture mappings were loaded or not, +but the size of the map of the TextureMapping property shows, if texture names could be loaded or not.