Perlin Noise Marble

This demo generates a solid marble texture in a fragment program.
Perlin noise marble. These kinds of textures are often used to model surface or volumetric representations of natural elements such as wood marble granite. An improvement by perlin to his original non simplex noise simplex noise is the replacement of the cubic hermite curve f x 3x 2 2x 3 which is identical to the smoothstep function with a quintic interpolation curve f x 6x 5 15x 4 10x 3. Better than using a naive random noise. Since our interest is generating 2d textures a 2d array is used.
And we will focus on esthetics of random. For each fragment drawn the fragment program samples the 8 gradients on the integer coordinates surrounding the fragment. Cnoise is a classic perlin noise. First of all here we will not discus mathematical nature of various random number generators which is also an interesting topic.
Noise marble noise. Random noise such as perlin noise invented by ken perlin uses random numbers to generate natural looking textures. Using this as a base you can create things that resembles nature like clouds water texture stone marble random but not that random movement brownian movement. The results from this algorithm in a matlab implementation are shown below.
At the same time that perlin s noise was published in 1985 ken perlin also showed how it could be used to create marble textures by using his noise function in conjunction with a turbulence function and a marble coloring function. Specifies the look of the texture distortion with several noise function types provided. In the real world nothing is perfectly uniform and noise provides a controlled way of adding this randomness to our shaders. A 3d texture is first created in which each texel is a gradient a unit vector in 3 space.
Perlin marble noise perlin noise and esthetics of random 3d 3dmax ideas for thesis research. Perlin enhanced perlin gradient value gradient value impulse lattice bubble. Perlin noise is one way of generating an effecient random noise. In computer graphics a procedural texture is a texture created using a mathematical description i e.
Here it is a title which as usual is quite confusing. At the same time that perlin s noise was published in 1985 ken perlin also showed how it could be used to create marble textures by using his noise function in conjunction with a turbulence function and a marble coloring function. This makes both ends of the curve more flat so each border gracefully. Noise is an important building block for adding natural looking variety to procedural textures.
These are then used in the standard perlin noise method see. The results from this algorithm in a matlab implementation are shown below. Smooth noise as source for the random noise we need an array of random values called noise x y. Marble it s possible to use random noise to create a texture.
An algorithm rather than directly stored data the advantage of this approach is low storage cost unlimited texture resolution and easy texture mapping.