Skip to content

Worley noise distance output unexpected. #315

Description

@Muvkina

image

This is how the normal Euclidian distance(also happens with Euclidian Squared) worley noise looks like. This screenshot is from nannou but ive also experienced the same in my own project using noise-rs. The circles are very annoying. Thanks for the awesome crate

Here is all the relevant code

    let noise: Worley = noise::Worley::default()
        .set_frequency(0.01251051)
        .enable_range(true)
        .set_range_function(noise::RangeFunction::Euclidean);
    let image = image::ImageBuffer::from_fn(1000, 1000, |x, y| {
        let n = noise.get([x as f64, y as f64]).abs() * 256.0;
        nannou::image::Rgba([n as u8, n as u8, n as u8, std::u8::MAX])
    });
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions