Giter VIP home page Giter VIP logo

volume-noise-generator's Introduction

Volume Noise Generator

Acknowledgements

3D blue noise textures from https://momentsingraphics.de/3DBlueNoise.html

Perlin noise generated by GLM using original algorithm by Ken Perlin

Instructions

  1. Install GCC/MinGW and execute build.sh/build.bat
  2. Create a config file name.txt in the input folder. See the existing example.txt for an example
  3. Run ./generate name where name is the name of your config file without the ".txt"

The resulting texture is provided as a binary data file which can be loaded into OptiFine as follows:

texture.<prepare/composite/deferred>.<sampler of choice> = path/to/texture.dat TEXTURE_3D <R8/RG8/RGB8/RGBA8> <sizeX> <sizeY> <sizeZ> <RED/RG/RGB/RGBA> UNSIGNED_BYTE

Config file format

(See example config file)

~ means next channel

option:value

mode | Determines the type of noise to generate in this channel. Possible values are "perlin", "worley", "perlinWorley", "blueNoise" and "curl"

General options (perlin or worley noise)

  • seed
  • inverted
  • octaveCount
  • frequency
  • lacunarity
  • persistence

Perlin-worley noise options

  • worleyWeight
  • worleyOctaveCount
  • worleyFrequency
  • worleyLacunarity
  • worleyPersistence
  • perlinOctaveCount
  • perlinFrequency
  • perlinLacunarity
  • perlinPersistence

Blue noise options

  • blueNoiseRes | Resolution of the blue noise texture to use. Must be 16, 32 or 64, and must match the texture resolution
  • zoom | This is supposed to scale up the blue noise texture. Currently it just causes a segmentation fault

Note: lacunarity must be a power of 2 for the texture to tile properly

volume-noise-generator's People

Contributors

sixthsurge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

volume-noise-generator's Issues

how to add glm and stb

Hi sixthsurge!
I use mingw. I run the build.bat, but it does not build 'generate.exe'. Should I download glm and stb into the vendor dir?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.