[Proc Gen] NoiseSource - Core class with point queries #207
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#208 [Proc Gen] NoiseSource.sample and NoiseSample class
john/McRogueFace
Reference
john/McRogueFace#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue: #192
Overview
Implement
NoiseSourceas a configured noise generator function. Stateless and infinite - the same coordinates always produce the same value.Specification
Constructor
dimensionsintalgorithmstr"simplex","perlin", or"wavelet". Default:"simplex".hurstfloatlacunarityfloatseedintProperties
All properties are read-only.
dimensionsintalgorithmstrhurstfloatlacunarityfloatseedintPoint Query Methods
Get flat noise value at coordinates. Tuple length must match dimensions. Returns -1.0 to 1.0.
Get fractal brownian motion value. Returns -1.0 to 1.0.
Get turbulence (absolute fbm) value. Returns -1.0 to 1.0.
Example
Implementation Notes
TCODNoiseinternallygetmaps toTCOD_noise_getfbmmaps toTCOD_noise_get_fbmturbulencemaps toTCOD_noise_get_turbulenceposaccepts tuple, list, or appropriately-sized sequenceAcceptance Criteria
NoiseSourcecan be constructed with all parametersget,fbm,turbulencereturn values in [-1, 1]ValueError