Skip to content

Generator for procedural Voronoi noise, for use in graphics applications.

Notifications You must be signed in to change notification settings

ErikPeter2000/VoronoiGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Voronoi Generator

This is an (incomplete) WPF application for quickly rendering and saving tiled voronoi textures as .png files for use in external applications. Vornoi images are made by scattering some points (samples) on a grid and then coloring the individual pixels based on their distances to these points.

This application will allow writing the following variations of the voronoi texture to the individual RGBA channels in an image.

  • Distance to point: The classic, also called cellular noise or worley noise. Pixel intensity is defined by the distance to the nearest sample.
  • Distance to edge: Pixel intensity is defined by the distance to the perpendicular bisector given by the closest two points.
  • Random color: Pixel intensity is randomly generated with the closest pixel as the seed.
  • Raw pixel: If the pixel is a position of a sample, then make it white, else it is black.

Voronoi textures are used a lot when doing 3D graphics. Blender, the graphics design software I use, uses the jittered distribution of points which looks trash. The poisson disc sampling method gives a much more natural appearance. This meant I had to write my own algorithm for generating this texture.

Algorithm based on this paper.

About

Generator for procedural Voronoi noise, for use in graphics applications.

Resources

Stars

Watchers

Forks

Languages