Blendering Blunders

I’ve been spending a lot of time trying to export models from Blender into .X files. I thought it would be trivial, but there’s actually a lot of complications that aren’t obvious. For one, Blender has the up-axis as the Z-axis instead of it being the Y-axis (like in OpenGL and XNA). This will lead to problems when exporting your models, and will cause further complications when you do transformations in XNA. To alleviate this just re-orient your model so that the Y-axis is your up-axis.

When exporting to .X, make sure you apply all modifications and export in the right-handed coordinate system which is what XNA uses. If you don’t, Blender will silently fail when exporting to .X so you won’t know the file is incorrect until you try loading the file and to compound that problem XNA won’t tell you why it failed to load the file. Anyways I’m pretty happy I got that all sorted out.

Now back to programming…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s