iqm icon indicating copy to clipboard operation
iqm copied to clipboard

viewer problems

Open r-lyeh-archived opened this issue 11 years ago • 1 comments

hello,

i am trying to view a few models (exported from Noesis) into demo / gpu-demo. models cannot be loaded because of these lines:

case IQM_BLENDINDEXES: if(va.format != IQM_UBYTE || va.size != 4) return false; inblendindex = (uchar *)&buf[va.offset]; break;
case IQM_BLENDWEIGHTS: if(va.format != IQM_UBYTE || va.size != 4) return false; inblendweight = (uchar *)&buf[va.offset]; break;

va.format is IQM_UINT for indexes and IQM_FLOAT for weights. va.size's are both right.

r-lyeh-archived avatar Feb 23 '14 09:02 r-lyeh-archived

Those are ideally supposed to be unsigned bytes as that is what most engines are actually using and lines up better with the bone/weight restrictions. If Noesis is using those larger more precise formats, then it will encounter trouble on a bunch of engines that expect the UBYTE format for those. I am not sure I want to complicate the demo viewer by adding in support for a bunch of these discrepancies, as it is meant to rather show quickly and without much noise how to load and use the format.

lsalzman avatar Feb 23 '14 09:02 lsalzman