I have this weird problem. I downloaded a bunch of chess pieces from http://opengameart.org/content/chess-pieces-0 and I am very pleased with them. The problem is when I export each piece to a .x file they come out on their side not standing up straight. I noticed blender had a z/y axis inversion option for exporting so I tried changing that and re/exporting. This didn’t change the orientation of my models in my game. I then manually rotated them all in the scene and re/exported. This changed the orientation of the exported .x model in the directx viewer that windows opens them with, but still in my game they had the same position.
I should mention a few relevant facts:
I am importing the objects at runtime with a custom script I made, but this problem only occurs with these models.
The objects are stored as actual game objects and cloned to create each instance, so the model being cloned might not be oriented the same as the model is in the file.
I am however using:
Instantiate(storedObjects[i*maxObj+j],mousePos,Quaternion.identity);
Will using the identity quaternion result in the oreintation 0,0,0 or the same orientation as the object being cloned?
Is it possible that unity is storing a copy of the .x file (it is in the assets folder) and not noticing when it gets updated? I know this happens for scripts as I use a third party editor and sometimes my changes don’t go through.