Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  3. Unity 2017.2 is now released.
    Dismiss Notice
  4. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  5. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  7. Unity 2017.3 beta is now available for download.
    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:
    215
    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. [​IMG]
    3. [​IMG]
    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.
    [​IMG]

    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:
    215
  3. liverolA

    liverolA

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

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    215
    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:
    215
    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:
    215
    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:
    215
    How it works. ( Old prototype. Now everything in one app. )

     
  9. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    526
    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:
    215
    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:
    215
    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:
    215
    Very interesting. I think it can put idea of manipulator into a somekind of standart.
     
  17. ZJP

    ZJP

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

    Kos-Dvornik

    Joined:
    Jan 3, 2012
    Posts:
    215
    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:
    215
    D3m0n likes this.
  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:
    215
    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:
    215
    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:
    215
    Simply run .exe file. I've just test it. Seems everything is ok.