-
Notifications
You must be signed in to change notification settings - Fork 2
ActiveAreas Explained
This page still needs some work
The implementation described in "Dealing with a Large Universe" is separate from the game engine. So how does the player interact with the universe, or anything at all? There exists the ActiveArea, which stores the physics-enabled game Scene, projecting the large universe into a tiny space the game engine can handle. ActiveArea is a Satellite, so it's positioned the same way as other astronomical body or space craft, but usually follows the player around. To
All Satellites have a m_loadRadius variable, describing a sphere around the satellite. When sphere of a normal Satellite (a spacecraft or planet) hits an ActiveArea's sphere, then the ActiveArea calls that Satellite's load() function. Whatever happens in load() is up to the Satellite's implementation, like load a Node containing PlanetTerrain for AstronomicalBody.
write something about loading discount models of far away objects, so they are still visible. like distant flares for stars, and low detailed planets.
The (0, 0, 0) position of the ActiveArea's internal Scene, corresponds to the center of the Satellite in the large universe. Note: ActiveArea keeps units of its Scene in meters, regardless of any precision values.
This is suppose to be an open source project, so go ahead and contribute. If you don't like this implementation then go to the Discord server and yell at Capital-Asterisk.