Jump to content

Multiple worlds using Framewerk


Laurens
 Share

Recommended Posts

Hi guys,

 

I am currently working on a space simulator which is coming along pretty nicely. I am currently capable of loading galaxies in a custom format and jumping between galaxies. I want the player to be able to leave his/her ship and explore a station however, which is where I am stuck at.

 

Basically I need everything that is going on in a galaxy to keep going on while the player is docked. AI should keep docking/undocking and generally flying about. I just need everything to be hidden while the player is docked (which really is just an Editor scene). So I though of a way to tackle this but I am not sure if this is possible using Framewerk.

 

I would have two seperate worlds. One contains the galaxy the player is in and the other one would contain the Editor scene. When the player is docked, the game switches state and sets the station world as the current world. Seems like an easy way out to keep the galaxy updating and still hiding everything in it. When the player undocks, the game would switch state yet again and the galaxy would be rendered.

 

Is this setup possible with Framewerk? Would this lead to high memory usage? Does anyone have other suggestions on how to solve this problem?

 

Many thanks!

Link to comment
Share on other sites

I would prefer not to use Editor for designing galaxies though. Due to the large distances I need between celestial bodies it becomes near impossible to navigate. I could scale all objects down a lot, but the camera moves way to fast to zoom in and maintain precise control when viewing very small objects even on it's lowest setting. This is why I came up with my own format and editor.

Link to comment
Share on other sites

You don't necessarily need to load a sbx file, but you could also load the positions of the models from a sqlite database, then you would get also infinite streaming capability. But you should still delete and recreate the world when you switch from outer space to inside a space station.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...