Burning Down the House

These last few weeks I have been banging my head against the proverbial digital wall, trying to get my computer game — or 3D digital game-based learning environment, which sounds more sophisticated — to work just the way I would like. The primary problems were: (1) the door animations in the game just didn’t open and close right and (2) I couldn’t get two animations on the same mesh object to play independently of each other inside of Unity. Taking inspiration from a Talking Heads song, I decided to burn everything to the ground and start over. As trying to explain my problems in written format is difficult, I made a video highlighting what the problems were and the solution I found for them:


So what have I learned? Well, for starters, any changes (e.g., scaling and rotation) you want to make to a Blender object that you will eventually import into Unity *must* be done in Edit Mode, not in Object Mode. If you made these changes already in Object mode then Alt-R will clear the rotation and Alt-S will clear the scaling. Apparently, you cannot include more than one animation armature on an object, which makes animations working independently of each other difficult to create (e.g., opening and closing two doors). However, this worked example by Devin and Calin Reimer shows that it is possible, with some advanced knowledge of how Blender animations work inside of Unity and a handle on the C# programming language. Thanks, Devin! Oh, by the way, if you use Devin’s script in Unity when you have the Terrain Toolkit loaded, you’ll get nothing but errors.

Now it’s just a question of getting the models rebuilt, working on a GUI for the player to use, and getting some of the game functionality programmed. Trying to make the deadline by end of next semester so that I can run an experiment with a beginning German language course and publish the results. Let’s see if I will be able to get everything done by then.

14 thoughts on “Burning Down the House

  1. Hmmm…that's strange about the video. As for the game, I'll just release it as an open source project. German language teachers will be able to use it for free as a classroom resource. Besides, I doubt it will be as good as Half-Life 2 so that people would actually pay money for it.

    Like

  2. I would! Then I'd, like, show it to all my friends and tell them that I know the guy who made it on BLogspot!

    P.S. How do you make the animation play when you do something in the game? And how do you get textures in the game? (i.e. the cobblestone streets, the clouds?)

    Like

  3. Thanks, Natron1, for the kind comments and for supporting the project. I made the animations in Blender using armatures, key frames, and the timeline. It's sorta complicated and took me a few attempts to get it right. “Blender for Dummies,” “Mastering Blender” (both available on Amazon) and lots of web tutorials helped me out in this area. As for the textures, these books also helped me out. Although the cobblestone texture was easy to apply inside of Unity and the clouds are part of the standard skybox option that ships with Unity. You can make your own skybox with GIMP or Photoshop, but I just didn't want to spend time on developing this at the moment; too many other things to keep me busy.

    Like

  4. Sorry about being glacial. It's the end of the semester and I've been busy with correcting, preparing finals, etc. Hope to get some good development work done in the coming weeks, which will mean more posts.

    Like

Leave a Reply to Natron1 Cancel 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 )

Facebook photo

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

Connecting to %s