FastNoise2 icon indicating copy to clipboard operation
FastNoise2 copied to clipboard

Add link to the Julia binding

Open findmyway opened this issue 1 year ago • 3 comments

This package is awesome!

The APIs are really concise, which makes it very easy to provide a Julia binding with the C API.

findmyway avatar Aug 08 '22 10:08 findmyway

Hi, I had a quick look at your Julia API, it doesn't look like it supports setting node variables or creating node trees from "Encoded Node Tree" strings. Without support for these it means most of the features in the FastNoise2 library are inaccessible.

I don't want to include a link to this unless there is full API support. Have a look at the C# bindings, you should be able to copy how it is implemented there.

Thanks

Auburn avatar Aug 13 '22 12:08 Auburn

OK, actually the bindings are all available at https://github.com/JuliaReinforcementLearning/FastNoise2.jl/blob/master/src/LibFastNoise.jl . This means it provides the full API support in a nutshell. It's just that I added some extra handy functions for generating noise to make the usage more Julian.

I'll take a look into the C# code to see if I can improve further. Thanks for your feedback!

findmyway avatar Aug 13 '22 13:08 findmyway

Just having access to the raw C API isn't very usable, since the FastNoise2 API provides the node metadata as IDs.

See the C# example usage here: https://github.com/Auburn/FastNoise2Bindings/blob/master/CSharp/test/BitmapGenerator.cs

It's possible to set a node variable using the variable name as a string

Auburn avatar Aug 13 '22 15:08 Auburn