Marrow SDK Scene Chunks — Transcript
Full transcript
- 0:01[Music]
- 0:06hey folks this is Greece scotman this
- 0:09Maro SDK level authoring tutorial will
- 0:11cover scene chunks scene chunks are an
- 0:14advanced topic that may require some
- 0:16time in experimentation to realize their
- 0:18potential however they're one of the
- 0:20most powerful tools at the level
- 0:21designer's fingertips and can unleash
- 0:24creativity Fidelity and performance not
- 0:26possible with single scene levels is
- 0:29highly recommended that you have a firm
- 0:31understanding of zones with Zone links
- 0:33as they serve as the foundation for the
- 0:34scene chunk system if you have not
- 0:36watched the tutorial video on that topic
- 0:39or read their related Maro SDK wiki page
- 0:42this tutorial may be difficult to follow
- 0:44the scene chunk system allows designers
- 0:46to carve a level into several smaller
- 0:48scenes scene chunks along with zones
- 0:51with Zone length Zone color and Zone
- 0:53chunk loader components are used to
- 0:55define which scenes will be loaded
- 0:57around the player these small scenes
- 1:00will dynamically stream in and out as
- 1:02the player traverses through the level
- 1:04careful use of Zone chunk loaders and
- 1:06Zone links will ensure parts of the
- 1:08level do not suddenly appear or
- 1:09disappear directly in front of the
- 1:11player and combat scenarios flow
- 1:13naturally the scene chunk system is
- 1:15aggressive in putting all geometry
- 1:17entities and assets into a dormant State
- 1:20even the physics state of an object is
- 1:21frozen and stored when an object streams
- 1:23out ensuring the most minimal resource
- 1:26usage possible to enable scene chunks
- 1:29the level crates inspector has a multi-
- 1:31scene toggle that enables the scene
- 1:33chunk streaming system for the level
- 1:36once activated several additional list
- 1:38Fields become available on the level
- 1:40crate the root persistent scene is an
- 1:43always loaded scene and it should
- 1:45contain any items that should never be
- 1:47put into a streamed out or dormant State
- 1:49this scene should contain items like the
- 1:51player marker scene chunks Zone Zone
- 1:54music and Ambience items create spawners
- 1:57and any postprocessing effects
- 2:00additionally game objects with global
- 2:02properties were items that will be
- 2:03visible across most if not all scenes
- 2:06like the levels of sky or the
- 2:08directional light should reside in the
- 2:10root persistent scene light probe data
- 2:13is shared across all scenes that are
- 2:14baked together so organize light probe
- 2:17groups based on personal preference the
- 2:19data they generate will be aggregated
- 2:21regardless if it is gathered in the root
- 2:23persistence scene or organized across
- 2:25additional scenes Prime candidates of
- 2:28level content that should be split off
- 2:29off into separate chunk scenes include
- 2:32static geometry baked lights reflection
- 2:35probes and other static resources these
- 2:38scenes will be streamed in and out based
- 2:39on the primarily activated Zone link and
- 2:42its Zone chunk loader component The Zone
- 2:44chunk loader component lists which scene
- 2:46chunks should be loaded for a given
- 2:48active Zone link the chunks list on the
- 2:51Zone chunk loader component should
- 2:53contain the current scene chunk and any
- 2:55other scene chunks that share line of
- 2:57sight with the current one the the
- 2:59Combat gameplay considerations raised in
- 3:01the zone creation and linking video
- 3:03tutorial should also be applied to Zone
- 3:05chunk loaders a recommended practice to
- 3:08ensure smooth invisible transitions
- 3:10between scene chunks is to always have
- 3:12the current scene chunk and the
- 3:14immediate neighboring scene chunks
- 3:15loaded as the player moves through the
- 3:17level there are a number of tools to
- 3:19help with scene chunk creation once a
- 3:21game object with a scene chunk component
- 3:24exists in the unity hierarchy The Zone
- 3:26creation tools will automatically add
- 3:28Zone Chuck loader components to any new
- 3:30linked zones zones created before a
- 3:32scene chunk existed will need to have
- 3:34Zone chunk loaders added manually
- 3:37whenever a scene chunk is selected a
- 3:39contextual overlay will appear in the
- 3:41lower right corner of the scene view the
- 3:44add remove Zone colors toggle will
- 3:46display Handles in the scene view that
- 3:47will allow you to quickly add a Zone
- 3:49colors that should be members of the
- 3:51currently selected scene chunks Zone
- 3:53colors
- 3:54list when a Zone chunk loader is
- 3:56selected you can lock the inspector and
- 3:58use the buttons on the component to add
- 4:00or overwrite its chunks
- 4:04list the Zone creation and linking
- 4:06overlay has a tool that will help
- 4:08automate some of the steps needed to
- 4:10create a scene chunk it's additive Unity
- 4:12scene and will even attempt to move any
- 4:14selected root game objects into the
- 4:16newly created chunk scene the scene
- 4:19folder path defaults to the active level
- 4:21creates main or persistent scene to use
- 4:24the tool input a file name for the new
- 4:26chunk scene without a Unity extension
- 4:30once you click create scene chunk any
- 4:32selected root game objects will be moved
- 4:34to the newly created chunk scene a new
- 4:37game object with a scene chunk component
- 4:38will be created this object's scene
- 4:40layers list will be automatically filled
- 4:42out and the Zone color add remove
- 4:45handles will be enabled to allow for a
- 4:46quick configuration of the new scene
- 4:48chunks Zone colors
- 4:51list the multi- scene property on the
- 4:53level crate will be enabled don't forget
- 4:55to add the new Unity scene to the level
- 4:57crates chunk scene list
- 5:00Zone colors also have a deeper role in
- 5:02scene chunked levels Zone colors is
- 5:04listed in a scene chunk Define the areas
- 5:06that should be called as the scene it
- 5:07streamed out not only are any entities
- 5:10being tracked by these called zones
- 5:12Frozen freeing up physics and AI
- 5:14performance but the static geometry and
- 5:16lighting and other assets that reside in
- 5:17the chunk scene are hidden freeing up
- 5:19even more resources let's first walk
- 5:22through this test level that has been
- 5:23intentionally designed with holes in the
- 5:25walls so we can see areas of the map
- 5:27that would normally be hidden from the
- 5:28player's line of sight these holes in
- 5:30the walls allow us to see that portions
- 5:32of the map have been streamed out
- 5:34without these windows behind the scenes
- 5:36players wouldn't be aware that as they
- 5:37Traverse the level the areas that they
- 5:39can no longer see have been
- 5:43hidden a simple quick jaunt around a
- 5:45square- shaped Loop nothing out of the
- 5:47ordinary but now I'll step into a Zone
- 5:50event trigger that will remove sections
- 5:51of the interior wall so that other areas
- 5:54of the level should be visible notice
- 5:56how only the room I'm standing in and
- 5:58the nearest connected hallway are active
- 6:01as I step into one of the hallways only
- 6:03the nearest Rooms and hallways that
- 6:05might be in my line of sight become
- 6:07active the two rooms in the corner that
- 6:09are opposite my position in the level
- 6:11are
- 6:12hidden Zone chunk lootus Define what
- 6:15scene chunks get loaded to keep this
- 6:18design as simple as possible I've
- 6:20separated the chunks into the main rooms
- 6:22and L-shaped hallways that make up the
- 6:24corners between the
- 6:25room as I passed through the level the
- 6:28areas that I could never see or reach
- 6:29from my current position are streamed
- 6:31out by the Zone color component Zone
- 6:34colors have a Zone color manager that
- 6:36works behind the scenes with the Zone
- 6:37linking system to track entities within
- 6:40active linked zones and freeze and hide
- 6:42any entities that are not in any active
- 6:44linked zones this calling process is
- 6:46aggressive and will even freeze the
- 6:48physics simulation for the called
- 6:49entities ensuring the positioning and
- 6:51state of the entity are preserved and
- 6:53persist while taking as few resources as
- 6:55possible to do so any eddi of scenes
- 6:58that are not in the active Zone chunk
- 7:00loaders list of chunks have their
- 7:02content streamed out recovering even
- 7:04more
- 7:05resources now that we've seen the scene
- 7:07chunk system in action let's start from
- 7:09a single scene version of the level that
- 7:11has been stripped of all of its scene
- 7:13chunks the level has zones with Zone
- 7:15links that have been connected based on
- 7:17line of sight and combat scenario
- 7:18considerations following the guidelines
- 7:20in the zone linking video tutorial but
- 7:22all of the scen chunk related settings
- 7:24components and configuration has been
- 7:27removed in its own creation and linking
- 7:29overlay click the scene chunks tab
- 7:32select the root game objects of any
- 7:33static geometry baked lighting volume
- 7:36metrics light probes reflection probes
- 7:38and other static objects that you want
- 7:40moved into the new scene once it's been
- 7:42created in this case I've already
- 7:44organized the chunk level content under
- 7:46a single game object parent next provide
- 7:49a file name for the new scene once the
- 7:51create scene chunk button is clicked the
- 7:53selected root game object is
- 7:54automatically moved to the new chunk
- 7:56scene a new scene chunk game object is
- 7:59created and its scene layers list is
- 8:01automatically filled selecting the new
- 8:03scene chunk displays all the Zone colors
- 8:05that have yet to be added to a scene
- 8:06chunk scene layers list since this is
- 8:09the room zero scene chunk I want to add
- 8:12the room Zero Zone color notice how the
- 8:15Zone color now appears with a magenta
- 8:17wireframe box whenever its Associated
- 8:19scene chunk is selected in the hierarchy
- 8:21let's repeat the process for the hallway
- 8:23Corner zero select the root game object
- 8:26that holds the contents that should be
- 8:27moved to the new scene provide a scene
- 8:30file name click create scene chunk add
- 8:34the Zone colors that pertain to this new
- 8:35scene Chunk in this case we'll add the
- 8:38three Zone colors that make up this
- 8:42corner we'll now speed up and rinse and
- 8:44repeat for the remaining rooms and
- 8:46hallways
- 9:28next we need to ensure that the new
- 9:30chunk scenes are added to the level
- 9:31crates chunk scenes list this step is
- 9:35automated in a future iteration of these
- 9:36tools but for now must be done manually
- 10:00because these zones were created without
- 10:01any scene chunk game objects in the
- 10:03level we need to add the Zone chunk
- 10:05loader components manually to all the
- 10:07zones with the Zone links if we were
- 10:09designing the level from scratch we
- 10:11could add at least one scene chunk
- 10:13component early in the zone and linking
- 10:15process to have the tools automatically
- 10:17add this component for us the final step
- 10:19to setting up a scene chunk level is to
- 10:21configure The Zone chunk loader
- 10:23components this process is very similar
- 10:25to Zone linking in that you will want to
- 10:27follow a general line of sight and
- 10:28combat considerations since any enemies
- 10:31or objects that get called will be
- 10:33frozen in this simple example I ensure
- 10:36that if I'm in a room then the hallways
- 10:38and Corners that lead in and out of the
- 10:40current room Stay Loaded if I'm in the
- 10:42hallways I ensure that the adjoining
- 10:44rooms and hallways are loaded keeping in
- 10:47mind that in VR we can peer around
- 10:49corners crawl use the Nimbus gun and so
- 10:51on so you must consider every line of
- 10:53sight vantage point when both linking
- 10:55zones and setting up the Zone chunk
- 10:57loader component configure ing The Zone
- 10:59chunk loader may seem confusing at first
- 11:02the basic process I use is to First
- 11:04consider line of sight if the player
- 11:07standing in this Zone with a Zone chunk
- 11:09loader what chunks need to be loaded so
- 11:12that there's no way for them to see any
- 11:14chunks stream in or out for starters
- 11:17we'll include the chunk that we're
- 11:18standing in next expand to add
- 11:21neighboring chunks that have line of
- 11:22sight with the current
- 11:24chunk it may be useful to consider
- 11:26including the next chunk beyond that so
- 11:29that you always have at least the
- 11:30current chunk and the chunks ahead and
- 11:32behind the player loaded notice that for
- 11:35the hallways there are three linked
- 11:37zones for each hallway Corner chunk be
- 11:40sure to select all of the zones that are
- 11:41included in a chunk before you lock the
- 11:44inspector the ad selected scene chunks
- 11:47button will indeed update the chunks
- 11:49list of multiple Zone chunk loader
- 11:51components though the inspector lock
- 11:53will make it appear that nothing
- 11:54happened until you unlock and examine
- 11:56each Zone individually
- 11:59the visual gizmos in the scene can be
- 12:01very helpful here in ensuring that
- 12:03you're adding the proper scene chunks to
- 12:05the Zone chunk loader list with them I'm
- 12:07able to verify that I'm adding the
- 12:09correct scene chunks by looking at the
- 12:11magenta wireframe boxes and comparing
- 12:13them to the selected Zone chunk loader
- 12:15before you click add selected scene
- 12:17junks you'll have a visual
- 12:19representation between the selected
- 12:20zones and the scene junks that you about
- 12:22to add to the Zone chunk loaders
- 12:34to hammer home the process for clarity
- 12:36I'm clicking the zone or zones with Zone
- 12:38chunk loaders using control click to add
- 12:41to my selection in the
- 12:43hierarchy next I lock the inspector so
- 12:45that these selected Zone chunk loaders
- 12:47Remain the active object I then
- 12:50control-click and add any scene chunks
- 12:52that are in line of sight of the
- 12:53selected Zone chunk loaders I'm able to
- 12:55use the scene gizmos to visually verify
- 12:58my selections
- 12:59once satisfied I click the ad selected
- 13:02scene chunks button in the
- 13:07[Music]
- 13:20inspector for a linear campaign example
- 13:22here's a very stripped down
- 13:23representation of the beginning of
- 13:25descent I've removed anything past the
- 13:27dungeon and stripped out most of the the
- 13:29geometry and models just leaving the
- 13:31zones in the scene chunks so you can get
- 13:33a basic sense how a level with desense
- 13:35Fidelity is zoned blinked and chunked
- 13:38into separate scenes the player marker
- 13:40resides above the pit in the field after
- 13:43cutting the Noose you fall into the pit
- 13:45and crawl through the Rocks pass the
- 13:47inventory tutorial statue and Dogma
- 13:49Obelisk until you reach the
- 13:53dungeon I left in the cage where you
- 13:56obtain the blue key as a visual
- 13:57reference you then wind your way through
- 13:59the cells to the dungeon
- 14:02exit I'll now enable the scene chunk
- 14:04overview so you can get a visual sense
- 14:06of the zone and chunk
- 14:08breakdown in a more linear campaign
- 14:10level you can use twists and turns to
- 14:12break sight lines and drop offs to
- 14:14introduce points of No Easy return you
- 14:16then carve up the level so that the
- 14:18current area and the areas ahead and
- 14:19behind the player are always loaded if
- 14:21your level has branching rounds you can
- 14:23use line of sight methods to keep the
- 14:25needs to load multiple areas efficient
- 14:27if you have large combat AR with lots of
- 14:29enemies design your level accordingly so
- 14:32you can get the maximum performance
- 14:33under those resource taxing
- 14:36conditions let's look at a potential
- 14:37misconfiguration that should be
- 14:39considered when placing enemies in a
- 14:41chunk
- 14:42scene crate spawners not in the root
- 14:45persistent scene will activate anytime
- 14:47their scene chunk is streamed in and
- 14:50deactivate anytime their scene chunk is
- 14:51streamed out this usually has unintended
- 14:54consequences like an enemy suddenly
- 14:56disappearing if the scene chunk that
- 14:58their crate spawner is resides in is
- 15:00called the crate spawned entity will be
- 15:02despawned regardless of where they
- 15:04physically are in the level at the very
- 15:06instant that the scene that holds the
- 15:08crate spawner streams out if the scene
- 15:11is streamed back in a new entity will
- 15:13respawn at the crate
- 15:14[Music]
- 15:25Spawner in contrast enemies and items
- 15:27from crate spawners that reside in the
- 15:29root persistent scene will simply be
- 15:31frozen if they are in a scene chunk that
- 15:32is called however if they move into a
- 15:35new scene chunk they will remain active
- 15:37even if the scene with their crate
- 15:39spawner is cold in other words in most
- 15:41cases it is a best practice to keep
- 15:43crate spawners in the root persistent
- 15:46scene scene chunks may seem complex at
- 15:48first but the time spent organizing and
- 15:50configuring your level to work with them
- 15:52will be well worth the effort as the
- 15:54gains provided by the chunk system are
- 15:56considerable in addition to performance
- 15:58improvements there are also some
- 15:59creative ways to utilize scene chunks
- 16:02especially in campaign style scenarios
- 16:04where you want branching paths and
- 16:06player choice to have meaning and
- 16:07consequence I look forward to seeing
- 16:09what the community is able to create
- 16:11with these new tools and if you have
- 16:13questions be sure to join the lava gang
- 16:15Discord server and ask away until then
- 16:18see you in the void
About this transcript
This page contains the full transcript of Marrow SDK Scene Chunks by Stress Level Zero, generated from the public captions YouTube serves with the video. The transcript has 2,719 words across 416 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.