I'll write up more about this, but basically I was renaming .mmh files and changing the material reference but leaving the .msh and .phy references the same. I was also, of course, renaming and editing a .met file to go with the .mmh.
Here's a thread about it.(where you and mikemike helped me immensely, I might add.)
And a follow up thread (with complications).I found that this method doesn't really work with the lightmapper, because during the initial LM process the lightmapper looks for .msh files with
exactly the same filename as the .mmh file. It then copies those .msh files to the temp directory. Then, when the actual stages of lightmapping, ambient occlusion, and shadow mapping are being done, the lightmapper actually looks for the .msh file referenced within the .mmh in the Temp directory rather than simply looking for a .msh file with exactly the same name. So it uses one method to find and copy the .msh and another method when it's actually using it.
This is why some models seemed to work with that first method and some didn't -- models which I'd used the original version of had already had their meshes copied to the temp directory and worked, while models I'd never used the original version of didn't work -- there was no identically named .msh for the lightmapper to copy over, so I got an error at every step about there being no .msh file in the temp directory.
One awkward workaround was to put the original models in every level along with the retextured ones, so the correct .msh file is copied to the temp directory during the beginning of the lightmapping process.
What I've ended up doing is actually renaming the .msh and .phy files and putting them in the data folder as well, and changing all the references within all the files, with the exception of 2 places which don't seem to matter, and actually seem to screw things up.
Another benefit of this method is, I don't think I have to include the .msh and .phy files in the package I give the user, because I can just use the renamed .mmh I wanted to in the first place when it comes to using the models in the game.
Anyway, sorry this is so rambling, I'll try to write it up more clearly soon. (As well as the tutorial for the wiki I promised.)
Modifié par Talisander, 08 juin 2010 - 07:01 .