Benjamin Saunders

Results 955 comments of Benjamin Saunders

As of #27 the fundamental primitives have well-defined ranges, but the higher-level interfaces like `fbm` do not. I don't presently plan to address them personally, but they should be comparatively...

I recommend just looking at the implementation and analyzing them to determine the necessary scaling factor. There's not all that much math going on.

> I wrote this code to experimentally detect the range of simplex_2d You're sampling at locations that are multiples of integers. Simplex noise is fundamentally laid out on a skewed...

That looks more reasonable, though your y-axis scale is still way too high to be sensible. If you're sure you're still having issues after turning that down, I recommend comparing...

If you're getting different results from identical code, then UB seems likely, yeah. If there's UB, the scale of the output is the least of your concerns. Once you've addressed...

The reference impl at http://staffwww.itn.liu.se/~stegu/simplexnoise/DSOnoises.html has simplex noise implementations with derivatives with detailed comments. The permutation table they use is identical to this crate's so I'm guessing there's some common...

After some tinkering I'm inclined to judge that this can only really be solved sanely with a proc macro or much better support in rust for higher-kinded types.

Simplified: ```rust pub trait Height { fn from_f32(x: f32) -> Self; } impl Height for u16 { // Fixed-point fraction of max value fn from_f32(x: f32) -> u16 { (x...

As a non-amethyst-user who is hopeful about legion's future, I'm concerned that amethyst adopting it wholesale in the near future might make it difficult for legion to make significant changes...