Implementing MQTT into Unity Game Engine: A 3D Parking Experience

Β·
Β·

Hello everyone! In the video below, I present my personal project "Implementing MQTT into Unity Game Engine," my first-ever community post. This project brings to life a 3D world; a dynamic parking lot experience where I control car lights and lampposts using MQTT, all within an immersive visual environment. I utilized the Unity game engine alongside HiveMQ's free MQTT broker client. This made testing the MQTT connection incredibly easy, with no download or installation required. My goal was to implement MQTT into Unity and utilize Unity's powerful 3D rendering capabilities (initially, I only controlled one car's lights). However, as I progressed, I aimed to create an even more captivating 3D world, thanks to some free assets I found on the Unity Asset Store. My passion for cars, combined with my modest experience in Unity, motivated me to enthusiastically undertake this project. Integrating MQTT into Unity posed significant challenges, especially given the limited availability of free resources. Throughout this project, I learned a great deal and enjoyed the creative process of bringing it to life.

  • Avatar of Scott
    Scott
    Β·
    Β·

    Fun! Thanks for sharing Badreddine Kerkeny β€” were you inspired to try out Unity with MQTT based on our earlier event with Andreas Vogler?

  • Avatar of Badreddine Kerkeny
    Badreddine Kerkeny
    Β·
    Β·

    To be honest, I had been considering this idea for quite some time. Having previously implemented MQTT in mobile and web applications, I found myself limited by the capabilities of 3D rendering, which Unity excels in. Attending Mr. Andreas Vogler’s webinar on MQTT and Unity further inspired me to undertake this project.

  • Avatar of Scott
    Scott
    Β·
    Β·

    That's awesome. Really appreciate you sharing it with the community 😍 and glad you got some motivation from the event too.

  • Avatar of Andreas Vogler
    Andreas Vogler
    Β·
    Β·

    cool demo! 😎

  • Avatar of Badreddine Kerkeny
    Badreddine Kerkeny
    Β·
    Β·

    Thank you very much.

  • Avatar of Rodrigo
    Rodrigo
    Β·
    Β·

    Very interseting. I didn't know that Unity can be used this way.

  • Avatar of Rodrigo
    Rodrigo
    Β·
    Β·

    Very useful for demos

  • Avatar of Andreas Vogler
    Andreas Vogler
    Β·
    Β·

    Rodrigo Some time ago we had a session about how to combine the 3D world of Unity with MQTT: https://www.youtube.com/watch?v=fNP9cYg98ZE

  • Avatar of Brian Gilmore
    Brian Gilmore
    Β·
    Β·

    this is awesome! Anthony Olazabal