> For the complete documentation index, see [llms.txt](https://flora.magneticarcade.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flora.magneticarcade.com/rendering/motion-vectors.md).

# Motion Vectors

A simple overview of rendering dynamic instances.

Flora supports per-instance motion vectors for temporal anti-aliasing and motion blur.

## Enable motion vectors

Enable per-object motion vectors on the source Renderer. Flora then stores previous transforms, increasing memory and update cost.

## Terrain trees and details

Terrain trees follow `Terrain.treeMotionVectorModeOverride`. `InheritFromPrototype` uses the tree prototype Renderer settings. An explicit Terrain override takes precedence over the Scene Settings tree feature mask.

Terrain details use their prototype Renderer settings and require `MotionVectors` in **Allowed Detail Features**. The mask defaults to `None`.

## Inspect motion vectors

Use [Fish Boids Sample](/samples/runtime-samples.md#fish-boids) to inspect moving instances. With the camera stationary, moving fish should produce nonzero motion vectors.

<figure><img src="https://2882982566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyo4B7EVXffipTxnJzee6%2Fuploads%2Fgit-blob-53f07ba6c21993ba23e9cb3e2bc5de5ab5f446da%2Fmotion-normal-6-4-5.webp?alt=media" alt="Fish Boids Sample rendered normally"><figcaption><p>Normal rendering from a stationary camera.</p></figcaption></figure>

<figure><img src="https://2882982566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyo4B7EVXffipTxnJzee6%2Fuploads%2Fgit-blob-53cc3690f90241dd1715d9f8c4c503e60e6a9d3f%2Fmotion-vectors-6-4-5.webp?alt=media" alt="Colored fish motion vectors with white direction arrows"><figcaption><p>The sample visualizer shows direction as hue and magnitude as brightness; arrows indicate direction. Captured at a different animation frame.</p></figcaption></figure>
