The Sun


Working with Distorted Dreams, I discovered a very strong method of generating interesting noise. Here, this is used to animate a ball of fire. A 3-dimensional Perlin noise value is found for each pixel on the canvas using its x position, y position and a different noise value. This is then added to the distance from the centre of the canvas. The lower this value is, the brighter the colour.

There are some extra details about how time both influences the 3-dimensional noise, but also is used as the y-coordinate of the noise for the third dimension. It's a bit difficult to explain, but the source code is quite simple and can be found at:
https://www.openprocessing.org/sketch/607044

Oh, and the pattern in the middle of the sun is a contour map of the Perlin field independent of distance. If it does not look like a contour map, that's because it's once again a 3D noise field.

Comments