2010-11-12, 10:12 PM
I'm not sure btw why your mdl file is not standing flush with the floor. I believe for Tin Man mdl files the ones that come with Som all use (0,0,0) for the root control point. So make sure (0,0,0) is floor level and between your models feet. The "Scarecrow" models use a cyan control point for their root. You may be able to include a cyan control point in a Tin Man mdl file to use a root other than (0,0,0) ... I don't know if there is an advantage to that or not.
Otherwise you'll need to figure out what direction is up etc for the file format you're using. It may not be consistent... x2mdl is dependent upon the Assimp importers. I'm assuming the importers won't recenter your model, though I suppose it's possible. If that's so you can try either inserting a cyan control point. If that doesn't work I'll add something to x2mdl to detect a cyan control point / reorient stuff around it (I think I'm just trying to cover all my bases here ... it's not likely to be a problem)
PS: Cyan is (0,255,255) ... fully saturated green and blue. Read about control point colour coding somewhere near the top of this thread (I'm thinking) ... btw we'll probably need to try some stuff out for control points colouring. Presently x2mdl only recognizes per vertex colour in order to distinguish the colour of cps. In other words using a red material/texture isn't good enough. I don't know if Meta' supports per vertex colour or not. I could add support for material properties, but not textures. Still per vertex is best. Let me know. Any vertex that is not pure white colour wise is considered to make up a control point.
Otherwise you'll need to figure out what direction is up etc for the file format you're using. It may not be consistent... x2mdl is dependent upon the Assimp importers. I'm assuming the importers won't recenter your model, though I suppose it's possible. If that's so you can try either inserting a cyan control point. If that doesn't work I'll add something to x2mdl to detect a cyan control point / reorient stuff around it (I think I'm just trying to cover all my bases here ... it's not likely to be a problem)
PS: Cyan is (0,255,255) ... fully saturated green and blue. Read about control point colour coding somewhere near the top of this thread (I'm thinking) ... btw we'll probably need to try some stuff out for control points colouring. Presently x2mdl only recognizes per vertex colour in order to distinguish the colour of cps. In other words using a red material/texture isn't good enough. I don't know if Meta' supports per vertex colour or not. I could add support for material properties, but not textures. Still per vertex is best. Let me know. Any vertex that is not pure white colour wise is considered to make up a control point.