best4gotten
02-01-2009, 12:14 PM
Hi guys I know its not the Very right place to ask this question but I just need a small hint..
I am making my 3ds Loader using Lib3ds
I have extracted Vertex data from Meshes and stored into Arrays
I have Extraceted Normal Data and Stored in Arrays
I have Extracted U-V coordinate data and stored in Arrays
However my Models Have texture from Diffuse color of the materials in form of BMP files
I Have Extracted File names for Materials Like this
m_model = lib3ds_file_load(filename.c_str());
for(Lib3dsMaterial* index=m_model->materials;Index!=0;Index=Index->next)
{
printf("\n %s Map Name",Index->texture1_map.name);
// Here I can Use GLAUX Library to convert my BMP files into textures
}
Now I dont know How would I know which BMP file belongs to Which mesh??
Secondly How can I Map It On onto my meshes?
I am using glDrawArray to Draw my MEshes with corresponding Normals/Vertex/U-V Tex Arrays..
Kindly give me some clue about it.
Thanks IN advance
I am making my 3ds Loader using Lib3ds
I have extracted Vertex data from Meshes and stored into Arrays
I have Extraceted Normal Data and Stored in Arrays
I have Extracted U-V coordinate data and stored in Arrays
However my Models Have texture from Diffuse color of the materials in form of BMP files
I Have Extracted File names for Materials Like this
m_model = lib3ds_file_load(filename.c_str());
for(Lib3dsMaterial* index=m_model->materials;Index!=0;Index=Index->next)
{
printf("\n %s Map Name",Index->texture1_map.name);
// Here I can Use GLAUX Library to convert my BMP files into textures
}
Now I dont know How would I know which BMP file belongs to Which mesh??
Secondly How can I Map It On onto my meshes?
I am using glDrawArray to Draw my MEshes with corresponding Normals/Vertex/U-V Tex Arrays..
Kindly give me some clue about it.
Thanks IN advance