elect-gombe/k210_mmd

Runtime texture loader implementation

elect-gombe opened this issue · 1 comments

Part of #4

Implement texture loader.

Considering image file format

  • bmp (without alpha channel, transparent color?)
  • png (Complessed)
    • without alpha channel
    • with alpha channel and implement alpha test.

Alpha channel support needs implementation of png or bmp with transparent color, and alpha test for no conflict with other polygons.

Algorithm

  1. Test z value, whether the pixel is beyond this model?
  2. Test texture alpha channel whether if it is transparent or not?
  3. then, write back the z value.

solved. it was bit field problem.