sdk:scenery
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:scenery [2017/01/16 11:52] – aerofly | sdk:scenery [2020/05/10 20:06] – [Coordinate System] jh | ||
---|---|---|---|
Line 4: | Line 4: | ||
To get a better idea on how the whole process of creating an airport for Aerofly FS 2 works, we have provided the airport ' | To get a better idea on how the whole process of creating an airport for Aerofly FS 2 works, we have provided the airport ' | ||
- | ===== Scenery Definition File (.tsc) ===== | + | ===== Scenery Definition File (TSC) ===== |
- | The .tsc is a simple text file that defines the type of scenery object, its 3d model origin on the globe, elevation and use of auto height, its name as short and long version, description text and specific to airports: ICAO code identifier, parking positions, runway endpoints and threshold points, runway width and its approach light system, tower view position and more. We will address some of these features later on in this workshop. | + | |
+ | The [[sdk: | ||
Changing the .tsc file can be done in two different ways: | Changing the .tsc file can be done in two different ways: | ||
Line 54: | Line 55: | ||
===== Coordinate System ===== | ===== Coordinate System ===== | ||
- | The entire airport is modeled in a local coordinate system whose origin is moved to the longitude and latitude or web-mercator coordinates defined in the .tsc file when the airport is loaded in the simulator. | + | |
+ | The entire airport is modeled in a local coordinate system whose origin is moved to the [[sdk: | ||
The x-axis of the modeling coordinate system points towards east; the y-axis is geographic north and the z-direction is defined up from the earth' | The x-axis of the modeling coordinate system points towards east; the y-axis is geographic north and the z-direction is defined up from the earth' | ||
Line 136: | Line 138: | ||
- Continue with decals, add the suffix ' | - Continue with decals, add the suffix ' | ||
- Use helper objects to set the coordinates of all runway endpoints and their threshold points. The threshold points will affect the positioning of the selected approach lighting system. | - Use helper objects to set the coordinates of all runway endpoints and their threshold points. The threshold points will affect the positioning of the selected approach lighting system. | ||
- | |||
- | V | ||
- | ===== Introduction ===== | ||
- | This section gives a brief overview of how Aerofly FS 2 simulates an aircraft, the units and coordinates systems and the different file types that are used by Aerofly FS 2 and the Aircraft Converter. | ||
- | |||
- | ==== Simulation ==== | ||
- | Aerofly FS 2 uses an object-based approach to simulate an aircraft for maximum flexibility. This means that each aircraft is defined in terms of many objects (also called (function) blocks or elements in commercial general purpose simulation packages), instead of a fixed set of variables that every aircraft must use. In addition to very general objects that can be used for any type of simulation, there are many objects specialized for flight simulation like aerodynamics forces, engines and propellers, avionics objects and many more. The designer of the aircraft is free to add any number of objects and connections to an aircraft by adding it to the dynamics section of the aircraft' | ||
- | |||
- | Please refer to the ' | ||
- | |||
- | ==== Units and Coordinate Systems ==== | ||
- | Aerofly FS 2 uses the international system of units (SI) exclusively. This means that all lengths and dimensions are meters, masses are in kilograms, forces are in Newtons, power values are in Watts, speeds are in meters per second. | ||
- | Any rotation uses the positive mathematical direction (anti-clockwise), | ||
- | Fractions are used instead of percentages (20% would be written as 0.2). | ||
- | The coordinate system the entire aircraft is defined in is set in the 3D model of the aircraft. The origin is usually placed close to the center of gravity but does not have to be. The direction of flight defines the x-axis of the aircraft' | ||
- | The y-axis points towards the left of the aircraft, the z-axis points straight up. One unit in the coordinate system represents a real world length of one meter. The 3D model may use a scale factor which is removed when the aircraft is exported. | ||
- | |||
- | ==== File Types ==== | ||
- | An aircraft in Aerofly FS 2 is defined by the files contained in one folder. The folder' | ||
- | |||
- | | Intermediate folder | Aerofly FS 2 aircraft folder | Description | | ||
- | | | ||
- | | xxxx.tgi | | Binary 3D model file created by the export plugins for 3D Studio Max or Cinema 4D. | | ||
- | | | xxxx.tmb | Binary 3D model that contains information like the vertex positions, texture coordinates, | ||
- | | xxxx.tmc | xxxx.tmc | Description file of the aircraft that contains the text shown in the aircraft menu together with the preview image. Also contains parameters to change the initialization of the aircraft: the orientation how the aircraft is placed on the runway, the maximum and minimum airspeed, landing speed and maximum altitude. | | ||
- | | xxxx.tmd | xxxx.tmd | Defines camera positions, the complete physics definition of the aircraft including engine and aerodynamic parameters, logic circuits, electrical systems, fuel systems and so on, as well as the graphics animation and sound definition. | | ||
- | | xxxx_takeoff.tmd xxxx_clean.tmd xxxx_landing.tmd | xxxx_takeoff.tmd xxxx_clean.tmd xxxx_landing.tmd | Used to set certain dynamics parameters that should be different from the standard values in the ' | ||
- | | controls.tmd | | Defines positions and sizes where interaction with the mouse or VR controllers is possible. | | ||
- | | .bmp .tif .png | | Source texture files. Must be square power-of-two bitmaps. BMPs 24 bit RGB only. TIF and PNG RGB or RGBA. Bump maps can use 16 / 48 bit to avoid terracing. | | ||
- | | | .ttx | Converted and compressed texture files | | ||
- | | preview_xxxx.png | | Preview file rendered by the converter | | ||
- | | | preview.ttx | Compressed preview texture for aircraft menu | | ||
- | | repaint.tmr | repaint.tmr | Repaint or livery description file defining the repaint' | ||
- | | .wav | | Source sound file. Must be PCM 22050 Hz mono | | ||
- | | | .tsb | Converted sound files that are created from .wav files by the converter tool. | | ||
- | | model.tmc | | Configuration file for aircraft conversion. Used to set non-default values for texture sizes, bump map strength and texture parameters if necessary. | | ||
- | |||
- | The ' | ||
- | |||
- | ==== Limitations ==== | ||
- | The Aircraft Converter that comes with this SDK is the same tool we use to convert aircraft. There are no limitations on objects or functions you can use to create your aircraft. | ||
- | |||
- | However, the SDK doesn' | ||
sdk/scenery.txt · Last modified: 2020/05/10 21:17 by jh