![]() ![]() 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. The texture index is the same index as the index written in the texture mapping. There is no other option you have to define for reading texture information beside of the request of the property.Īdditionally, the OBJ loader writes the texture index per face, if the property "face_texture_index" is requested. This property will be automatically created, if textures were found. These texture information (includes texturename and index) will be saved in the property of type: The OBJ-reader can also read information about the textures in the *.mtl file, if available. Therefore, you have to request the "halfedge_texcoords2D" property Note Face Tex Coords will not be saved as a property per face, but as a property per halfedge. Otherwise, they will not be written into the mesh. For instance, if you enable Options::VertexNormal, your mesh has to request vertex normals. Please take into account, each mesh has to request the standard property before loading with the corresponding option. The file format itself is selected by the extension of the filename. ![]() These bits have different effects when reading or writing.
0 Comments
Leave a Reply. |