Super Static Tool
- 4A Games
Overview
The Super Static Tool is a way of creating baked static meshes on your level. This allows for better performance but it has its limitations.
For the Super Static Tool to work, it requires Sectors, Lightmaps, Portals, and Baking to work.
It's best used for linear scenarios (indoors, houses, rooms, sewers, etc.) but can also be used on open-world maps.
The Super Static Tool can be accessed by an S located in the Library, don't mistake the S for the Sound Editor!
Component | Description |
---|---|
Sectors | Rooms/Sections. It's a folder that has every mesh in that sector. Basically, this is what's going to be turned ON/OFF. |
Lightmaps | Lightmaps are not textures. They are containers of AO (Ambient Occlusion) data and can hold either vertices or textures. Created Lightmaps have properties:
After you have assigned lightmaps on files with geometry, you can try building your map. It’s not necessary to rebuild the whole map every time, you can check the lightmaps that require that and click Build Checked Only, or build everything from the ground up with Build Map. You can gather a few sectors on one lightmap and vice versa – use one lightmap for every few sectors. You should keep in mind that the lightmap's size is 512x512 but you can have quite a few of them. |
Portals | Portals are objects in a scene, just like static props or other entities. You can create them manually in the editor, add edit static portal, and create a few vertices for it by snapping to the current geometry in a scene. You can also import them from geometry in dae-files, click Add Portals, choose a dae-file from the “source” folder of your map, and, after you make sure that new portals are added to the appropriate list of the Super Static Tool, click Compile Portals to see how they work on the map. |
How It Works
The Super Static tool bakes your meshes into the scene, making them "Super Static" which means they are fixed in place, immovable and unchangeable. They also have information baked into them such as AO, shadows, etc.
Usually, you should only make baked meshes when they don't require any more modifications, since you'll waste time baking and arranging them afterwards.
When inside a Sector, you should be able to see all meshes that were baked in that Sector. Everything inside that Sector (even non-super static meshes such as lights, prefabs, etc.) follows this rule.
But whenever you are outside a sector, the only way to "load it" is via Portals. Portals are planes that are added between two sectors (e.g. doors, windows).
If you look at a portal, you should be able to see the next sector. If the portal is outside the camera view range, that sector is unloaded/hidden.
You can think of the Super Static Tool as an "Automatic Level Streaming" method where Levels are the sectors where you load/unload them by looking/looking away from portals' connections.
Rules
General:
- Each Sector needs to be connected in some way (e.g. door frames cut in the middle, half is Sector #1, the other is Sector #2).
- You can have an "outdoor" Sector, normally used with open worlds.
- Needs to have at least one lightmap assigned to it.
- Needs to have at least one mesh inside of it.
- Needs to be assigned to a sector. If this cannot be done, delete it.
- Needs to be in the intersection between sectors! E.g. doors, windows.
- Can't be bigger than the camera view.
- Don't use more than six vertices when creating it.
How To
You can create baked meshes in two ways:
- From 3D software (Maya/Max/Blender...) (old).
- Directly within the editor (new pipeline).
From the 3D Software:
- Create your sectors but remember that they must be connected in some way (e.g. Room #1 and Room #2).
- Create a portal mesh: a single-sided plane. It must be in the intersection of both sectors.
- Export each one individually with a proper name. The format must be .DAE.
- In your map folder, create a folder called "source" and add the files there (e.g. .../content/maps/m3/01_dead_moscow/source).
Within the Editor:
- Place static meshes into the scene. Remember they must be connected in some way!
- Select all the meshes from one sector and then RMB → Utils → Change Type... → Baked.
After this, the steps differ very little between the old and the new pipelines:
- Open the Super Static Tool.
- Look for "Add Sector" in the toolbar and create the sectors needed (e.g. Room #1 and Room #2, etc.).
- Look for "Add Lightmap" and create the lightmaps needed (e.g. Room #1_Lightmap, etc.).
- If created with 3D software:
- Click on Add Files and select them.
- Select your sector and assign a lightmap to it.
- Click on Add Portals and select the portal file.
- If created within the editor:
- Click objects from the sector and, on the properties tab, choose a sector for them.
- Select the lightmap for them in the same tab.
- Look for "Portal" in the Entity List and create a portal. Draw it between sectors. Remember to snap vertices!
- If everything is OK, select the lightmaps you want to bake and click "Build X Checked maps" or Build Map ("Build Map" will build everything, whereas the first option will only bake the selected lightmaps).
- THIS MAY TAKE SOME TIME, SO BE CAREFUL (for small scenes, less than a minute, but for large ones (e.g. Bridge), it can take many, many hours).
- After the bake, click on "Compile Portals" – and you're done!
Terrains don't need a sector, just a lightmap.
Note: calculate Terrain AO works only for terrain and only when clicked (it does not calculate with the "Build Map" button). It does take a long time to bake all, so be careful.
Cool Tips
General
Always create a floor for your sector.
- This is because raytracing is cast from a camera to the ground (ignoring camera rotation) and the first object it contacts will dictate which sector you are in.
- If no specific sector is found, it will show that you are in sector #0.
- To open these statistics, go to the Debug Tab → Stats → St_Common.
Why is my sector not showing/always showing?
- Look for "Ignore Portals" in the Render Toolbar.
- Usually, the button is deactivated which simulates how the portals work in-game.
- If you are still working in sectors, toggle the button to show all sectors, independent of portals.
Portal Info and Display
- In the Debug tab, look for Portals and Portals Info.
- Portals (left) will toggle, if a portal is drawn into the editor.
- Portals Info (right) will toggle info about the portal: the number of the portal, which sectors it's connecting (Sector 4 and 5, for example) and it's name.
My Bake Crashes
One of the main causes of a crash is when the Super Static Tool is using your CPU instead of the GPU.
To fix that, click anywhere in the Super Static Tool and, in the properties tab, select your graphics cards in the Device tab.
Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.