I’m working on some game art, and this early into engine development, I am using OBJ files just to get something on screen. The game I’m developing uses a top-down perspective, which is Blender’s bottom view (keypad 7). While loading the exporter files into my engine, I was perplexed by how the models are the correct orientation in Blender’s 3D view and I had set the forward and up menus to the correct values in the exporter, but the models were a strange orientation in the engine. Looking at the python code, it turns out that even when the values in the forward and up menus match the 3D scene, the exporter applies a rotation matrix to orient the exported model, changing its orientation. This is all manors of asinine.
It turns out that the fix was simple. I added a check box in the “init.py” file that causes the script to ignore the values of the menus and export the model as oriented in the 3D view. I could have removed the axis conversion functionality completely, but I don’t understand why it is needed, which makes me think there actually might be a use for it… Although I am at a total loss as to what that could be.
Anyway, unzip the archive and copy the file into your “scenes->addons->io_scene_obj” folder. I’m using Blender 2.65a, but I would think this would work with prior versions as well.
obj exporter fix.zip (2.94 KB)