[Plib-devel] 3DS loader bug? [Fwd: Porting loaders to SGL]
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-11 05:07:57
|
Scott McMillan wrote: > 2) I may have found a bug. Not knowing the 3ds format at all, I > cannot be sure. It involves the parsing texture scale and offset > parameters starting at line 343 (of PLIB version 1.2.0). Shouldn't > parse_uscale() stick the value into element 0 of the texture_scale? > > static int parse_uscale( char **p, unsigned int length ) > { > texture_scale[ num_materials - 1 ][1] = get((float*)*p); > // ^^^ > // 0? > return PARSE_OK; > } > > static int parse_vscale( char **p, unsigned int length ) > { > texture_scale[ num_materials - 1 ][0] = get((float*)*p); > // ^^^ > // 1? > return PARSE_OK; > } > > static int parse_uoffst( char **p, unsigned int length ) > { > texture_offst[ num_materials - 1 ][0] = get((float*)*p); > return PARSE_OK; > } > > static int parse_voffst( char **p, unsigned int length ) > { > texture_offst[ num_materials - 1 ][1] = get((float*)*p); > return PARSE_OK; > } -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |