Class RealWorldBiome
- Namespace
- Pinwheel.Vista.RealWorldData
- Assembly
- Pinwheel.Vista.RealWorldData.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.google.com/document/d/1zRDVjqaGY2kh4VXFut91oiyVCUex0OV5lTUzzCSwxcY/edit#heading=h.tbau0ilxe5zn")]
public class RealWorldBiome : MonoBehaviour, IProceduralBiome, IBiome
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourRealWorldBiome
- Implements
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.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.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)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
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).
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.
- 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)
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.