I cant load model and multiple textures with assimp

Hey, english is not my main language ...


Ammmm I am learning how to load models with opengl and i've loaded many *.obj models and textures but recently i downloaded the assimp library ... haha sorry but my english is ugly ;-;

well ... i want to load *.obj models with multiple textures and with assimp but i cant ...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct
{
	eiVBO data; // A class which contains the vertexs, normals and texCoords
	std::vector<unsigned> ctrMaterials;
	std::vector<unsigned> ctrFaceGroup;
	std::vector<unsigned> ctrFaceGroupSize;
				
	std::vector<bool> hasNormals;
        std::vector<bool> hasTexCoords;
				
	std::vector<std::string> texturesDir;
        std::vector<eiTexture> textures;
}model;


Thats my structure and i've loaded everything ! vertexs , normals , texcoords, textures .. everything is loaded and i cant paint it on screen with textures ... because i dont know how assimp indicates when a texture begins ...


for example ...

this is an *.obj file ...

1
2
3
4
5
6
7
8
9
10
11
12
13

f 2027/1939/941 1148/1788/1889 1147/1789/1890
f 2027/1939/941 1147/1789/1890 2044/1956/2023
f 2044/1956/2023 1147/1789/1890 2045/1957/2024
f 2045/1957/2024 1147/1789/1890 1146/1790/1891
# 656 triangles in group
g LOD_0x1_28_28_0x14d40020_236980
usemtl Material07       // <---------------i know that here begins a texture
f 2604/1969/2032 2231/38/2033 2232/1969/2034
f 2097/1970/2035 2096/1971/40 2095/1972/2036
f 250/102/146 252/104/40 251/103/147
f 2057/1973/2037 2053/1974/2038 2605/1975/2039



but assimp do not tell me where start it ! T_T or yes ? somebody knows ? someone can help me ? xd


again ... sorry for my english >< please help me I have ... two hours trying to resolve it T_T
Topic archived. No new replies allowed.