Important: Please read the Qt Code of Conduct -


  • Moderators

    Hi every one

    I was unable to find an implementation of "Perlin Noise" inside the Qt-Libary. So I sifted through the Internet for something useable and was able to find a decent Java-class that I adapted to be used with c++

    So I wrapped it in a class, named it adequately QNoise and decided to share it with the community. As I think it's a quite handy class to have at and.

    The repository can be found here:

    There's also a ready to use example in there showing how the class could be used to create interesting data/shapes.

    Some screenshots from that example:

    0_1551868569565_Bildschirmfoto 2019-03-06 um 11.30.48.png

    0_1551868591222_Bildschirmfoto 2019-03-06 um 11.34.50.png

    0_1551868607695_Bildschirmfoto 2019-03-06 um 11.34.11.png

    Edit: reduced the screenshot sizes.

  • Lifetime Qt Champion

    Thanks for sharing ! :-)

  • Moderators

    What do you use it for?

  • Moderators

    Me in partikular or in general ?

    Perlin Noise is a gradient noise algorithm. So you can use it for example to create a "random" data set for a graph, where the points "flow" and don't jump from one end of the spectrum to an other.
    I'm currently using that.

    An other prominent feature is to use it for Terrain-Generation in games (2d and 3D) something I wanted to work on for quite a while.

    You can create synthetic textures using Perlin Noise to make computer-generated visual elements – such as object surfaces, fire, smoke, or clouds

    Or you can use it to do some amazing computed artwork like these: [made by Etienne Jacob]



  • Moderators

    @J.Hilk said in QNoise:

    Me in partikular or in general ?

    I meant in general. Interesting, thanks for the info.

Log in to reply