Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Very simple Mandelbrot fractal demo

    Creation share codes
    6
    12
    577
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Doriphor
      Doriphor last edited by

      Hey!

      This will be my first submission and I figured I'd start with something simple, fun and interesting, namely a port of PS2 Yabasic's MANDELBROT for FUZE4. This came on the demo DVD that came with the PS2 when you bought it originally (because Sony was trying to get a tax rebate for selling a 'computer' instead of a console) and there are a few more I could probably port if people are interested!

      Code: NXK7LNTMCY

      Screenshot: EmZGHpdUYAAxtxu.jpg

      1 Reply Last reply Reply Quote 11
      • PickleCatStars
        PickleCatStars F last edited by

        Fire away! I’m always interested in neat little demos like this..

        Doriphor 1 Reply Last reply Reply Quote 1
        • Doriphor
          Doriphor @PickleCatStars last edited by

          @toxibunny I submitted another one. I'll tag you in the post when it's approved :)

          1 Reply Last reply Reply Quote 2
          • vinicity
            vinicity F last edited by

            Very nice. Maybe add some code so that it is possible to zoom in on a particular area?

            Doriphor 1 Reply Last reply Reply Quote 1
            • Doriphor
              Doriphor @vinicity last edited by

              @vinicity Thank you! The idea behind this was preservation. I might write my own fractal demo in the future and a zoom function would definitely be in the list of features :)

              1 Reply Last reply Reply Quote 3
              • SteveZX81
                SteveZX81 F last edited by

                Very cool! ..but "simple" it's certainly not. ;)

                1 Reply Last reply Reply Quote 1
                • vinicity
                  vinicity F last edited by

                  I remember seeing a real-time Mandelbrot zoom running on a top-of-the-line Archimedes sometime back in 1992, and it absolutely blew my mind!

                  The processing power of a Switch must surely be a huge factor bigger, so I’m thinking it should be doable in Fuze?

                  Doriphor 1 Reply Last reply Reply Quote 1
                  • Doriphor
                    Doriphor @vinicity last edited by

                    @vinicity I'm sad to say that this is not the case. Well if you were to use the Nintendo Switch development kit and wrote a native program, possibly even using some assembly, then I'd 100% agree with you, but not with Fuze.

                    I suspect Fuze is very slow when branching occurs. There is a javascript version of the Mandelbrot Set that will render the same set extremely fast (0.2 seconds for a full-resolution version of this same view). Probably even on the Switch if it had a web browser, but not with Fuze.

                    Maybe we will see some improvements in the future. I'm sure a lot of performance can still be squeezed out of Fuze with updates, getting close to your run of the mill Javascript VM performance might even be possible, but not yet, sadly.

                    1 Reply Last reply Reply Quote 1
                    • Willpowered
                      Willpowered Fuze Team last edited by

                      We're looking to greatly improve the speed in the future with the addition of bytecode, but it'll be a while. I like that you're pushing F4NS to the limit!

                      Doriphor 1 Reply Last reply Reply Quote 2
                      • Doriphor
                        Doriphor @Willpowered last edited by Doriphor

                        @Willpowered Thank you! As a side note, your documentation, as far as I know, doesn't mention being able to use % as a modulo operator. Using % instead of a handwritten mod() function gives a MASSIVE speed boost!

                        1 Reply Last reply Reply Quote 0
                        • pianofire
                          pianofire Fuze Team last edited by

                          It is there honestly! https://fuzearena.com/help/view/modulus

                          Doriphor 1 Reply Last reply Reply Quote 1
                          • Doriphor
                            Doriphor @pianofire last edited by

                            @pianofire Oh, looks like it is! I checked in the wrong section! Sorry about that :)

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post