Jump to content

API and examples?


Bil Simser
 Share

Go to solution Solved by Peter,

Recommended Posts

I watched the GDC talk about Firewatch and how they used SECTR to dynamically load up outside areas (rather than splitting up the terrain in equal sections like SECTR does today). I'm assuming they just used portals and designated areas to manually do this? The Firewatch work was done with a very old version of SECTR (and Unity). Is the current version have an API with the same capabilities to use in an outdoor setup and manually trigger loading/unloading of user defined sectors?

Link to comment
Share on other sites

  • Solution

I do not know which exact technique they used exactly, but generally speaking this should be possible in multiple ways - you could use a region loader with a relatively small load size for example, and just set up bigger chunks of your level as sectors to be loaded as soon as the region touches it, so as soon as you come close to the end of one section, the other one would load in. You would not need to have portals set up for this, and you also do not need to have those evenly cut up sector shapes from a terrain either.
If you do set up portals, there is a neighbor loader which will automatically load all neighbors n-deep.
Last but not least would be a custom technique, SECTR has a Loader class that you could inherit / extend, but if you have a reference to the SECTR_Chunk class that you want to load, you would need to "add a reference" to it which means "hey I request that thing to be loaded now". There is a method on the SECTR_Chunk class that does just that (from the API documentation):
image.png

So you could also just do a simple trigger collider that has a reference to the correct SECTR_Chunk and calls AddReference to it, and then removes the reference again as well at some point to unload.

Link to comment
Share on other sites

Thanks Peter, I'll take a look at the API documentation and see if that works. The triggers they use are just walls they setup in the level based on anticipating which way the player would be going and loading in predefined sectors based on the position of the trigger (one for loading and one for unloading).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Tell a friend

    Love Unity 3D World & Game Creation Tools - Canopy - Procedural Worlds? Tell a friend!
  • Interesting Articles

    1. 2

      I'm getting tired of doing islands and craters

    2. 2

      I'm getting tired of doing islands and craters

    3. 1

      Problems with latest Gaia Update

    4. 1

      Adding shoreline or waterline effects, beaches, river banks, etc.

    5. 1

      Just upgraded my Canopy to Pro

×
×
  • Create New...