Notifications
Clear all

Advice for large open world areas  

  RSS

skyerx
(@skyerx)
Member
Joined: 6 years ago
Posts: 18
February 15, 2022 7:50 am  

Hi there.

I'm creating an open world area, but want to divide the map into multiple sections. The idea here is to better optimize my map so that only a specific region loads at a time - based on the character's location. I've tried a few methods up to now but it doesn't work well. 

Anyone have any advice for me? Perhaps a plugin that makes the process easier? 

Thanks!


Quote
Nonamer
(@nonamer)
Member
Joined: 6 years ago
Posts: 19
February 18, 2022 5:50 am  

Hi there!
It's a difficult task you took)

It would be cool if you could tell me exactly what methods/assets you've already tried.

In general - if you want an open world, an asset like World Streamer is what you need.

But there's a nuance here. Creating such a world requires a lot of processing power of your PC. After all, you'll have to create it in one piece.
You can create it in parts, but you'll have to edit and merge the terrains in one scene. So in essence it doesn't change much for one developer.

Otherwise, make sectors with transitions. It will simplify game development for you, but change your idea a bit.

In reality, many $200+ assets are studio assets. It takes resources and people to use their functionality. It seems that their capabilities allow you to implement any idea in your project. But. Indie developers always have to sacrifice something, because we don't have people and resources).

If the plan is to do terrains in different scenes and load/unload them one by one, that would only work for sectors game flow, not for the open world. To get a really open world, you need one huge atlas-terrain with a preloaded environment. Then you'd have the same flow as AAA open-world games.


ReplyQuote
skyerx
(@skyerx)
Member
Joined: 6 years ago
Posts: 18
February 21, 2022 8:46 am  

Hi @nonamer

Thanks so much for taking the time to respond. I really appreciate it. 

It's true that an entire team of pros make the process of creating open world so much easier, and the fact that I'm limited to just one person definitely complicates the task. I don't have access to those resources used by the pro studios, but that won't stop me from giving it all my best shot. 

I have taken a look at world streamer and it seems like a good option. I don't have the most powerful PC - it's an ASUS ROG gaming laptop, but it's performance is actually not bad. 

What I have done now is create my terrain and divide it into sections. I'm also using tags, and then using sections based on the player's location in order to populate items. When items are depopulated, I add them to a pool. Then just call them back from the pool when they are needed. Right now, it seems like a good option, as it improved the stability of my framerate a lot - not to the point where I want it, but it is a WIP. 

I have tested what I have created thus far last night on my xbox as I have xbox dev program access. Did a debug compilation first, but this made EVERYTHING slow. I tweaked a bit and decided to do a Master build, then it all went smooth. The combination of those sections and LODs really helped to create a very smooth experience when moving on the map. There's just a small one or two second "freeze" when moving to areas that have more items to populate, but it's not actually affecting gameplay. 

With this said, I have to bring some of my scripts into the map and see how they will affect the performance. 

What do you think of the solution I have implemented thus far? Would you say I should rather consider a different route or improve on what I have already done?

Thanks again for your time and help! Really appreciate it. 


ReplyQuote
Nonamer
(@nonamer)
Member
Joined: 6 years ago
Posts: 19
February 21, 2022 6:38 pm  

@skyerx You're welcome 😉

The method seems to me correct, I can not imagine at first glance how to do otherwise, you can take into account one nuance more from the field of game design. If we have a plain in the game, we use a low density of objects and increase the size of the loaded area. If we need high density (village, city, key place) then we design it with higher relief differences compensating the increased density of objects by decreasing the size of the loaded area. So you can get a better look without much loss in performance.

Question about temporal freeze at transitions is probably a question of optimization.

You could, for example, bake all the static meshes and create texture atlases, which will be loaded in a single draw call. For small and/or interactive objects and scripts - culling systems.

//offtopic I really want to try an asset related to this https://assetstore.unity.com/packages/tools/utilities/perfect-culling-occlusion-culling-system-193611
According to reviews and description it works wonders 😉

Scripts won't noticeably affect performance if they don't have OnUpdate/OnLateUpdate calls.

Just a thought.
The principle of your streamer seems to me optimal. If you can take into account the points I wrote about, it will be even more productive. But this is more from the area of perfectionism. As for the freeze - optimizing scripts, baking lighting, meshes, textures, and culling.

And you should always remember that even the most "open" world is not really so open. All the apparent freedom of movement is often just very skillful game design.


ReplyQuote
bishop420
(@bishop420)
Member
Joined: 5 years ago
Posts: 1
February 23, 2022 12:32 am  

CREATE A BEAUTIFUL TERRAIN


ReplyQuote
FanGamers
(@fangamers)
Member
Joined: 5 years ago
Posts: 30
March 14, 2022 11:13 pm  

I really like that information. I'm not planning on making an open world game, but these tips will be very useful in my current project, which counts on the prologue with a very wide forest, with many assets and game dynamics. Thanks for the information. 😀 😀 😀 


ReplyQuote
Severus1985
(@severus1985)
Member
Joined: 5 years ago
Posts: 1
March 20, 2022 6:10 am  
Posted by: @skyerx

Hi there.

I'm creating an open world area, but want to divide the map into multiple sections. The idea here is to better optimize my map so that only a specific region loads at a time - based on the character's location. I've tried a few methods up to now but it doesn't work well. 

Anyone have any advice for me? Perhaps a plugin that makes the process easier? 

Thanks!

Could use a product like Gaia, create 2km2 blocks and the stitching tool? Render distance is maxed out so transitions should be minimal ( I would have thought). Correct me If wrong someone.


ReplyQuote
aksjdhaskjdhgd
(@aksjdhaskjdhgd)
Member
Joined: 5 years ago
Posts: 3
April 1, 2022 11:48 am  

have you tried world composer before? the dev had 900km2 demo, my potato pc ccan run eassily 


ReplyQuote
aksjdhaskjdhgd
(@aksjdhaskjdhgd)
Member
Joined: 5 years ago
Posts: 3
April 1, 2022 12:00 pm  

have you tried world composer before? the dev had 900km2 demo, my potato pc can run easily gt 430 lol 😂 

method that optimize open world game:

  1. texture atlasing
  2. use mesh, idk based on my personal test mesh seem to get higher fps, always test first reultt migt be differ depent on how your workflow
  3. bathing instancing
  4. culling, frustum & oculision
  5. use reusable prefab, if uneed make ssomething use nested prefab 
  6. use high LOD, including impostor
  7. runtime prefab spawner can help too
  8. dont make overdraw object/mesh

i can recomend MCS 2, caves&overhang for plugin other than  that you can always add like VS PRO

This post was modified 5 years ago by aksjdhaskjdhgd

ReplyQuote
Share: