Re: [Plib-devel] Double-sided material fix to 3DS loader for 1.2
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-04-03 23:25:54
|
Paolo Leoncini wrote: > hoping to be in time for 1.2... Yep - you made it in time (courtesy of the sgMultMat4 panic!) >, here is the result of further bug-fixing on the 3DS loader. > This fixes the management of double-sided material tris: > > function parse_face_materials(): > ... > if (is_ds) { > num_texcrds = 6; > sgCopyVec2( texcrds[texcrd_count + 3], texcrd_list[ vertex_index[v1] ] ); > sgCopyVec2( texcrds[texcrd_count + 4], texcrd_list[ vertex_index[v3] ] ); > sgCopyVec2( texcrds[texcrd_count + 5], texcrd_list[ vertex_index[v2] ] ); > } > ... > instead of the index sequence v1, v2, v3. This is now in agreement with what > done to vertices/normals some code line below. Is anyone else committing this? If not, I'll do it. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |