Matrix Fall X (source code in c++)

0 Flares Twitter 0 Facebook 0 Google+ 0 Pin It Share 0 Email -- 0 Flares ×

This code emulates the falling code effect (digital rain effect) from the Matrix movie.
It uses the authentic fonts and a new particle engine for better visual effects.


Coded in c++ with the OpenGL API. Source code included.

This code received the ‘Superior Code’ award for Planet-Source-Code and many great feedbacks from programming websites.
Source code is fully documented in French.

Hope you like it !

Matrix Fall X, Matrix Digital Rain effect in 3D (c++)

(A french version of this post can be found on this blog)

And a Visual Basic version (Matrix Fall 3D) can also be found here (possibility to set custom texts)


0 Flares Twitter 0 Facebook 0 Google+ 0 Pin It Share 0 Email -- 0 Flares ×


  1. I was browsing through the internet for matrix digital rain look-a-likes, because our yearly school theater is all about the matrix (the first one), and now that i found your beautyfull projekt (Matrix Fall X), i almost think that my search for great visuals is over… But i would like to know if there is a way to change the font you are using, so my school group could use our own wannabe matrix code font for the play.

    if it is of any interest, then i can tell you that we are from Denmark, and that we would be very happy if you could help us by telling us how to change the font. We have the necessary software if any is needed

    thank you for your time!

    P.S sorry for bad grama

  2. hi, thanks for your message, I really appreciate it.
    The change the fonts, simply open the “fontes_vertes_alpha.png” and “fontes_blanches_alpha.png” files.
    Those are PNG files and can be edited in any good image editor.

    Also check this other project (older) which is quite similar but has more functionnalities and gives you more control over what is shown:

    source code is included too.



  3. zani

    i can’t download it πŸ™

  4. Just tried and it works…

  5. Great job. Real magic.Thanks so much.

  6. Thanks
    you’re welcome.

  7. n

    Hi, this is great. I was wondering whether the documentation was available in English, since that would really help me.

  8. no, not for this one.

  9. Hey thanks for this download! I have been looking for this!!! Thanks!

  10. Thank you very much, great code, but I thought the lines started at the top always? In your version, the code starts in the middle

  11. they start pretty much everywhere in this version…
    an “artistic” choice I guess πŸ˜‰

  12. NickV

    Great effect and good code.

    It would be great if you could publish one with comments in english too !


  13. yeah well, it was a long time ago
    but tkx!

  14. Oscar

    Your web page is awesome!!!! thanks for your code and help too. I was looking for many days and finally i have it. I have one question: the code can run in a window? if so can u tell me how? thanks again…

    IΒ΄m colombian sorry for bad grammar.

  15. yo, yeah it sure can run in a window but you’ll have to look at the code… I think it’s just a line of code to change but I’m really not into c++ right now
    good luck!

  16. raghava

    Can any one tell me a method to execute it i am a learner in c,but i m very enthusistic to matrix fall 3d
    please get me some way to execute it
    if u can mail me the program rewritten please post me that to………………………………

    well i feel very good to be one among the blog

  17. AWSOME, thanks for the code.

  18. warin

    when i started it i and seen it i cried a little… its so beautiful

  19. πŸ˜‰ tkx!

  20. Benjamin

    Hi guys!

    I would like to know how to create a matrix fall but with specific names and words I would type, instead of just letters. I have to specify I’m a novice in programming so do you know if there is a software that can do it?

    By the way Thomas, your animation looks quite good.



  21. hey
    there might have a software out there to do what you’re looking for but I don’t know it.
    You can try my Matrix Fall 3D source (on this blog) as it allows you to show custom texts (but not the way you want it)
    You also can try to modify the sources… it’s possible and with not too much efforts but I won’t be able to help you as it is quite some work.

  22. Benjamin

    Thanks for your answer Thomas, I don’t know how to modify a source but I guess now that I should learn it πŸ™‚

  23. Rudhin

    Oh man………. this is really cool man…………….i love it i love it i love it

    can you please provide me the code of its very basic version, for turbo C++, to the mail ID that i have provided ????

    thank you very much

  24. this is the only source code I can provide
    have fun

  25. neeraj

    hey great work,its really beautiful piece of work .keep it up man….

  26. Niko

    This looks really awesome.
    But i am running windows 7 on a widescreen laptop, so it only shows the Matrix effect in the middle πŸ™
    Any solution to get it full widescreen so i can use it as screensaver ?

    And can u make other c++ codes that looks that awesome πŸ™‚

    Thanks alot man πŸ™‚

  27. hey
    tkx for your message
    I’m not working on this anymore.
    Sources are there… maybe give it a try πŸ˜‰

  28. Plex3000

    Can someone tell me how to modify the code? I mean, I see the .cpp files but I’m not sure how to actually change, save and compile them. Thanks in advance. Please answer by email, thanks:

  29. Ijiin

    I know this is a old project of yours but nevertheless still amazing.
    i was wondering if you maybe could point me in the right direction regarding upping the resolution to atleast 1920×1080.

    i know you have that option on the other one you made. but i really prefer this one more..

  30. hey
    thx for your nice comment, unfortunately, my knowledge of opengl/c++ has faded away a bit and I won’t be able to help you on that if I don’t dig myself into it again. I don’t have enough time to do that at the moment but if you find out, feel free to post it in the comments !


  31. djaw0l

    @Thomas: really cool project, thanks a lot!

    @Ijiin: in main.cpp, line 663 and line 701. Make two defines in main.h, that will make it easer to change the resolution. 4k worked fine for me πŸ™‚

  32. thanks djaw01

  33. Anders

    @Thomas, @djaw01, what development environment would be best for trying this? I currently use Visual Studio 2015. Any particular configs I need to do to be able to compile?



  34. Heya

    I’m not doing any c++ dev anymore but I guess Visual Studio is still one of the best solution out there.
    I did this quite some time ago (probably more than 10 years ago), it would surprise me if you didn’t have to change a couple of things here and there to make it work…
    Good luck !

Leave a Comment