[osg-submissions] Fix for FLT export inefficiencies
Paul Martz
pmartz at skew-matrix.com
Mon May 5 10:59:59 PDT 2008
Hi Robert --
As I discovered prior to the 2.4 release, the FLT export geometry backend
was using some old turn-on code, originally written just to enable other
development but not intended for actual release. Sadly, my OSG training
commitments prevented me from fixing this prior to 2.4.
In essence, the FLT exporter was emitting a full set of Mesh records each
time it encountered a PrimitiveSet.
Attached is a fix. The code now emits the Mesh set up records, then iterates
over all PrimitiveSets and emits a Mesh Primitive record per PrimitiveSet.
It also loops over PrimitiveSets twice, first writing Face records according
to the mode, the writing Mesh records (again according to the mode).
The final change included here is support for GL_POINTS as single-vertex
Face records.
Billboards are still to come.
Thanks,
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/20080505/97efebba/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLTfix.zip
Type: application/x-zip-compressed
Size: 14319 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080505/97efebba/attachment.bin>
More information about the osg-submissions
mailing list