Hungry Crocodile: An experiment with webcam/marker-based interfaces

For the July Berlin Mini Jam, I experimented with the input interface. Turns out a cardboard contraption with fiducial markers and Unity3D + NyARToolkit on the software side makes for a fun crocodile maw control system! I didn’t finish the game (you can’t win or lose, you can’t even score), so I declared it a story-focused artgame. That’s how it works, right?

Hungry Crocodile

The crocodile is hungry and wants to eat,
but despite all the food, it can’t!

Because of explosions.

Moral of the story:
Explosions make everything better.

Play in your browser!

Download for Windows!

You’ll need these two markers: Hiro and WD (taken from here).
You’ll also need cardboard to build the maw.

(If you’re wondering why I didn’t use the standard Hiro & Kanji markers –
I just took what was lying around from earlier experiments.)

Despite being unfinished, it was a lot of fun to present:

Hungry Crocodile: An experiment with webcam/marker-based interfaces

Here’s a more detailed look at the cardboard maw:

Fiducial markers to find the positions of the upper/lower jars.
Nom nom!

Credits:

Wizard Defense: A Cooperative Augmented Reality Game

It sucks to be cursed. It sucks even more when you’re standing paralyzed in your own wizard tower while your arch-enemy sends hordes of hungry ghosts to gobble up your mana. Luckily your telekinetic powers are still working fine, and now you are defending yourself by redirecting energy beams from your hands with mirrors and whatever else is at hand.

Wizard Defense

You’re paralyzed. Enemies are closing in.

Redirect the energy beams with mirrors to hit the ghosts and
change their colors at the right time to exploit each ghost’s weakness!

A cooperative augmented reality game for two friends and a webcam.

Play it in the web player!
(Download and print the markers!)

Download it for Windows/Mac/Linux!

The source code is available further down in this post.

How to Play Wizard Defense: A Co-op Augmented Reality Game

You can quit the game by pressing Escape while the menu console is showing.

Solo Play?

If you play alone, you might have some problems – it’s made for two players. If you still want to play alone, here are some cheats you can press after the first ghosts spawned so you can at least experience the gameplay: F10 triples the power of your energy beam, and F11 makes you invincible.

Open Source

This was one of my three big projects this semester, this one for the Augmented Reality course. It’s built in Unity 4, with NyARToolkit to recognize the markers. The japanese documentation makes NyARToolkit a little bit hard to read, but good examples and method names go a long way and we had a lot of fun using it.

You can download the source code and Unity 4 project here. The source code is released under the terms of the GPL v3. The assets (meshes, textures etc) are not released under any particular license. Unless mentioned otherwise on their respective source websites stated in the credits, you are not allowed to use them. If you’d like to use them anyway, feel free to contact me. (Disclaimer: The project was for a university course. Due to time constraints and that not being a requirement, the code is not well documented nor does the documentation fit the C# standards.)

Credits

Screenshots

Finally, have a few screenshots: