From 460e929600d34f56f4b108e26811cba0386921a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Fri, 10 Jul 2015 13:30:09 +0000 Subject: [PATCH] remove hint for texturemapping property request before loading. git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1312 fdac6126-5c0c-442c-9429-916003d36597 --- Doc/tutorial_08.docu | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/tutorial_08.docu b/Doc/tutorial_08.docu index 3759f898..c7a0409e 100644 --- a/Doc/tutorial_08.docu +++ b/Doc/tutorial_08.docu @@ -40,12 +40,10 @@ These texture information (includes texturename and index) will be saved in the \code OpenMesh::MPropHandleT< std::map< int, std::string > > \endcode 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.\n +This property will be automatically created, if textures were found. 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. +to the texture name. But remember, you have to request the face texture index property first before loading the mesh.