RenolY2 / SuperBMD

A library to import and export various 3D model formats into the Binary Model (BMD) format. (Nintendo GC/Wii)
37 stars 10 forks source link

Grayscale textures without transparency disappear ingame (Pikmin 2) #8

Closed RenolY2 closed 6 years ago

RenolY2 commented 6 years ago

Grayscale textures without transparency are converted to I8 which appears to have a default alpha value of 0 for some reason, making the texture disappear ingame. Forcing the format to IA8 helps but maybe there is a better fix?

RenolY2 commented 6 years ago

Fixed by https://github.com/RenolY2/SuperBMD/commit/822d7075998c1f413c907e336e476e10e3f043d1 There is no better fix without messing with material data I4/I8 puts alpha at the same value as the intensity so you'd have to use a fixed alpha value in the material's TEV stage instead of taking alpha from the texture