Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

//dripdown #82

Open
VorTechnix opened this issue Aug 8, 2022 · 1 comment
Open

//dripdown #82

VorTechnix opened this issue Aug 8, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@VorTechnix
Copy link
Collaborator

Builds down low pointing parts of selection (generates stalactites and floating island "tails").

@VorTechnix VorTechnix added the enhancement New feature or request label Aug 8, 2022
@sbrl
Copy link
Owner

sbrl commented Sep 17, 2022

Ah, great idea!

So for each block with an air space below it, it will be randomly repeated downwardss by a random value between a minimum and maximum value (perhaps we could model this in the actual command as a value and a jitter - e.g. //dripdown <node_name> <value> [<jitter>]

....where <value> is the amount to drag it down by, and <jitter> is a number to generate and add/subtract to it. In JS:

const actual_value = value + Math.floor((Math.random() * jitter * 2) - jitter);

To make it useful for generating floating islands, I guess you'd do something like this:

  1. Generate upside-down cone
  2. Run //dropdown?

....or would we need some logic for determining a secondary value that varies, e.g. adding random noise like this?

const actual_value = value + Math.floor((Math.random() * jitter * 2) - jitter) + noise(x, y) * value_2;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants