[osg-submissions] Fix COLLADA export of DrawArrays

Paul Martz pmartz at skew-matrix.com
Thu May 22 07:47:59 PDT 2008


When exporting a DrawArrays PrimitiveSet, the DAE plugin computes an
incorrect nbVerticesPerPoly if the first index is not zero. The issue can be
reproduced easily with:
  osgconv cessna.osg cessna.dae
 
Examination of the resulting .dae file reveals several out-of-range tristrip
indices; viewing the .dae file in osgviewer causes a crash when OSG tries to
lookup those indices.
 
Attached resolves this issue.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
+1 303 859 9466
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080522/b967f5f3/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: daeWGeometry.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080522/b967f5f3/attachment-0001.txt>


More information about the osg-submissions mailing list