Navigation

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

    Anyone done Perlin noise in F4NS?

    Help
    noise terrain smooth perlin
    5
    17
    1038
    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.
    • spt games
      spt games last edited by

      I am looking to smooth out terrain for a 3D game I am working on in Fuze. The random function is too extreme and causes "spiky" terrain.

      I understand the solution is to use Perlin noise, but am struggling to apply the examples I find in other languages to Fuze.

      Has anyone successfully ported Perlin noise to Fuze? Or are you using some other noise/smoothing function to make your 3D terrain less spiky and more natural?

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

        I saw this on Twitter:

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

          Yes, I used Perlin Noise in my Jump a Face game: the download code is: FUZEGJ0103 The noise functions are at the last bookmark near the bottom.

          spt games 1 Reply Last reply Reply Quote 4
          • vinicity
            vinicity F last edited by

            This is an interesting post as well:
            https://fuzearena.com/forum/topic/245/terrain-generator/

            spt games 1 Reply Last reply Reply Quote 2
            • spt games
              spt games @Gothon last edited by

              @Gothon This is really helpful. Thank you 😊

              1 Reply Last reply Reply Quote 0
              • spt games
                spt games @vinicity last edited by

                @vinicity Thats roughly what I am after doing. I've got the road moving and now I want natural looking hills generated dynamically to create the "driving in convoy" look you described":
                20200528_125215.jpg

                I plan to add some trees later too.

                1 Reply Last reply Reply Quote 4
                • mixaal
                  mixaal F last edited by

                  I created this implementation some time ago:
                  https://www.facebook.com/michal.conos/videos/10160159757723765/?notif_id=1605963953905405&notif_t=video_processed&ref=notif

                  It's opensimplex port from python. The real implementation starts on line 336 but the first ~150lines are needed for initialization. Unfortunately it seems the fuze has changed the api a bit so now I'm getting error in setTerrainPoint() method.

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

                    @mixaal Very interesting! Have you shared it?

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

                      I’m interested in this too. I’ve tried to have a look at how to create perlin noise, but most stuff online seems to be ’use the noise() function’...

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

                        Yes, it's shared under my id. SW-4268-9955-3001

                        vinicity 1 Reply Last reply Reply Quote 0
                        • vinicity
                          vinicity F @mixaal last edited by

                          @mixaal Can you do a community share as well?

                          1 Reply Last reply Reply Quote 0
                          • mixaal
                            mixaal F last edited by

                            Working on it now :) Need to fix the setTerrainPoint handle first :)

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

                              Okay, made it to work, the ID should be: NXK1RRZDDE once approved (status pending).

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

                                It's live ... Takes some time to generate the terrain (approx about 2mins?)

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

                                  @mixaal, This looks amazing. I love the clouds! It should really be made into a game proper.

                                  By the way, I saw the SlowTracker in your friend shared projects. Any chance that you will repair that as well? 😊

                                  mixaal 1 Reply Last reply Reply Quote 0
                                  • mixaal
                                    mixaal F @vinicity last edited by

                                    @vinicity Thanks a lot ! I can take a look at slowtracker at the weekend ;) But I think to make this one useful it's a long way. I'd love to have the possibility to upload custom samples and be able to save into a shared slot to reuse the "music" in other projects.

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

                                      Wow, this is really impressive. The terrain is huge!

                                      Edit: It was interesting glancing through your code and noticing comments like ’is it inside the triangle?’ and ’getting height by by bilinear such-and-such’. Fun to see someone else’s answers to the same things I’ve been dealing with my game, which was mostly inspired by seeing the terrain function and thinking it was cool :)

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