riveSunder / riveSunder/yuca

Plans for noclip CA

Open
#89 0 comments 0 reactions 1 assignee View on GitHub

@riveSunder is already working on this.

Since Apr 3, 2024.

Dominant language
Python
Stars
15
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Current Glaberish implementation

m = grid
n = compute_neighborhoods(grid)

# genesis and persistence are functions with outputs ranging from -1, 1
g = genesis(n)
p = persistence(n)

dgrid = (1-m) * g + m * p
new_grid = clip(grid + dt * dgrid, 0, 1.0)

noclip scheme

# clipping m here allows for all less than or equal to 0 to undergo 'genesis'
m = clip(grid, 0, 1)
n = compute_neighborhoods(grid)

# range of outputs for genesis and persistence differ
# genesis output ranges from 0 to 1
# persistence output ranges from -1 to 1 (facilitates decay)
g = genesis(n)
p = persistence(n)

# clipping m earlier means dgrid won't have exploding values (neg. or positive)
dgrid = (1-m) * g + m * p
# no clipping here: Euler method
new_grid = grid + dt * dgrid

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.