> For the complete documentation index, see [llms.txt](https://virtualfactory.gitbook.io/vlft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://virtualfactory.gitbook.io/vlft/use-cases/assets-and-animations.md).

# Assets and Animations

This section presents examples of how [digital factory models can be instantiated](/vlft/kb/instantiation.md) in terms of assets and animations.

## Example 1

The first example is a 3D scene consisting of 3 identical bottles whose 3D representation file is available on an online repository.

### Example 1 - Assets in Spreadsheet

The scene and assets can be [instantiated as a spreadsheet](https://difactory.github.io/repository/spreadsheets/VF_assets_example1.xlsx) according to the [template](/vlft/kb/instantiation/assets/spreadsheet.md).

### Example 1 - Assets in JSON

Similarly, the example can be instantiated in a JSON file[`example_1.json`](https://difactory.github.io/repository/scenes/ex/example_1.json)

### Example 1 - Visualization

The example can be visualized in [VEB.js](/vlft/tools/vebjs.md) by importing the JSON file `example_1.json` (with command 'Import Scene') or [setting the URL with the path to the JSON file](https://difactory.github.io/DF/scenes/ex/ex1.html) after `?inputscene=` (the JSON file must be available on a [remote repository](/vlft/kb/instantiation/datarepo/remote.md#online-repository-for-binary-text-files)).

![Example\_1 in VEB.js](/files/-MXqYAfvO9cWPxCzQcs6)

### Example 1 - Animation

This example can be animated based on the proposed [JSON schema](/vlft/kb/instantiation/animations.md#schema) with the addition of [predefined sequences](/vlft/kb/instantiation/animations.md#animation-sequence). File [`example_1_anim.json`](https://difactory.github.io/repository/scenes/ex/example_1_anim.json) defines the animation for one asset (`bottle.1`) using an animation sequence defined in [`bottle_fall.txt`](https://difactory.github.io/repository/animations/example_1/bottle_fall.txt).

If an animation file is not [paired with the scene JSON file](/vlft/tools/vebjs/input-output.md) and then automatically loaded, the animation can be manually loaded by importing the JSON file `example_1_anim.json` (with command `Import Animation`) and the sequence `bottle_fall.txt` (with command `Import Anim Sequence`).

![](/files/-MY5poQ2PHofB4peQdBb)

## Example 2

The second example is a 3D scene consisting of 3 workstations and 3 trolleys whose 3D representation file is available on a server.

### Example 2 - Assets in Spreadsheet

The scene and assets can be [instantiated as a spreadsheet](https://difactory.github.io/repository/spreadsheets/VF_assets_example2.xlsx) according to the [template](/vlft/kb/instantiation/assets/spreadsheet.md).

### Example 2 - Assets in JSON

Similarly, the example can be instantiated in a JSON file [`example_2.json`](https://difactory.github.io/repository/scenes/ex/example_2.json)

### Example 2 - Visualization

The example can be visualized in [VEB.js](/vlft/tools/vebjs.md) by importing the JSON file `example_2.json` (with command 'Import Scene') or loading [this page](https://difactory.github.io/DF/scenes/ex/ex2.html).

![](/files/-MXrd0vyrNEc-vxxcEjC)

### Example 2 - Animation

If an animation file is not [paired with the scene JSON file](/vlft/tools/vebjs/input-output.md) and then automatically loaded, the animation can be manually loaded by importing the JSON file [`example_2_anim.json`](https://difactory.github.io/repository/scenes/ex/example_2_anim.json) that defines the animation of three assets (`Trolley.1, Trolley.2, Trolley.3`) using an additive animation sequence defined in [`trolley_move.txt`](https://difactory.github.io/repository/animations/example_2/trolley_move.txt)&#x20;

![](/files/-MY5qJgqA3ZZUbneHVgE)

## Example 3

The third example is based on Example 2 with the addition of an animation of the camera.&#x20;

This example can be visualized in [VEB.js](/vlft/tools/vebjs.md) by loading [this page](https://difactory.github.io/DF/scenes/ex/ex3.html).
