• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

.MOS Damage Mask Texture

gecko

Charter Member
I am trying to work on the damage mask texture (xxx_t_damage.dds) for the Spitfire VIII. I'm a bit confused as to how they work. Could someone who has done one before please explain? Thanks!

Daniel
 
It's a binary (black or white, no grey) Alpha Layer mask that lines up with the xxx_t.dds file.

They do not need to be the same size, but they do need to be laid out in the same pattern.

Damage will show up in the areas that are black.
 
Best way I found is to import an existing .mos file into the MOS editor and see how the bits work. Use the MOS editor from the Terrain SDK – it has some limited help files – but it's an essentially visual process. Nigel is the expert in this.
 
OK, so I have it working. The black areas on the alpha sheet are aligned with the endcaps of the model everywhere a part can break off. All of them are working except the wings. Wing a wing comes off, the associated damage decal shows up, but only with the clean line of where the model breaks, and not the jagged edge I made in the alpha sheet. When the nose is shot off, it displays its decal and alpha correctly, but also claims the alpha from the wing break, though it doesn't show the wing break decal. Any ideas how I can get the wings to claim their damage alphas?
 
Hi gecko, do you have Firepower aircraft? I seem to remember that the Me410 has engines that drop off and it may also have good examples of _damage.dds files?

Not to sure, but worth a look.
 
Ah. Endcaps and .mos textures are not the same. The .mos file overlays damage textures on to the model's main (or only) texture sheet as it takes degrees of damage from hits. Endcaps only show when damage is sufficient to break things off and the xxx_t_damage.dds file is the texture file mapped to these endcaps. I think you need to check with Steve how he's done them, they'll be model-specific.
 
Well, not exactly, but maybe I misunderstand. The xxx_t_damage.dds is not the endcap texture, damage_raf.dds is being used to texture the endcaps. The model is built with clean, straight break lines where the nose and tail and wings detach. These are augmented be the visible bulkheads and twisted structure modeled with the endcap, but the external skin lines are perfectly straight. The xxx_t_damage.dds is the black and white alpha mask called in the .mos file. The black areas of the sheet are placed over the areas where the breaks occur, and allow you to create a jagged break line in the external skin as opposed to the perfectly straight lines of the model without an xxx_t_damage.dds applied. The mos file also uses decals (not the same thing as the bullet holes) over these break areas to add some damaged texturing to the breaks. All works well except for the wing breaks, where the decals appear without the corresponding jagged lines applied by the xxx_t_damage.dds.
 
Back
Top