Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Mage Fight - a game based on mid-cost Web camera motion controller

Discussion in 'Made With Unity' started by Kos-Dvornik, Jun 17, 2012.

  1. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Hello to everyone!

    If you want Kinect experience without a device and want to use it with Unity you can try my 3rd person multyplayer game.
    Everything that you need is just mid-cost web camera ( i've used Logitech 120 ), RED not shiny marker and good lighting in your room :)

    DOWNLOAD LINKS:
    http://www.4shared.com/zip/Zpnco_pD/MageFight_v2.html
    https://docs.google.com/open?id=0BxgYUKP-c4dJMGdSTGNJYzBCeWs

    Quick start:
    1. Start game as usual.
    2.
    3.
    4. Go to pause menu by hitting ESC and choose Use Web camera
    5. Try to move your red marker around and see what happening. Camera should move accordingly to your marker moves.
    6. You should look like this to get best results :) Marker shape doesn't matter, size should be same.


    If something strange going with a camera try to use FABRIC RED MARKER ( plastic is bad as marker cuz it's have white specular material :).

    Now boring story:
    That game was developed a long time ago before Kinect was released under Unity 2.6 as university term project. I've used self-developed stand alone application for recognizing and .Net sockets for translating data between Unity and application. Everything worked fine but sometimes bugs occurs. And now Unity 3.5 bring us WebCameraTexture support. I was so happy that day and decided to rewrite my project. Some time after hard-coding and Mono optimization I've got this. Yeah I know it works not perfectly, but everything now in one .cs file and can be easy tweaked. So if you interesting in it please write me.
     
  2. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
  3. liverolA

    liverolA

    Joined:
    Feb 10, 2009
    Posts:
    347
    Please upload this to mediafire or other hosts,4share need register
     
  4. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Sendspace:
    http://www.sendspace.com/file/a6gte3

    I've uploaded it to google drive ( see post ), so you can download it without registration :)
     
  5. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Last edited: Jul 14, 2012
  6. suctioncup

    suctioncup

    Joined:
    May 19, 2012
    Posts:
    273
    Awesome. Now time to make a helmet with a big red dot on the front - virtual reality here we come!
     
  7. kiranmaya

    kiranmaya

    Joined:
    May 27, 2010
    Posts:
    218
    im downloading it ,but i don't have any red color object .

    instead of red color , put some black colors ,since we all have black color phones as a marker
     
  8. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    How it works. ( Old prototype. Now everything in one app. )

     
  9. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,080
    will you release a plugin? :)
     
  10. Myaka

    Myaka

    Joined:
    Jul 7, 2012
    Posts:
    84
    Indian girls would love that!
     
  11. mocaponeuk

    mocaponeuk

    Joined:
    Oct 17, 2012
    Posts:
    20
  12. mocaponeuk

    mocaponeuk

    Joined:
    Oct 17, 2012
    Posts:
    20
    whats this do?
     
  13. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Hi again. You have asked about plugin. Ok.
    Some epic contest:
    3 best ideas of How to use this Manipulator will receive it for FREE. I will provide it via personal message. Judges: me and my dog Rex. So don't disappoint him :). Time: week or two, depend on how many people will be interesting in it.

    Tutorial on how to use manipulator:
    http://kostiantyn-dvornik.blogspot.com/2013/01/sexy-unity-web-camera-manipulator.html

    Good Luck!
     
  14. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    1st place idea will get WHOLE GAME FOR FREE
     
  15. godsic

    godsic

    Joined:
    Jan 28, 2013
    Posts:
    5
    I would suggest to use Raspberry Pi to create a truly standalone solution. Ideally, it could be complemented by HID-level driver for Windows/Linux and (or) corresponding SDK.

    The computational power of Pi's GPU should be sufficient enough to make image post-processing on Pi only. Since Pi runs full featured Linux, you can allow people to upload their custom filters/drivers of arbitrary complexity so they could get not only KINECT-like experience, but also other stuff, e.g. stereoscopic video, real-time OCR, etc.
     
  16. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Very interesting. I think it can put idea of manipulator into a somekind of standart.
     
  17. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    ... and you will be hired by Microsoft, next year. ;)
     
  18. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Game have lot of my custom art like fireball particles, skyboxes, grasses, trees and rocks
     
  19. Spinje

    Spinje

    Joined:
    Sep 13, 2012
    Posts:
    2
    Hey Kos, an idea for your contest. Ever heard of Oculus Rift? Take a look here http://www.oculusvr.com/. If you combine their technology with yours you would only need to track arms with the webcam and then digitally represent them in the game, moving ingame as you move them irl. I would really like to play around with your program, give me a pm please <3
     
  20. leclercqtom

    leclercqtom

    Joined:
    Oct 1, 2013
    Posts:
    1
    Could u release the sources that manage the tracking of the ball ? thank u very much !

    Nice work !
     
  21. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
  22. princeadj14

    princeadj14

    Joined:
    Apr 15, 2013
    Posts:
    3
    sir why the multiplayer the client was not spawn? but this is really great work :)
     
  23. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Can you describe how you start the games. Same app is client and server at same time :)
     
  24. silkroadgame

    silkroadgame

    Joined:
    Apr 9, 2013
    Posts:
    101
    Awesome game.
    And the whole design is indeed friendly for eyes.
     
  25. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Thanks, silkroadgame
     
  26. MP2014000

    MP2014000

    Joined:
    Jan 15, 2014
    Posts:
    1
    Can you tell how I have to run the application? To give everyone a player
    excellent game
    And a great application for web camera
     
  27. Kos-Dvornik

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    224
    Simply run .exe file. I've just test it. Seems everything is ok.