Give Page Feedback

Scene Conversion Tutorial - Configuring The Streamable Grid

The Streamable Grid is a Scriptable Object that stores information about a grid of Streamable Cells, which in turn represent specific Asset Chunks from one or more LOD Groups. In order to generate Asset Chunks using the World Designer Tool, it is necessary to create a Streamable Grid asset to represent those Chunks.

It's possible that you have already setup a Streamable Grid during the Getting Started Tutorial that will work with this tutorial, however if you have not, we recommend taking look at the Streamable Grid Basic Concepts, Streamable Grid Main Settings and LOD Groups Sections, which focus on the Streamable Grid.

Creating A Streamable Grid Asset

You can create this asset by selecting from the Top Menu Bar:

Assets -> Create -> Deep Space Labs -> SAM -> Streamable Grid

Creating A Streamable Grid From The Top Menu Bar GIF

or by right clicking a folder (or inside a folder) within the Project Hierarchy and selecting from the pop up menu:

Create -> Deep Space Labs -> SAM -> Streamable Grid

Creating A Streamable Grid From Right Click GIF

By default this Asset is given the name StreamableGrid, however we recommend changing this name to something that will better help you differentiate it with other Streamable Grid Assets in the future.

Disable Streamable Cells

When using the World Designer Tool to group objects under Asset Chunks, the Tool will automatically identify which Streamable Cells objects belong to based on their position within the scene. During this process, Streamable Cells from the Streamable Grid will automatically be enabled the first time an object is found that falls within their bounds.

In order to ensure that only Streamable Cells which have objects are enabled, it is necessary to start with all Streamable Cells disabled. To do this, you can simply hold the shift key and right click on the Everything button that sits below the Visual Grid in the Global Main Settings Tab/Window of the Streamable Grid asset.

Disabling Cells GIF

--Sample Scene Directions--
You should have already performed this step when working through the Getting Started Tutorial, but if you did not, please do so now for all four Streamable Grids.

Want An Expandable World?

It's important to note that Streamable Grids can easily be expanded in the positive direction of each axis by adding more rows, columns, and layers (for 3D Grids), however expansion in the negative direction is difficult.

If your World's size has been pre-determined and you do not anticipate needing to expand it in the negative direction, you can skip this topic. However, if you think you may need to expand the World in the negative direction at a later time, we suggest taking a look at the following PDF, which contains some useful slides talking about this issue:

Understanding Grid Expansion Limits

We will discuss these limits as it pertains to this tutorial in the following Sections.

Multi-Chunking

During the Scene Conversion process, game objects in your scene will be assigned as children to empty Asset Chunk parent game objects. When multi-chunking is disabled, all game objects that fall within a single Streamable Cell are assigned to the same Asset Chunk parent.

If there are a ton of game objects in each Cell, or if there are few objects but loading/unloading and activating/deactivating those objects carries significant performance overhead, assigning all of these objects to a single Asset Chunk can present major issues, since operating on the Asset Chunk causes the same operations to be performed on all children/grandchildren/etc (i.e., activating the Asset Chunk activates all of its children/grandchildren/etc.).

Multi-Chunking allows for these objects to be spread out across 2 or more Asset Chunks, reducing the overhead of the previously mentioned operations for each Asset Chunk.

We understand that it may be difficult to anticipate whether you need to use Multi-Chunking. Know that you can enable Multi-Chunking later, and you can change the number of chunks you are using for each cell if the current number of chunks is not sufficient. The World Designer Tool allows you to do this in a fairly effortless way, though it can be a time consuming process in some cases.

If you do decide to use Multi-Chunking, now or later, remember to always start with a value of 1 Chunk for each Cell (this is the default value). The World Designer Tool will automatically create and delete Asset Chunks for each Cell as needed, and will modify the Chunk values on the Streamable Grid to match.

Enabling Multi-Chunking GIF