   Creating X file materials and changing them on the fly
  Hi, i've been researching into x files lately and what I want to do is to load an x file, be able to create materials and save them in the x file and change mesh's materials. I know I have to load the x file put i don't understand how to parse it and work with it to create and modify textures in game.   