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 revisionPrevious revision
Next revision
Previous revision
sdk:aircraft:modelling [2017/02/06 12:43] – [Preparing a Custom 3D-Model] jhsdk:aircraft:modelling [2020/05/10 21:20] (current) – [Supported Modelling tools] jh
Line 1: Line 1:
 ====== Modelling ====== ====== Modelling ======
  
-===== 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.
Line 17: Line 14:
 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 =====+==== 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.+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.   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, mustang, …). 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.  +  - 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).     - 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.     - 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.     - 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 ====
 Aerofly FS 2 works with just one 3D for an entire aircraft; there is no need to provide an external and internal model separately. The Aerofly FS 2 engine is optimized to draw only those objects that are in the view of the camera. Aerofly FS 2 works with just one 3D for an entire aircraft; there is no need to provide an external and internal model separately. The Aerofly FS 2 engine is optimized to draw only those objects that are in the view of the camera.
Line 101: 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 219: 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.1486381396.txt.gz · Last modified: 2017/02/06 12:43 by jh