I have character models which have different parts, ex: upper body, head, lower body; each part is a separate mesh in the same model. Each part has several textures associated with it (diffuse, normal, etc).

I'm wondering if there is a best practice for associating the textures with the meshes, given a .obj file as the model, for example, and .tga files for the textures.

So for instance, making sure the head textures get mapped on to the head object.

One way would be having a separate file for each mesh, and using the file names to associate them with their textures, but that seems impractical.

Is there a nice, clean way to do this, which is both easy to program (importing and rendering) and easy for the artist?


Question: Facebook API: is it possible to get a user's public profile data by email address?
Answer: Any application can fetch users(application authorized users) facebookID in user basic information via graph api or fql.
for exa.
https://graph.facebook.com/me?access_token=[facebook returned access token]

it will return these information in JSON

{
   "id": "100001114785800",
   "name": "Stella Jackson",
   "first_name": "Stella",
   "last_name": "Jackson",
   "link": "http://www.facebook.com/profile.php?id=100001114785800",
   "birthday": "04/16/1987",
   "gender": "female",
   "interested_in": [
      "female"
   ],
   "timezone": 5.5,
   "locale": "en_US",
   "updated_time": "2010-10-08T13:26:10+0000"
}


Once you get user ID you can fetch user picture via graph api

https://graph.facebook.com/[user facebook id]?fields=id,name,picture
https://graph.facebook.com/100001114785800?fields=id,name,picture

OR 

https://graph.facebook.com/100001114785800/picture?type=small

type can be small, normal, large, square

Best luck Richard