[Plib-devel] Double-sided material fix to 3DS loader for 1.2
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2000-04-03 17:10:40
|
Dear Steve & Per, hoping to be in time for 1.2, 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. ----------------------------------------------------------------------------- Paolo Leoncini phone: +39 (0823) 623134 Scientific Visualization Group fax: +39 (0823) 623126 CIRA - Italian Center for Aerospace Research e-mail: p.l...@ci... Via Maiorise - 81043 Capua (CE) Italy http://www.cira.it/research/vis |