gomtuu / import_valkyria

Blender import script for Valkyria Chronicles 3D model files
GNU General Public License v3.0
20 stars 12 forks source link

Alpha channel sometimes used incorrectly #5

Open gomtuu opened 5 years ago

gomtuu commented 5 years ago

Some models have textures that include alpha channels, but the model looks wrong if the alpha channel is used.

Examples include:

Game File Description
VC1 valcA02aD_h.mlx Parts of Alicia's face and hat turn black when rendered.
VC4 vlb211a.mlx Selvaria's torso and arms are semi-transparent in the preview and when rendered.
VC4 DLC1 vlj002a.mlx Alicia's collar and hat are semi-transparent in the preview and when rendered. Her hat has an additional alpha problem when rendered.
angavrilov commented 5 years ago

The black thing happens because Blender renderers convert the image to premultiplied (associated) alpha, which destroys color information in any zero alpha areas. This doesn't work that well when alpha is used in a weird way not connected to transparency. Blender 2.8 has a new alpha handling option to accomodate that kind of textures.