Class RealWorldBiome
- Namespace
- Pinwheel.Vista.RealWorldData
- Assembly
- Pinwheel.Vista.Runtime.dll
Procedural biome that projects a real-world longitude/latitude rectangle onto an in-scene area and feeds downloaded data into a terrain graph.
[ExecuteInEditMode]
[AddComponentMenu("Vista/Real World Biome (Experimental)")]
[HelpURL("https://docs.pinwheelstud.io/vista/docs/real-world-data-real-world-biome-experimental.html")]
public class RealWorldBiome : MonoBehaviour, IProceduralBiome, IBiome
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourRealWorldBiome
- Implements
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.InstantiateAsync<T>(T, InstantiateParameters)Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Remarks
When Vista requests data for a tile, this biome converts the tile's world-space bounds into a matching GPS sub-rectangle, downloads only the real-world inputs that are active in the graph, packages those inputs through RWBInputProvider, then delegates output extraction to RequestBiomeData(IBiome, BiomeDataRequest, TerrainGraph, Bounds, Space, int, int, GraphInputContainer, BiomeDataMask, FillArgumentsHandler, GraphExecutionCache, CancellationSignal).
Properties
- allInstances
All enabled RealWorldBiome instances currently registered in the scene.
- blendOptions
Blend settings used when this biome overlaps other biomes.
- colorMapProviderAsset
Data provider used when the terrain graph consumes the real-world color input.
- dataMask
Output channels this biome should request from the terrain graph.
- heightMapProviderAsset
Data provider used when the terrain graph consumes the real-world height input.
- inSceneLength
Length, in world units along the Z axis, covered by this biome in the scene.
- inSceneWidth
Width, in world units along the X axis, covered by this biome in the scene.
- order
Sort order used when multiple biomes overlap the same tile.
- realWorldBoundsGPS
Longitude/latitude rectangle mapped onto this biome's in-scene footprint.
- seed
Seed passed to the terrain graph request so stochastic nodes remain deterministic for this biome.
- terrainGraph
Terrain graph used to convert downloaded real-world inputs into Vista biome outputs.
- updateCounter
Change marker used by manager-side workflows to detect when the biome should be regenerated.
- worldBounds
World-space footprint occupied by this biome in the scene.
Methods
- CleanUp()
Releases transient biome state.
- CreateGraphInputProvider()
Creates the input provider that feeds this biome's terrain graph in biome context.
- CreateInstanceInScene(VistaManager)
Creates a new real-world biome in the scene and optionally parents it to a VistaManager.
- IsOverlap(Bounds)
Tests whether this biome overlaps the supplied area in XZ space.
- OnAfterVMGenerate()
Called by VistaManager after a generation pass finishes.
- OnBeforeVMGenerate()
Called by VistaManager before a generation pass begins.
- RequestData(Bounds, int, int, BiomeDataMask, CancellationSignal)
Starts an asynchronous biome-data request for the specified tile bounds.
- Reset()
Restores the default graph, bounds, and provider settings for a newly created biome.