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

3D Nes Emulator

Discussion in 'Works In Progress - Archive' started by vutruc80, Nov 23, 2015.

  1. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Update 08/03/2016

    Finally the beta is ready:
    http://tructv.bitbucket.org/3dnes/
    It only runs on Firefox for now.
    Have fun!
    ------------------------------------------------
    Update 19/02/2016

    Hi all,
    The beta release candidate trailer with many new features : better shape segmentation algorithm, transparency, z layers etc ...



    Update 31/12/2015
    Big Improvement On Graphic With Lights And Shadows
    ...
    ------------------
    Everyone says that Unity is not suitable for emulator stuff so in the beginning i take it as a personal challenge. In the process, i realize that Unity is fully named Unity3D for a reason so i change my mind and make a 3D Emulator.
     
    Last edited: Mar 8, 2016
    ZeroFlame, Slaghton, Mich_9 and 4 others like this.
  2. GMM

    GMM

    Joined:
    Sep 24, 2012
    Posts:
    301
    I'm not completely sure what this is, is this some kind of system that utilizes a real NES emulator and converts the elements into 3D, or just a "remake" of SMB in Unity 3D?
     
  3. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    It's the Emulator that converts elements into 3D, it can also run other games, not only SMB
     
  4. GMM

    GMM

    Joined:
    Sep 24, 2012
    Posts:
    301
    That's very cool then, how do you figure out the depth of certain items?
     
  5. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    It's really a gambling problem :). I must guess it based on several heuristic rules.
     
    Last edited: Nov 23, 2015
  6. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    wtf?? really??

    can it play rush'n'attack ? some reason i really like that game, romhacking site has an editor for it, i spent some time making really hard levels in it , never finished making it but games cool lol

    oh .. duh, what about Zelda?

    or Adventures of Lolo that game was pretty sweet
     
  7. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    I never play rush'n'attack, about Zelda, i have just tested it. It turns out that the background depth and z position is not correctly calculated. I'm currently working to fix this problem.
     
  8. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    Um, you've got to be some kind of genius... How in the hell does it know the pipes are round and hollow? And that the turtle shells, goombas, and bushes are rounded?

    I mean, it's absolutely unplayable but this is incredible.
     
  9. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Fascinating. How in the world... I'm impressed. This seems so crazy to even take on. Anyway how in the crap did you figure a way to open ROMs and pull data from them? Was there an open source library based on NES or something you referred to while developing this? What are your plans with it? Is it just a fancy toy you've made to experiment with?
     
  10. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    I know so it knows! Just kidding :D To make life simple, i suppose that everything in the world is just rectangular or eclipse, vertical or horizontal, solid or empty. It's enough to make a decent 3D world. The prediction is still far from perfect, it is just at the very beginning step.

    I agree that first person view game play is unplayable for Mario but it maybe is playable for top down game play. I don't know, we have to test it first. Maybe it just play the role "icing in the cake" for the engine.

    For the third person view game play, it's absolutely playable i think.
     
  11. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    It all started with this post
    http://forum.unity3d.com/threads/nes-emulator-in-unity.263700/
    I downloaded and tried it. Even without sound, the speed is horribly slow even in PC. I searched the Unity Forums and everyone said that Unity is no good for emulation. So i tried to create a lighting fast emulator even for Unity and even for mobile. At the current state, the emulator clocks 400 fps on a three year old Core i CPU.
    The 3D stuff was inspired from this clip:



    His idea is technically very simple: add a fixed depth to the 2D output image and put the whole thing in front of a 3D camera. However the effect is already quite good for certain games. That inspired me to create a truly 3D GPU (PPU in terms of NES World) that can turn a 2D NES game into 3D game.

    Nes Emulation was already analyzed to death by the community. You can take a look at :
    http://wiki.nesdev.com/w/index.php/Nesdev_Wiki
    for the complete reference.
    I don't have a clear plan with it yet. For the moment i just want to try my best to know its/my max potentiality.
     
    Last edited: Nov 25, 2015
    MD_Reptile likes this.
  12. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    Awesome!!!

    yeah lol rushNattack not really that cool of a game lol just came to mind,
    lol i like that youre a dude with a knife and some the enemies have guns, feels more macho haha thats why i liked the game

    adventures of lolo is a real cool puzzle game though

    good luck on making this! its really cool
     
  13. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Hello Everyone!
    Longtime no see :D.
    Lately i'm working to improve the vision and sound.
    Lighting and shadows are added.
    And now it's time for showcases.
    Next step, i will work on depth layers problem.





     
    MD_Reptile likes this.
  14. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
  15. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    A question occurred to me - how do you create the models based on the graphics? Is it some dynamic mesh kinda deal, like spawning voxels and combining them like the sprite? Are they generated on the fly when you load a rom at runtime? Or is the rom and everything changed in editor and scenes then just contain precreated models as well as the rom?

    I guess I'm asking, do you load the rom from the end build or in the editor and what voodoo you do on them sprites?
     
  16. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    The rom is load from the end build and the 3d mesh of any 2d sprite will be created in runtime.
     
  17. mathias234

    mathias234

    Joined:
    Sep 9, 2012
    Posts:
    239
    Nice project! Plan to go open source?
     
  18. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    I don't have this plan in the near future.
     
  19. kurotatsu

    kurotatsu

    Joined:
    May 10, 2012
    Posts:
    588
    May i see ninja gaiden 1,2, or 3, please if it isn't too much trouble.I would buy this in a heartbeat.
     
  20. mathias234

    mathias234

    Joined:
    Sep 9, 2012
    Posts:
    239
    If I am not wrong, he isn't allowed to sell it.
     
  21. kurotatsu

    kurotatsu

    Joined:
    May 10, 2012
    Posts:
    588
    I mean to say I would use it.;)
     
  22. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Hi all,
    The beta release candidature trailer with many new features : better shape segmentation algorithm, transparency, z layers etc ...



    Test Pool contains :
    - DrMario
    - Legend of Ninja
    - Mega Man
    - Super Mario Brothers 3
    - Zelda Link
    - Contra
    - Castle Vania

    Please share your thought.
    The beta release will come soon
     
    kurotatsu, 4s4, Stardog and 1 other person like this.
  23. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,533
    fantastic seeing the demos.. not sure I'd want to play a whole nes game in the 3d, but it makes for great viewing :D
     
  24. SAOTA

    SAOTA

    Joined:
    Feb 9, 2015
    Posts:
    220
    this is gonna be epic with a HMD.
     
  25. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    AWESOME! can hardly wait!
     
  26. Lesnikus

    Lesnikus

    Joined:
    Aug 29, 2015
    Posts:
    47
    It may launch in standard 2D-mode? Or only 3D-mode?
     
  27. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    3D front facing is similar to 2D
     
  28. Kale

    Kale

    Joined:
    Aug 25, 2011
    Posts:
    103
    You sir, are some kind of genius.

    That's pretty amazing, I have no idea if it's really appealing when playing or not, seems cool for some games. But that project itself is just amazing.
     
  29. Lesnikus

    Lesnikus

    Joined:
    Aug 29, 2015
    Posts:
    47
    3D reduces performance, and it does not need me. I've been looking for just the SNES-emulator in Unity3D.
     
  30. B-Mills

    B-Mills

    Joined:
    Mar 28, 2013
    Posts:
    14
    What a great idea. I am super impressed with the results and how natural it looks in 3d. How are you interpolating the 3d volumes so well? It seems so well done it's amazing to think their being automatically constructed.

    Awesome stuff man!
     
  31. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    - It may launch in 2D mode. In fact 2D rendering is pre-condition for 3D rendering.
    - It is a Nes Emulator, not SNES emulator
    - It's fast, can reach several hundreds framerate with a Mac Mini
     
    Last edited: Feb 27, 2016
    Lesnikus likes this.
  32. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Finally the beta is ready:
    http://tructv.bitbucket.org/3dnes/
    It only runs on Firefox for now.
    Have fun!
    ----------------------------
    Could any mod move this thread to Made With Unity please?
    Thank you.
     
    Last edited: Mar 8, 2016
    600 likes this.
  33. 600

    600

    Joined:
    Dec 18, 2013
    Posts:
    385
    Cool!
    Seen on news sites too ;)

    Geekologie.com
    Engadget.com

    ^ links to articles
     
  34. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Hello every one, long time no see :)
    I'm here to report my progress on PC Build :

    Tetris:


    Chip&Dale:


    Feel free to share your thought.
     
    MD_Reptile, SAOTA and 600 like this.
  35. virror

    virror

    Joined:
    Feb 3, 2012
    Posts:
    2,963
    Awesome! Seems like the sound still need some work though : )
     
  36. SAOTA

    SAOTA

    Joined:
    Feb 9, 2015
    Posts:
    220
    Coming along nicely. Let me know if I need to try this in a Oculus DK2. I can do some controller mapping and pass it along.
     
  37. StevenPicard

    StevenPicard

    Joined:
    Mar 7, 2016
    Posts:
    859
    Looks awesome! I hope to try it out later.

    I'm with you on Rush 'n Attack. It's one of my favorite NES games and I am not 100% sure why. lol
     
  38. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    I will try to record a Rush'n Attack clip :)
     
  39. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    3DNes is coming out with ingame realtime editing feature.
    Part 1:
     
    kurotatsu, MD_Reptile and ADNCG like this.
  40. j03d4d

    j03d4d

    Joined:
    Oct 4, 2013
    Posts:
    21
    That's F***n sick . . .
     
    KAPOOOW likes this.
  41. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Awesome man! That is seriously looking like a great editor you got going. What's the plan with release? You gonna sell this somehow?
     
  42. ElectroMantis

    ElectroMantis

    Joined:
    Sep 15, 2013
    Posts:
    78
    Editor looks spiffy. So I take it you can download 3D configuration files other people make, and load 'em in?
     
  43. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Yes, do you think there is any legal problem with this plan?
    Yes, it's just a 3d data file for a game, you and the 3dnes create it so backup and share as you want i think
     
  44. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Well I'm no lawyer, and couldn't say for sure, but at the very least if you run into legal roadblocks, put a way to donate to you or something for anybody who uses it. You've obviously been cracking away at this a good bit and should be rewarded somehow for it!
     
    kurotatsu and vutruc80 like this.
  45. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    MD_Reptile likes this.
  46. Mark_S220

    Mark_S220

    Joined:
    Sep 17, 2016
    Posts:
    1

    Super Mario Bros 3 Version 1.1.0
     
    StevenPicard likes this.
  47. placebo_yue

    placebo_yue

    Joined:
    Jan 4, 2017
    Posts:
    3
    Great work man, totally worth having for anyone into emulation and/or owner of an HMD. Any chances this gets done with other consoles like gameboy or sega genesis?
     
  48. vutruc80

    vutruc80

    Joined:
    Jun 28, 2013
    Posts:
    57
    Steam Early Access Release Trailer

     
    funbites and Gruguir like this.