Giter VIP home page Giter VIP logo

sharpnoise's People

Contributors

davidorbelian avatar rthome avatar tomba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sharpnoise's Issues

Normalizing Noise Maps

Hello,
I have been looking through the documentation, and I am wondering whether there is any built-in functionality to normalize/map all values inside a noise map instance to a certain fixed range (such as [0.0, 1.0]) based on the minimum and maximum?

Of course, implementing this yourself isn't a big deal, but since I have been doing it in multiple projects again and again I feel like this could be a nice thing to implement as a library feature. What is your opinion on this? (I would be willing to add such functionality if its a desired feature)

Compilation error with OpenGLExample on Mono 5.0/Linux

If I try to compile the OpenGLExample I get this error message

/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: Error: Tool exited with code: 1. Output: Error: Invalid ResX input.
Position: Line 123, Column 5.
Inner exception: Could not find a part of the path "/home/markus/Projects/SharpNoise/Examples/OpenGLExample/resources/normals.frag".
 (OpenGLExample)

Don't know what this means or how I can solve this.

Cubic interpolation bug

I was getting weird results from the Curve module so I went digging through the code.
This is the return statement from the CubicInterp function in the original libnoise:
return p * a * a * a + q * a * a + r * a + s;
And this is the return statement from the Cubic method of NoiseMath in SharpNoise:
return (p * a * a * a) + (q * a * a * a) + (r * a) + s;
It seems q is being multiplied by a one too many times. Removing the extra multiplication fixed the issues I was having.

Simple example

For an easy start it would be nice if you could add a more simple example without a GUI. Just how to set up a noise and save an image for example.

Test: InvalidGetSourceModule_NoModule_Test cannot be successful

Using var source = module.SourceModules[0]; will never thrown the expected exception (NoModuleException) as Module class constructor will always initialize source array properly:

if (sourceModuleCount > 0)
                sourceModules = new Module[sourceModuleCount];
            else
                sourceModules = emptyModulesArray;

(and also, exception is not even declared as throw-able, AFAIK)

Nuget package

I can create a new nuget package, which will create confusion. Any chance of getting a new release pushed to nuget?

Support for .Net Core would be nice

I'm not sure if there is anything in the library that couldn't work with .Net Core. especially now that version 2.0 is available. Is it just a matter of adding new targets to the nupkg?

Spheres Module doesnt works at all

Hello , first say thanks for this nice library is pretty interesting and useful, im doing a visual implementation for a programming enviroment call vvvv gamma,i get all the modules work except the spheres, is implemented in the library or just on the way?
Thanks

Add OpenSimplex Module

I would really appreciate it, if you where adding Opensimplex noise as module because Perlin noise has some ugly artifacts and Simplex has some patent issues.

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.