Jump to content

Problem with scene start


Virtual Magic Games

Recommended Posts

Hello !

I have a weird problem with GAIA streaming. 
I done a lot of scenes, i have terrain streams and everything works fine in Editor. 
If i will build game with my let's call "root-scene" (with GAIA Runtime, Terrains loader on player and so on) with scene index = 0, everything works fine.

So with this setup of build settings:
0. RootScene (GAIA Runtimes)
1. Terrain-Scene_0001
2. Terrain-Scene_0002
3. Terrain-Scene_0003

everything works fine.

But i added new scene with Main Menu. On Main Menu I have a button "Start Game" with simple method "SceneManager.LoadScene("RootScene");

And here is the problem. The root scene is loaded correctly, player is spawned, everything from Root Scene is working. But Terrain's wont load with this setup. I have no idea why that can happen, i have 0 errors in the console. Have You any idea what can be wrong ?

Best Regards

Link to comment
Share on other sites

58 minutes ago, Virtual Magic Games said:

Hello !

I have a weird problem with GAIA streaming. 
I done a lot of scenes, i have terrain streams and everything works fine in Editor. 
If i will build game with my let's call "root-scene" (with GAIA Runtime, Terrains loader on player and so on) with scene index = 0, everything works fine.

So with this setup of build settings:
0. RootScene (GAIA Runtimes)
1. Terrain-Scene_0001
2. Terrain-Scene_0002
3. Terrain-Scene_0003

everything works fine.

But i added new scene with Main Menu. On Main Menu I have a button "Start Game" with simple method "SceneManager.LoadScene("RootScene");

And here is the problem. The root scene is loaded correctly, player is spawned, everything from Root Scene is working. But Terrain's wont load with this setup. I have no idea why that can happen, i have 0 errors in the console. Have You any idea what can be wrong ?

Best Regards

I would say make sure that the scenes are in the build settings and they are unloaded. 
Then check your player and make sure it has the terrain loader component attached to it. 

What player controller are you using? 

Link to comment
Share on other sites

I found the issue... I have to wait ~30s for Terrain to be loaded in build mode (only in setup with Main Scene as first scene in build). If the rootscene is first, then i have to wait like 2-3s (same as in Editor). So maybe it's something related to the caching or something. I will try to make script to block player controller (opsive) as long as needed while terrain is loading 🙂

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...