arma:modeling:model_config
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma:modeling:model_config [2007/07/13 12:44] – created model_config initial page snakeman | arma:modeling:model_config [2024/08/01 09:39] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Model Config ====== | + | ====== |
+ | |||
+ | [[https:// | ||
+ | |||
+ | **ArmA 1** aka Armed Assault (ArmA) | ||
**Description** | **Description** | ||
- | The model configuration file (model cfg for short) is the interface between a (P3D) model and the program. | + | The model configuration file (model cfg for short) is the interface between a (P3D) model and the program. The model.cfg would only be necessary if you intend to preview animations and such in O2 using your model. |
It is a look-up table which is processed during the binarization process, to tell the program what the various sections of the model are, which skeleton it uses and how it is animated. | It is a look-up table which is processed during the binarization process, to tell the program what the various sections of the model are, which skeleton it uses and how it is animated. | ||
Line 15: | Line 19: | ||
Most models will be able to inherit definitions from basic definitions on higher levels in the data hierarchy. An example hierarchy is described and illustrated below. | Most models will be able to inherit definitions from basic definitions on higher levels in the data hierarchy. An example hierarchy is described and illustrated below. | ||
- | p: | + | p: |
- | p: | + | p: |
p: | p: | ||
- | p: | + | p: |
p: | p: | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
====== Notes ====== | ====== Notes ====== | ||
Line 36: | Line 40: | ||
There are model cfg files that do not relate directly to a specific model, but are used for the generic base class definitions, | There are model cfg files that do not relate directly to a specific model, but are used for the generic base class definitions, | ||
- | The functionality of the animations has been extended, allowing to do in scripting what was done before using RTM animations. | + | The functionality of the animations has been extended, allowing to do in scripting what was done before using RTM animations. |
In addition, animation controllers were introduced, which allow for the control of different animations at the same time. This opens up possibilities like having several turrets on a tank. | In addition, animation controllers were introduced, which allow for the control of different animations at the same time. This opens up possibilities like having several turrets on a tank. | ||
Line 50: | Line 54: | ||
< | < | ||
//Declare base classes | //Declare base classes | ||
- | class CarAnimations | + | class CarAnimations |
{ | { | ||
class IndicatorSpeed; | class IndicatorSpeed; | ||
Line 57: | Line 61: | ||
{ | { | ||
class Car; //Declare base class | class Car; //Declare base class | ||
- | class Vodnik: Car | + | class Vodnik: Car |
{ | { | ||
sectionsInherit = " | sectionsInherit = " | ||
Line 66: | Line 70: | ||
}; | }; | ||
skeletonName = " | skeletonName = " | ||
- | + | ||
class Animations: CarAnimations //Inherit from generic animations | class Animations: CarAnimations //Inherit from generic animations | ||
{ | { | ||
Line 83: | Line 87: | ||
< | < | ||
- | class CfgSkeletons | + | class CfgSkeletons |
- | { | + | { |
class Car; //Define base class | class Car; //Define base class | ||
- | + | ||
class Vodnik: Car | class Vodnik: Car | ||
{ | { | ||
Line 103: | Line 107: | ||
This segment is part of class cfgModels and defines all animations used by the model. | This segment is part of class cfgModels and defines all animations used by the model. | ||
- | < | + | < |
- | class Animations | + | class Animations |
{ | { | ||
class FrontWheelR | class FrontWheelR | ||
Line 140: | Line 144: | ||
| aileronB | The bottom speed brake as opening ailerons | Airplane | | | aileronB | The bottom speed brake as opening ailerons | Airplane | | ||
| aileronT | The top speed brake as opening ailerons | Airplane | | | aileronT | The top speed brake as opening ailerons | Airplane | | ||
- | | aoa | The Angle Of Attack | Airplane | | + | | aoa | The Angle Of Attack | Airplane | |
| elevator | The elevators | Airplane | | | elevator | The elevators | Airplane | | ||
| flap | The flaps | Airplane | | | flap | The flaps | Airplane | | ||
Line 240: | Line 244: | ||
//Used by animations called Door1, which don't define the source | //Used by animations called Door1, which don't define the source | ||
// | // | ||
- | class Door1 | + | class Door1 |
{ | { | ||
source = " | source = " | ||
Line 259: | Line 263: | ||
You can find a howto for the CfgModels (a working attack helicopter) as well as a howto on cfgModels & cfgSkeletons with additional description and examples. | You can find a howto for the CfgModels (a working attack helicopter) as well as a howto on cfgModels & cfgSkeletons with additional description and examples. | ||
+ |
arma/modeling/model_config.1184330657.txt.gz · Last modified: 2007/07/13 12:44 (external edit)