Original Post
Hello, I'm currently writing a class that both loads and renders a 3ds model. I'm using OpenGL to render the model, but I have a problem. I want to apply textures textures on the model, so I figured that
Quote:would contain the texels for my texture. So what I did was, I've made a loop that loops through all the meshes of my lib3ds model, and if it has texels(if(mesh->texels)) then I create a texture for that mesh and save the texture index in a vector. Although I don't exactly know what they mean with nodes and meshes(and what there differences are), I'm pretty sure that a model can be build of thousands of meshes right? and if you have multiple models, it can easily get up to 10000 meshes. And I'm pretty sure that OpenGL doesn't support that many textures. So my question is, how can I do this by, in example, using 1 texture for a model? Thanx in advance, Hylke
file->meshes->texelsL