BuiltWithNOF
The TMG-file

The tmg-file must have the same name as the obj-file, e. G.

AS_Deproni.obj and
AS_Deproni.tmg!

With the tmg-file you describe all the objects of the obj-file which belong together, you build groups.
The first object name is the one you will have to define in the tmd-file later on.

Example:
The object Fuselage contains the objects
Fuselage
Engine
Leftgear
and
Rightgear.

The object Stabilizer consists of
Stabilizer and
Rudder!

The first and the second object of a group have no delimiter inbetween. All other objects are separated with

cd ../

It is very important to use the correctly syntax, e. G. cd<blank>../ !!!

The groups are separated with 2 lines of cd ../.

A group can consist of only 1 object (e. G. Leftwheel) and will then be separated with only 1 cd ../

Please notice:
An object of the obj-file which is not described in the tmg-file will not appear in AFP/D!!



Some explanations:

Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Fuselage" )

"aircraft/AS_Deproni/AS_Deproni.obj" <-- This expression is the path of the obj-file.
"Fuselage" <-- Here you have to use the exactly obj-name out of the obj-file!  

Shiny = 1.00 <-- high gloss finished
Shiny = 0.00 <-- matt finished
(Only for the AeroFly Professional Deluxe)
 

Below all objects of the file AS_Deproni.obj are listed.

#
# Object Fuselage
#
g Fuselage
texture Deproni.bmp 1 1

#
# Object Stabilizer
#
g Stabilizer
texture Deproni.bmp 1 1

#
# Object Rudder
#
g Rudder
texture Deproni.bmp 1 1

#
# Object Leftstabilizer
#
g Leftstabilizer
texture Deproni.bmp 1 1

#
# Object Leftelevator
#
g Leftelevator
texture Deproni.bmp 1 1

#
# Object Rightstabilizer
#
g Rightstabilizer
texture Deproni.bmp 1 1

#
# Object Rightelevator
#
g Rightelevator
texture Deproni.bmp 1 1

#
# Object Leftwing
#
g Leftwing
texture Deproni.bmp 1 1

#
# Object Rightwing
#
g Rightwing
texture Deproni.bmp 1 1

#
# Object Propeller
#
g Propeller
texture 176176176.bmp 1 1

#
# Object Blade1
#
g Blade1
texture 000000000.bmp 1 1

#
# Object Blade2
#
g Blade2
texture 000000000.bmp 1 1

#
# Object Leftgear
#
g Leftgear
texture 176176176.bmp 1 1

#
# Object Leftwheel
#
g Leftwheel
texture 255000000.bmp 1 1
#
# Object Rightgear
#
g Rightgear
texture 176176176.bmp 1 1

#
# Object Rightwheel
#
g Rightwheel
texture 255000000.bmp 1 1

#
# Object Engine
#
g Engine
texture 176176176.bmp 1 1

#
# Object Tailgear
#
g Tailgear
texture 176176176.bmp 1 1
 

Be shure, that all objects from the obj-file are described in the tmd-file!

Important notice:
It is not sufficient to take the objects from the mqo-file! If you have used more than one texture for one object in Meta, the converting-tool will create one object for each texture!!!
In this case the obj-file would contain 2 or more objects for the same part, e.G.
Leftwheel and
Leftwheel01.


The tmg-file of the Deproni should look like this:

Please notice:
The red marked object names must match exactly with those from the obj-file!


// aerofly professional --------------------------------------------------------
//
// file:   AS_Deproni.tmg
//
// -----------------------------------------------------------------------------


Append tmgeometricobject Fuselage
cd Fuselage/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Fuselage" )

Shiny = 0.00
Append tmgeometricobject Engine
cd Engine/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Engine" )

Shiny = 0.00
cd ../

Append tmgeometricobject Leftgear
cd Leftgear/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Leftgear" )

Shiny = 0.00
cd ../

Append tmgeometricobject Rightgear
cd Rightgear/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rightgear" )

Shiny = 0.00
cd ../

cd ../

Append tmgeometricobject Stabilizer
cd Stabilizer/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Stabilizer" )

Shiny = 0.00
Append tmgeometricobject Rudder
cd Rudder/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rudder" )

Shiny = 0.00
cd ../

cd ../

Append tmgeometricobject Leftstabilizer
cd Leftstabilizer/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Leftstabilizer" )

Shiny = 0.00
Append tmgeometricobject Leftelevator
cd Leftelevator/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Leftelevator" )

Shiny = 0.00
cd ../

cd ../

Append tmgeometricobject Rightstabilizer
cd Rightstabilizer/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rightstabilizer" )

Shiny = 0.00
Append tmgeometricobject Rightelevator
cd Rightelevator/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rightelevator" )

Shiny = 0.00
cd ../

cd ../

Append tmgeometricobject Leftwing
cd Leftwing/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Leftwing" )

cd ../

Append tmgeometricobject Rightwing
cd Rightwing/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rightwing" )

cd ../

Append tmgeometricobject Propeller
cd Propeller/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Propeller" )

Shiny = 0.00
Append tmgeometricobject Blade1
cd Blade1/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Blade1" )

Shiny = 0.00
cd ../

Append tmgeometricobject Blade2
cd Blade2/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Blade2" )

Shiny = 0.00
cd ../

cd ../

Append tmgeometricobject Leftwheel
cd Leftwheel/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Leftwheel" )

Shiny = 0.25
cd ../

Append tmgeometricobject Rightwheel
cd Rightwheel/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Rightwheel" )

Shiny = 0.25
cd ../

Append tmgeometricobject Tailgear
cd Tailgear/
Geometry( "aircraft/AS_Deproni/AS_Deproni.obj", "Tailgear" )

Shiny = 0.00
cd ../

Back