Commit ddd63297 authored by Matthias Möller's avatar Matthias Möller
Browse files

add info about texture index property

refs #2512

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1307 fdac6126-5c0c-442c-9429-916003d36597
parent bd895da3
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment