FlightGear WorldTerrain SkyBox Server: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:
}}
}}
== Objective ==
== Objective ==
'''Notes from the author (Chris Calef) March 04, 2015:'''
The purpose of this project is to make FlightGear's extensive library of world data, weather & environment logic, and map editing tools, available for the realtime use of other applications over a socket connection, either locally or over a network.
The initial driving application for this ability is a first person game engine. When this project was initiated in 2013, the Unity engine was chosen for the flagship demo, but we have since switched back to T3D in order to maintain complete source access and a totally open license (and in recognition of the impressive work being done by the Torque3D steering committee and community).
At present, only two types of data are transferred from FlightGear to the client game engine, skybox images and terrain data. A custom camera group has been created (skybox-cameras.xml) which creates a set of five images capable of being mapped to a skybox in the client (there is no bottom image currently). Meanwhile, as the player moves around the world, the terrainPager class in T3D sends requests for terrain data, which are answered in flightgear by the creation of binary float array files for heights and integer array files for texture reference. These are named with the protocol "hght.(coordinates).bin" and "text.(coordinates).bin" respectively.
The application is still under heavy development, but the current version uses a custom networking class called "dataSource", which is responsible for opening and maintaining the socket connection, and sending a basic packet of information, and "worldDataSource" which inherits dataSource and handles all the real work.
This structure is still up for debate and it is very likely that it will be discarded in the future in favor of more general networking classes, probably from SimGear.
{{FGCquote
{{FGCquote
   |My ultimate goal here is a real-world-terrain-based MMO game using Unity for the FPS engine and FlightGear as a backend {{wikipedia|Skybox (video games)}} server.
   |My ultimate goal here is a real-world-terrain-based MMO game using Unity for the FPS engine and FlightGear as a backend {{wikipedia|Skybox (video games)}} server.
27

edits

Navigation menu