Authoring
Large-world coordinates
Keep logical positions in double precision and rebase grass, cameras and interaction near the scene origin.
Keep logical world positions in double precision and place the active Terrain, cameras, lights and interacting objects near the Unity scene origin before generating or loading grass. Add Kiwi Grass → World Origin to one unparented root with identity rotation and unit scale. The public TerrainGrassSceneOrigin component converts logical positions into this local scene frame before float rounding occurs.
The frame accepts logical origins up to ±1,000,000,000 units on each axis. A converted scene position must stay within ±4,096 units on every axis. Conversion error is bounded by 0.00025 units per axis. These bounds describe coordinate conversion; Terrain sampling, packed blade height, rendering and physics retain their own precision limits.
Place every active grass Terrain, grass renderer, artist volume and interaction source under the root. Keep all Game cameras in that scene and their lights under the same root. Add Kiwi Grass Scene Rebase to each camera's URP renderer before requesting an origin change. Keep the Terrain's complete dimensions and active grass range inside the local region, including objects that affect lighting, shadows and interaction.
Set Initial World Origin in the root's Inspector before entering Play Mode. The component initializes automatically at startup. For initialization from game code, call TryInitialize from your setup script's Awake before the component's first runtime Start; check the result before placing scene objects or generating grass. Use Unity.Mathematics for double3 and KiwiStudios.KiwiGrass for the component:
double3 _logicalOrigin = new double3(1000000000d, 0d, -1000000000d);
if (!_worldOrigin.TryInitialize(_logicalOrigin, out string _error)
|| !_worldOrigin.TryGetScenePosition(_logicalOrigin, out Vector3 _terrainPosition)
|| !_worldOrigin.TryGetScenePosition(_logicalOrigin + new double3(16d, 6d, -8d), out Vector3 _cameraPosition))
{
Debug.LogError("The active world region could not initialize: " + _error);
return;
}
_terrain.transform.position = _terrainPosition;
_camera.transform.position = _cameraPosition;
_grassRenderer.Regenerate();Here _worldOrigin is a serialized reference to the root's World Origin component. Check every conversion result; failure leaves its output at the default and does not move a scene object. Keep the original double positions as your game state. Casting a large logical position to Vector3 before conversion loses precision that the frame cannot recover. TryGetWorldPosition converts a bounded scene position back to logical coordinates for gameplay queries.
Changing the active origin
After the scene has rendered with the renderer feature enabled, request a new origin from game code or the root Inspector:
if (!_worldOrigin.TryRequestRebase(_nextLogicalOrigin, out string _error))
{
Debug.LogWarning(_error);
}A successful request queues the change. The component applies it in LateUpdate before grass preparation and camera rendering. HasPendingRebase stays true while waiting for a safe frame; WorldOrigin changes only after the transaction succeeds. A newer request replaces the pending request. CancelPendingRebase cancels it. LastError reports a rejected setup or transaction, and the Inspector shows the pending state and the error. Repair that setup or cancel the request before continuing.
The transaction moves the root and preserves grass buffers, interaction history and camera history together. Keep the root's transform under the component's control; moving, rotating, scaling or reparenting it directly invalidates its accepted frame. Child objects can move normally within the local coordinate bounds. Your game's other coordinate-dependent systems must follow the new origin when WorldOrigin changes. Unity physics and third-party temporal effects retain their own behavior and precision limits.
The component serializes its accepted origin and original root anchor when a request completes or the component is disabled. Re-enabling restores that state only when the root still matches it. Save the component and root transform together. Disabling cancels pending requests and releases ownership created by the component. An origin already owned by another coordinator remains owned by that coordinator. The component does not choose a rebase threshold, change grass density or move the root automatically in Edit Mode.
Precise blade roots
Enable Rendering & distance → Precise Blade Roots before generating grass on tall terrain. In profile mode, this renderer control appears beside Camera Layer Mask. The setting applies to every active species and remains off in existing scenes. You can also call RenderSettings.SetPreciseBladeRoots(true) and Regenerate().
This mode retains the 24-byte blade record and stores an additional 8-byte GPU height interval per chunk, with 16 bytes per chunk of owned CPU metadata. Blade root heights stay within 0.004 units of the sampled terrain height. Fade, normal, color, size, yaw, species identity and horizontal coordinates retain their existing encoding. Terrain sampling itself and Unity's float scene coordinates retain their own accuracy limits.
Every active species must use the supplied Kiwi Grass shader. Each chunk's conservative height bounds must fit a 256-unit interval, with terrain-local height bounds within ±8,192 units. Reduce Chunk Size for steeper terrain. Unsupported shaders or bounds produce a diagnostic and preserve the previously published blade buffers. If a dirty update exceeds its current interval, the renderer suppresses that affected result and requests full regeneration before publishing replacement data.
Main color, shadow, depth, depth-normal and motion-vector vertex paths use the same chunk height decoder. Full generation, dirty uploads and staged persistent loading preserve the blade/interval pair. Existing persistent payload formats remain unchanged and continue to retain float root positions. Changing the precision setting requires regeneration and refreshes the bake fingerprint; regenerate and save a matching bake asset when switching modes.
Precise blade roots control height encoding. Use the World Origin component for coordinated scene rebasing, and retain logical positions in double precision.
Still stuck?
Bring the renderer status with you.
Include the Kiwi Grass version, Unity and URP versions, operating system, graphics API, renderer status, Player log, and a minimal reproduction.