> For the complete documentation index, see [llms.txt](https://tfg-bravoperezrubio.gitbook.io/cosmicarchitectdocumentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tfg-bravoperezrubio.gitbook.io/cosmicarchitectdocumentation/explanation-of-classes-and-components/ruido.md).

# Noise

The noise system controls the relief generation and visual appearance of the terrain.\
​\
Base Classes:

* **CosmicNoiseClass** (e.g., CosmicDefaultNoiseSettings): Stores the parameters of the noise layers.
* **CosmicNoiseStrategy:** Processes the noise and evaluates the height and color of each point. It allows defining custom logic for the terrain.
* To have your own noise classes, you can create classes that inherit from CosmicNoiseClass and CosmicNoiseStrategy and configure the desired noise layers and parameters. For example, the tool includes a Cosmic Earth Settings type that contains noise layers for continents, mountains, and more to replicate planet Earth.

**CosmicNoiseLayer:** Defines the mathematical properties of an individual noise layer.

* **Noise Type:** Base algorithm (Perlin, Simplex, Cellular, Value, or Ridged).
* **Fractal Type:** Applied fractal pattern (FBM, Ridged, or PingPong).
* **Frequency:** Scale of the noise.
* **Octaves:** Number of overlapping detail layers.
* **Lacunarity:** Controls the heterogeneity and distinctness of the pattern.
* **Persistence:** Defines the loss of amplitude per octave (low values = rockier; high values = smoother).
* **Amplitude:** Intensity and contrast of the generated relief.

**CosmicNoise Biome Parameters:** Parameters that allow varying the terrain based on geographic regions.

* **TemperatureFrequency:** Frequency of the noise defining cold or warm zones.
* **HumidityFrequency/Octaves:** Configuration of the noise defining the terrain humidity.
* **Latitude Effect:** Influence of latitude on temperature (e.g., cold poles vs. warm equator).
* **Altitude Temperature Penalty:** Temperature reduction based on elevation.
* **HumidityContrast/Offset:** Intensity and displacement adjustments for the humidity map.

**Crater Settings:** Specific configuration for impact generation using Cosmic Crater Settings noise.

* **Crater Frequency:** Density of craters on the surface.
* **Crater Depth:** Depth of the impact cavities.
* **Crater Radius Multiplier:** General scale of the crater size.
* **Crater Rim Height:** Height of the crest or outer rim.
* **Crater Rim Sharpness:** Definition of the edge (Smooth vs. Sharp).
* **Crater Floor Height:** Elevation of the inner base of the crater.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tfg-bravoperezrubio.gitbook.io/cosmicarchitectdocumentation/explanation-of-classes-and-components/ruido.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
