Noise 2.0 - Return of the Perlin

This forum is currently in read-only mode.
From the Asset Store
Game "Little Dino Adventure Returns" with complete Source-Code (Construct3 / .c3p) + HTML5 Exported.
  • This thread is outdated. The plugin is released. Go

    HERE!

    <img src="http://i55.tinypic.com/hwyfkw.png">

    Greetings everybody. I was recently doing some work on Void Runner, when it came to my attention that I needed seamless Perlin Noise. Seeing as I'd written the Perlin Noise plugin, I figured this would be no trouble at all - and indeed it was not, but during the process I realized how convoluted the Perlin Noise plugin really was. Expressions? Really? Grayscale? So I thought about it for a while, and I decided to update it with ten times the power, and ten times the usability. Behold - Noise 2.0!

    Features:

    • Perlin Noise - Duh.
    • Ridged Multifractal Noise - For those mountain ranges.
    • Voronoi Noise - For texturing, or manmade formations, such as cities.
    • Planetary Noise - My personal favorite. Perlin Noise wrapped around a sphere.
    • File Support - Output to bitmaps, or use good old fashioned convoluted expressions for mathematical purposes.
    • Color Mapping - Forget those old grayscale heightmaps! I mean, they are still there as an option, but now you can have color baked right in to the output. You can set the colors yourself or use preset landscape colorings that are included with the plugin.
    • Lighting - Set the direction, elevation, color, brightness, and contrast, of a directional light that will be baked into the final image for the noise.
    • Integrated Camera Controls - Set it and forget it. Did your player just walk off screen? Move the camera east with one action - the noise will seamlessly line up for you. The best part? You can do that as much as you want - it never stops. The world keeps on going baby!

    I had to change the name of the plugin to reflect that there is indeed more than one kind of noise out there. I have designed the plugin to be easy to use. You only need to use a few actions and you're off. However, for power users, every single detail is customizable. All the imagery up there in the header came out of Construct - powered by Noise 2.0!

    This is the first in a series of plugins I have planned that should help people make

    LARGE

    games. Go make infinite worlds. Make planets. GO FORTH AND PROCREATE. This one is almost done. The plugin should be ready in the next few days. All I need to do is wrap up the Planetary Noise generator, and upload a detailed tutorial describing how to use it on Youtube.

    I will leave you with a movie of me screwing around with seamless, colored, perlin noise. As I click on each sprite, a heightmap is baked into the sprite at runtime. Notice how fast this process is, and notice that every single heightmap lines up perfectly with the ones around it. The best part? The event sheet had ten events in it - one for each sprite, and one to start the generator.

    Enjoy: http://screencast.com/t/F8UtanJXsg01

  • Yowza!

    Voronoi noise reminds me of this:

    http://simblob.blogspot.com/2010/09/pol ... art-3.html

  • Hi mate.

    Since we last spoke about this, knowing that it might be a while before you release it, I decided to do a little study on procedural generation, and I am currently experimenting with fractal Brownian motion, or fBm for planet generation, but this is in Unity.

    Really looking forward to seeing your plugin.

    Can already think of a few uses for this in Construct.

    Don't keep us waiting too long.

    Krush

  • This new plugin sounds really exciting!

  • The ACE tables are complete:

    http://screencast.com/t/TX0BsrGfz8nf

    http://screencast.com/t/O7EZaf1IET

    http://screencast.com/t/7C7ACy8mF5B

    Notice those actions are extremely condensed. Rather than have an action to modify each and every variable, I have an action for each generator that lets you pick and choose which variables you want to modify out of a list of variables relevant to that generator. You can use that action to modify one variable or all of them simultaneously, and again, only variables that are relevant. So "Adjust Voronoi Generator" isn't going to ask you what you want your octaves to be, as it doesn't matter with Voronoi noise.

    Now all I have to do is add the planetary generator. Requires some complex math because coordinates for the camera swap from X/Y to Latitude/Longitude. The camera will behave exactly the same however. It will map the sphere, and you will move it in exactly the same ways as you do with normal noise. I actually have half of it written already, it's just a matter of integration. Tomorrow I'll probably throw up that tutorial video and host an alpha version, as I'm sure you guys will run into a few bugs and have feature requests. You probably want to hold off starting any major projects until the plugin is out of that alpha stage. It shouldn't have too many problems, so alpha won't be very long. I'll just need some feedback before I declare it "done".

    Edit: Early version of planet zooming: http://screencast.com/t/oAKbPA4BK3

    Planet controls differ in that the camera's zoom level is automatically tied with the quality of the noise, so you will notice that details pop out even when you are zoomed in. You could manually do this with events on perlin noise of course - all by yourself, however - planets have another benefit. While perlin noise can seamlessly extend forever, Planetary noise wraps around a sphere, so eventually you will be back where you started.

  • I hit a snag with the planet generator. Turns out spheres don't map so well into two dimensional space regardless of how fancy your math is. I have however written a tiling algorithm that will allow you to tile your noise over a number of noise maps. Here I am moving across a world with size three: http://screencast.com/t/jM72VhWxScyh

    It's about done. I just have to touch up this new planet generator. Unfortunately this version is very touchy, so you lose the ability to zoom and fine tune the camera's position, but it will go in circles forever for you - and this loss only affects the planetary noise, not the other generators. It's "spherical" (it's actually cubical). The upside of losing these features within the planet generator is that seamless tiling noise is now an option within perlin, ridged multifractal, and voronoi noise! That should more than make up for it, offering a whole new set of possibilities for people that are doing texture work rather than terrain work. The reason zooming and camera controls are unreliable with tiling/planetary noise is that making the noise tile is a post processing effect that breaks it's continuity with the noise surrounding it. So you can either have one tiling noise map OR seamless noise that goes out into infinity with zooming and camera controls. It's up to you.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Still looking forward to this.

    One question though.

    Does the plugin allow access to the noise data mathematically for use with calculations, or is it just for rendering?

    Also, is it possible to use seeds to generate the same noise data every time?

    Krush.

  • Within the "Generate" action there is an option for image saving. The options are "Color, Black and White, and No" if you choose "No", then your only access to the image will be through expressions. So yeah there are expressions to access the data.

    If the seed doesn't change you will get the same noise every time, yep!

  • Excellent!

    I was going to attempt to replicate what I've done with PRNGs in Unity, by using Python for use with Construct, but it sounds like this plugin will do everything I need it to do, so I'll put that on hold.

    Nice work.

    Krush.

  • The plugin was released in the correct forum. Mods if you could lock this thread that would rock. Enjoy guys. More is coming!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)