sdk:scenerydev
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:scenerydev [2017/03/31 05:01] – created jf | sdk:scenerydev [2020/05/10 20:31] – ↷ Links adapted because of a move operation jh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Object Import into Scenery | + | ===== Adding |
Are you interested in importing objects into Aerofly FS 2 scenery? This is how you do it. Use this tutorial for creating your own objects as well! | Are you interested in importing objects into Aerofly FS 2 scenery? This is how you do it. Use this tutorial for creating your own objects as well! | ||
Let's get started. | Let's get started. | ||
- | ====Prerequisites:==== | + | ==== Prerequisites ==== |
- | * **Aerofly FS 2 Flight Simulator** - Must be installed. | ||
- | * **AC3D 8.0.50a** - | ||
* **Aerofly SDK Package** - Download it from [[https:// | * **Aerofly SDK Package** - Download it from [[https:// | ||
+ | * A supported 3D modelling software with *.tgi exporter, in this tutorial we used AC3D 8.0.50a | ||
- | In this example we will use a small farmhouse. //Download the farmhouse here:// | + | ==== Required AC3D Plugins ==== |
- | {{:wiki:farmhouse.jpg?600|}} | + | We will need the OBJ importer plugin for AC3D as well as the Aerofly *.tgi exporter plugin from the SDK. |
+ | **Note** The common installation location for AC3D plugins is:\\ | ||
+ | **C:\Program Files (x86)\AC3D 8.0.50a\plugins** | ||
- | We will also need the OBJ importer plugin for AC3D. //You can download the plugin here:// [[http:// | + | You can download the OBJ importer |
- | ]] | + | [[http:// |
+ | * Unzip the download to any location. | ||
+ | * Move the obj_import.p file to the appropriate plugin directory of AC3D. | ||
- | * Unzip obj_import.zip to any location. | + | From the aerofly |
- | * Move the obj_import.p file to the appropriate directory of AC3D. **Note** The common location is: **C: | + | * Copy the **ipacs_ac3d_to_tgi.p** file to the appropriate directory of AC3D. |
- | + | ||
- | **The SDK package | + | |
- | * Copy the **ipacs_ac3d_to_tgi.p** file to the appropriate directory of AC3D. **Note** The common location is: **C: | + | |
{{: | {{: | ||
- | ====Preparing | + | ==== Using an existing model ==== |
+ | |||
+ | In this example we will use a small farmhouse. // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ==== Preparing the Textures | ||
* Unzip **2l9281qs868w-Model.zip** to any location. | * Unzip **2l9281qs868w-Model.zip** to any location. | ||
Line 32: | Line 39: | ||
* Move both BMP files to your destination directory of the SDK scenery_workshop. In my case this is: **\Documents\Aerofly FS 2\aerofly_fs_2_sdk\scenery_workshop\farmhouse**. | * Move both BMP files to your destination directory of the SDK scenery_workshop. In my case this is: **\Documents\Aerofly FS 2\aerofly_fs_2_sdk\scenery_workshop\farmhouse**. | ||
- | ====Use AC3D:==== | + | ==== Preparing the Model ==== |
* Start AC3D and select the function File –Import : Farmhouse OBJ.obj **Note** You may get an error message " | * Start AC3D and select the function File –Import : Farmhouse OBJ.obj **Note** You may get an error message " | ||
Line 55: | Line 62: | ||
{{: | {{: | ||
- | We have to calculate the size of the object. Select Vertex , click to the vertex point above the door and note the coordinate values. | + | We have to calculate the size of the object. Select Vertex, click to the vertex point above the door and note the coordinate values. |
{{: | {{: | ||
- | Aerofly FS 2 uses metric measurements. This means, the height of the door is now 8.907 meters. We will scale it to 25% for a realistic door height. Select the whole model and set scale to 25%. **Note:** 1 meter = 1.09361 yards. | + | Aerofly FS 2 uses metric measurements. This means, the height of the door is now 8.907 meters. We will scale it to 25% for a realistic door height. Select the whole model and set scale to 25%. **Note:** 1 meter = 1.09361 yards. |
{{: | {{: | ||
Line 67: | Line 74: | ||
{{: | {{: | ||
- | Save your file again, then use the export function. File – Export – Ipacs TGI files (.tgi) Enter the name farmhouse and select again our destination directory **\Documents\Aerofly FS 2\aerofly_fs_2_sdk\scenery_workshop\farmhouse** | + | Save your file again. |
- | {{: | + | ==== Export to TGI format ==== |
- | **Notes** | + | When the preparations have been completed we use the export function to create the *.tgi file. Select File – Export – Ipacs TGI files (.tgi) Enter the name e.g. " |
- | * Please use for your file names only small characters without blanks (IPACS suggests this to avoid problems with cross platform data transfer). | + | The TGI Format |
- | | + | |
- | * The BMP file requires | + | |
- | You will need 2 more files: **content_converter_config.tmc** and a **farmhouse.tsc** file. Copy them to the directory. This is the final content of our directory. | + | {{:wiki: |
- | {{: | + | **Notes** |
- | Before you run the final conversion, You will have to calculate | + | * Please use for your file names only small characters without blanks to enable cross platform compatibility |
+ | * The BMP files have to be squares with a power of two as in our example. E.g. 1024 x 1024 or 2048 x 2048. (If this is not the case, you have to create a square and perhaps remap the texture | ||
+ | * The BMP file requires the addition " | ||
- | ====Excursion | + | ==== Converting |
- | If you want to describe any position on earth in a unified system you may use geographic coordinates (as Aerofly FS 2 does). | + | You will need 2 more files: **content_converter_config.tmc** and a **farmhouse.tsc** file. You can copy the one from our example airport tutorial |
- | We need 360 degrees to do a full circle, so the earth simplified as a bowl consists of 360 longitude lines. Longitude 0 is defined | + | |
- | It is half of a circle going from north pole to south pole. So lat +90 is the north pole, 0 is the equator line, -90 is the south pole. | + | |
- | + | ||
- | {{: | + | |
- | {{:wiki:tutorial_latlong_color.jpg?700|}} | + | {{:wiki:tutorial_files.jpg?600|}} |
- | + | ||
- | **Note** - Make sure that you take the sequence into account: Both ways **Lat/Lon** and **Lon/Lat** are common. (Aerofly FS 2 uses Lon/ | + | |
- | * If you want to place an object at a certain position you may use this page for calculations: | + | Before |
- | | + | |
- | {{:wiki: | + | Find the coordinates of your desired location for the house as described in the [[sdk:scenery_coordinates|Geographic Coordinates]] |
- | It displays Google map worldwide, so we can move and zoom into our desired position. Switch to Satellite, then click with the mouse to the favored point. This opens a window with the appropriate coordinates. | + | ==== Setting |
- | {{: | + | Open the file **farmhouse.tsc** with a text editor and change the " |
- | Open the file **farmhouse.tsc** with a text editor. | + | **Make sure to enter the coordinates as lon/lat (°E °N) and not the other way around** or your house will end up somewhere completely different! |
{{: | {{: | ||
- | **Note** - Please compare the values with the coordinates from mygeoposition. You have to change the order of the coordinates, | ||
Open the file **content_converter_config.tmc** with a text editor. **Note** - You will have to enter the object only once. | Open the file **content_converter_config.tmc** with a text editor. **Note** - You will have to enter the object only once. | ||
Line 114: | Line 113: | ||
{{: | {{: | ||
- | Last step: Run the converter. Click file with right mouse button, select Aerofly FS 2 Content Converter | + | Last step: Run the converter. |
+ | |||
+ | Click file with right mouse button, select Aerofly FS 2 Content Converter | ||
{{: | {{: | ||
- | Do not interrupt the black shell window. After the process is finished, the tm.log documents the result of the conversion. Now there is a new subfolder farmhouse in the scenery places. | + | Do not interrupt the black shell window. After the process is finished, the tm.log documents the result of the conversion. Now there is a new subfolder farmhouse in the scenery places. |
{{: | {{: | ||
- | Start aerofly | + | ==== Check the Result ==== |
+ | |||
+ | Start Aerofly | ||
{{: | {{: | ||
Line 130: | Line 133: | ||
{{: | {{: | ||
- | The position fits very well to our selection in mygeoposition. Be careful | + | In the engine you should now see your new house. Make sure not to burn it down with your afterburners though ;-) |
{{: | {{: | ||
- | **Important notes:** | + | The converter |
- | + | You can also change this file to move the house around without having to start the converter again. Just make sure that you copy your final result into your intermediate directory before you run the converter again. | |
- | * Rotation of the object | + | |
- | * You can display coordinates inaerofly FS 2 by Strg – F1. | + | |
- | * It shows only 2 decimal places, IPACS may provide another tool for coordinate readout in future version. | + | |
- | * You can fine tune the coordinates in the resulting file **farmhouse.tsc** without need for new conversion. | + | |
{{: | {{: | ||
sdk/scenerydev.txt · Last modified: 2020/05/10 22:10 by jh