arma:modeling:damage_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arma:modeling:damage_model [2008/05/08 07:10] – added damage selection names snakeman | arma:modeling:damage_model [2024/08/01 09:17] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Vehicle Damage Model ====== | + | ====== |
- | **Törni**: With **DamageHide** selection (not a LOD) you can hide parts of the model when the it is destroyed. Just what I did with the BMD-1 2.0 addon. The only addon in which the texture swapping is currently working is BTR80 and the model can be opened with O2. | + | [[https://www.pmctactical.org/ |
- | **Armored_Sheep** (BIS dev): New ArmA Damage visualisation by animating materials on surface is defined in config.cpp (class damage). Model must contain at least selection " | + | **ArmA 1** aka Armed Assault |
- | " | + | **Törni**: With **damageHide** selection (not a LOD) you can hide parts of the model when the it is destroyed. Just what I did with the BMD-1 2.0 addon. The only addon in which the texture swapping |
- | Hiding animation bind to damage controler | + | **Armored_Sheep** (bis dev): New ArmA Damage visualization by animating materials on surface |
- | As you can see in config each turret has its own hitzone definition (class HitTurret, class HitGun) so if you have diferent named selections for each turret. | + | " |
- | **passThrough = 1** means that the hitzone is vital to the complete model, so if this " | + | Hiding animation bind to damage controller is also defined in model.cfg. Each animated part must be well configured in skeleton hierarchy. [[model_config|Model_Config]] |
+ | |||
+ | As you can see in config each turret has its own hitzone definition (class HitTurret, class HitGun) so if you have different named selections for each turret. | ||
+ | |||
+ | **passThrough = 1** means that the hitzone is vital to the complete model, so if this " | ||
**Armored_Sheep**: | **Armored_Sheep**: | ||
Line 18: | Line 22: | ||
3) Section defined in model.cfg for the animated selection\\ | 3) Section defined in model.cfg for the animated selection\\ | ||
4) Hitzone definition in config.cpp in class HitPoint* where the selection is written\\ | 4) Hitzone definition in config.cpp in class HitPoint* where the selection is written\\ | ||
- | 5) Class dammage | + | 5) Class damage |
6) Model and all its sources must be binarised (packed) in PBO | 6) Model and all its sources must be binarised (packed) in PBO | ||
Line 27: | Line 31: | ||
Then the Rvmat you define in the config must also point to this texture, otherwise the engine will not recognize the texture and will not replace it with the destruct one. | Then the Rvmat you define in the config must also point to this texture, otherwise the engine will not recognize the texture and will not replace it with the destruct one. | ||
+ | |||
+ | Also it appears that you cannot damageHide a already animated selection, good examples are helicopter rotors made the old OFP way (the new ArmA proxy way apparently works?). So be careful and test your damageHide selection by selection before overhauling your whole model. | ||
====== Selection names ====== | ====== Selection names ====== | ||
**Obmar** posted this about selection names:\\ | **Obmar** posted this about selection names:\\ | ||
- | To get the Damage textures to animate you have to have a specific | + | To get the Damage textures to animate you have to have a specific |
^ Selection Name ^ Vehicle type ^ | ^ Selection Name ^ Vehicle type ^ | ||
Line 41: | Line 47: | ||
Once the actual model has the named selection in all the Resolution LODs the damage texture animations will work. | Once the actual model has the named selection in all the Resolution LODs the damage texture animations will work. | ||
- | ====== BIS Example ====== | + | //Please note that for aircraft' |
- | Here is example damage config from BIS A10 aircraft. | + | ====== bis Example ====== |
- | < | + | |
+ | Here is example damage config from bis A10 aircraft. | ||
+ | < | ||
dammageHalf[] = | dammageHalf[] = | ||
{ | { | ||
Line 70: | Line 78: | ||
}; | }; | ||
</ | </ | ||
- | The model itself contains **damageHide** selection in 1-6 Res LODs and others containing the weapon and pilot proxys only. Last 7.0 LOD dont have damageHide. | + | The model itself contains **damageHide** selection in 1-6 Res LODs and others containing the weapon and pilot proxys only. Last 7.0 LOD don' |
The **zbytek** selection is present on all LODs. It contains everything except weapons, wheels and canopy glass. | The **zbytek** selection is present on all LODs. It contains everything except weapons, wheels and canopy glass. | ||
Line 81: | Line 89: | ||
**Warrior0_destruct.rvmat** file: | **Warrior0_destruct.rvmat** file: | ||
- | < | + | < |
ambient[]={1.0, | ambient[]={1.0, | ||
diffuse[]={1.0, | diffuse[]={1.0, | ||
Line 140: | Line 148: | ||
</ | </ | ||
And the main Config now has; | And the main Config now has; | ||
- | < | + | < |
class cfgModels | class cfgModels | ||
{ | { | ||
Line 194: | Line 202: | ||
The P3D file in O2 needs to have this bit added for each texture used. The Face Properties need the Materials definition to point to the rvmat file | The P3D file in O2 needs to have this bit added for each texture used. The Face Properties need the Materials definition to point to the rvmat file | ||
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
- | And to clarify, all these files are needed (until | + | And to clarify, all these files are needed (until |
- | {{ http://tactical.nekromantix.com/images/wiki/ | + | {{ https://pmc.editing.wiki/ |
Best of luck :) | Best of luck :) | ||
+ | |||
+ | |||
+ | ====== damageHide Additions ====== | ||
+ | |||
+ | This effect usually pops up, when a selection is only partial included in the " | ||
+ | |||
+ | Also some issues may pop up, when other " | ||
+ | |||
+ | There are few things you need to know. | ||
+ | |||
+ | * The damageHide animation will move the selection to the center of the model. Make sure that they are not connected to other parts which will remain after destruction, | ||
+ | * If you want to make a selection animated and hidden after destruction, | ||
+ | |||
+ | I suggest making 2 levels of landContact, | ||
+ |
arma/modeling/damage_model.1210230627.txt.gz · Last modified: 2008/05/08 07:10 (external edit)