Jump to content

Delegate/Event for when all the near chunk has done loading


IlMarso91

Recommended Posts

Hi,

I've done with all the design of my terrain scene and I'm in the process of sectorizing/splitting everything.

Before I do it I need a way to detect when all the near terrain sector are done with loading.

I need this for fast travel and for the first time the scene is loaded.

Link to comment
Share on other sites

Another question

Are portals needed in scene with terrain and region loader?

Link to comment
Share on other sites

14 hours ago, IlMarso91 said:

Another question

Are portals needed in scene with terrain and region loader?

Yes, and there is a demo scene to showcase this. 

19 hours ago, IlMarso91 said:

Hi,

I've done with all the design of my terrain scene and I'm in the process of sectorizing/splitting everything.

Before I do it I need a way to detect when all the near terrain sector are done with loading.

I need this for fast travel and for the first time the scene is loaded.

I think you are going to have to make a custom script to tie into the loader that you are using. 

Link to comment
Share on other sites

Thank you for your answer, I have another question I posted on discord but I will post here too for future reference

Regarding layer and nested sectors.
I now have a sector for each part of the terrain. For prefabs, grass etc that are "inside" the terrain.I want to create different sectors to load when the player is closer.

Should the sectors be child of the terrain sector or I must use a different sector for every layer and every sector needs to be it's own thing with no sector as parent?

Link to comment
Share on other sites

Yes they should be childs of the terrain sector. 
So you can do occlusion 

 

Link to comment
Share on other sites

So the structure should be (image attached)

PARENT Terrain sector


-> CHILD sector for big size prefabs with the right layer to allow the loader to detect it
->-> objects inside the child sector with their own layer etc


-> CHILD sector for mid size prefabs with the right layer to allow the loader to detect it
->-> objects inside the child sector with their own layer etc


-> CHILD sector for small size prefabs with the right layer to allow the loader to detect it
->-> objects inside the child sector with their own layer etc

 

PS: you should update the documentation

Immagine 2024-05-09 110309.jpg

Link to comment
Share on other sites

Sectors that are inside other sectors do not get exported. 

You need to have all of your sectors as "no parent" objects.

Link to comment
Share on other sites

Right, you wouldn't export them though they should live in the Main Sector. 
You would just use the portals for the inside sectors. 

 

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
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...