User Tools

Site Tools


sdk:aircraft:modelling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sdk:aircraft:modelling [2017/01/30 12:32]
jh [Files]
sdk:aircraft:modelling [2020/05/10 21:20]
jh [Supported Modelling tools]
Line 1: Line 1:
 ====== Modelling ====== ====== Modelling ======
  
-===== 3D Model ===== 
- 
-The 3D model is the visible aircraft that displayed on the screen. The 3D model on the computer is a bunch of numbers that define several hundred-thousand points and their connections. Three connected points make one triangle (a tiny bit of surface) and several triangles connected to each other can approximate any shape, e.g. the shape of a certain aircraft part. This collection of triangles is called a mesh and can be imagined as a dense net that spans over the entire surface. Onto the mesh an image (texture) is overlaid to define the coloring of the surface. 
-All meshes of the individual parts make up the '3D model' of the aircraft. 
- 
-Of course not each individual point (vertex) is placed by hand. There are software programs that let the user modify primitive geometry (cube, cylinder, sphere,...) into any shape desired. These modelling tools also do a great job of flattening/stretching the 3D surface of triangles into a flat surface so that it becomes easy to assign parts of an image (texture) to a part of the model (uv-mapping). 
- 
-===== Supported Modelling tools ===== 
- 
-Currently (30th January 2017) the Aerofly FS 2 Software Development Kit ([[sdk:intro|SDK]]) supports 3D Studio Max 2010 or higher, Maxon Cinema 4D version 17 and AutoCAD (AC3D) 3D version 8. 
  
 ===== Robin DR-400 - Example Aircraft ===== ===== Robin DR-400 - Example Aircraft =====
  
-In the [[sdk:intro|SDK]] we have included an entire aircraft project, the Robin DR-400, including its 3D model and textures. By following the few steps of the [[sdk:aircraft:tutorial|aircraft tutorial]] the necessary development programs will be installed and at the end of the tutorial the DR-400 will be installed as an additional aircraft in the simulator.+In the [[sdk:intro|SDK]] we have included an entire aircraft project, the Robin DR-400, including its 3D model and textures. By following the steps of the [[sdk:aircraft:tutorial|aircraft tutorial]] the necessary development programs will be installed and at the end of the tutorial the DR-400 will be installed as an additional aircraft in the simulator.
  
 > Please note that the 3D model of the Robin DR-400 provided is copyrighted and may not be used for any other purpose then demonstrating how to create aircraft for the Aerofly FS 2. > Please note that the 3D model of the Robin DR-400 provided is copyrighted and may not be used for any other purpose then demonstrating how to create aircraft for the Aerofly FS 2.
- 
----- 
  
 ===== Preparing a Custom 3D-Model ===== ===== Preparing a Custom 3D-Model =====
Line 25: Line 13:
  
 To achieve an error free export some preparation is needed to be done first. For the DR400 example aircraft all these steps have already been completed so that this plane can be used as a reference. To achieve an error free export some preparation is needed to be done first. For the DR400 example aircraft all these steps have already been completed so that this plane can be used as a reference.
 +
 +==== Overview ====
 +
 +This overview shows the necessary steps to get an aircraft model from a 3D design software like 3D Studio Max or Cinema4D into Aerofly FS 2. The steps are described in more detail later in this chapter.
 +
 +Steps 1. to 6. have already been done for the example aircraft that comes with this SDK so that you can start with step 7. right away and use the example aircraft as a reference for your projects.  
 +
 +  - Create a new folder using lowercase letters a-z, digits 0-9 and the underscore only (like c172, b747, f4u, …). This folder will be referred to as the intermediate folder. The name of this folder will be the internal name of the aircraft (the name displayed in the aircraft menu can be set later) and determines the names of several files. In the following, we will choose the name to be xxxx.  
 +  - Copy and/or export all necessary source texture and sound files to the intermediate folder. The files must be in a format supported by the Aircraft Converter (.bmp / .tif / .png / .wav).  
 +  - Prepare the 3D model as described below.  
 +  - Export the 3d model to the intermediate folder using the filename xxxx (this creates the 'xxxx.tgi' file) as described further down.  
 +  - Create the aircraft definition and configuration files. You can create these files from scratch using the section 'Aircraft Definition' in this document as a reference, or you can copy and modify the files from an existing aircraft. If you just want to get the 3d model into the simulator to check the graphics,  simply copy the 'template.tmc' and 'template.tmd' files from the SDK's 'template' folder and rename them to 'xxxx.tmc' and 'xxxx.tmd' respectively. Change the name and description in the .tmc file and replace the entry 'Box' in the GeometryList parameter at the end of the .tmd file by the names of all your geometries.  
 +  - Add the 'model.tmc' file. For the beginning, you can copy the 'model.tmc' from the SDK's 'template' folder and fine tune texture sizes later.  
 +  - Run the aircraft converter. Right click on the 'xxxx' intermediate folder and choose Aerofly FS 2 Aircraft Converter from the context menu and start the conversion.  
 +  - Your new aircraft is available in Aerofly FS 2 now. Test and refine the dynamics, graphics and sounds as desired.  
  
 ==== Single 3D Model ==== ==== Single 3D Model ====
Line 100: Line 103:
  
   * The material now has a 'Custom Attribute' where you can enter the desired tags.\\ {{ :sdk:sdk_max_shader.png?200 |}}\\    * The material now has a 'Custom Attribute' where you can enter the desired tags.\\ {{ :sdk:sdk_max_shader.png?200 |}}\\ 
 +
 +==== Propeller ====
 +Aerofly FS 2 needs two models for the propeller. First is the static / solid model including the spinner / hub and the blades as separate objects. Second is the propeller disk, this is the blurred hull of the spinning propeller. The propeller disk needs to have a planar mapping from the front such that the disk fills the UV unit square. The corresponding texture is applied to the prop disk such that the bottom is at the center and the top is at the tips, left side is facing forward and right side is applied onto the back. Refer to the DR-400 example aircraft and the 'prop_color.bmp' for an example.
  
 ===== Exporting from 3D Studio Max ===== ===== Exporting from 3D Studio Max =====
Line 218: Line 224:
   *Don't include the aircraft's name in texture names (don't use 'f15_xxxx_color.bmp').     *Don't include the aircraft's name in texture names (don't use 'f15_xxxx_color.bmp').  
   *Current max file is named like 'f15_2015-06-18_56.max'   *Current max file is named like 'f15_2015-06-18_56.max'
- 
sdk/aircraft/modelling.txt · Last modified: 2020/05/10 21:20 by jh