[osg-submissions] Fix for FLT export inefficiencies

Robert Osfield robert.osfield at gmail.com
Thu May 8 05:56:57 PDT 2008


Thanks Paul, changes now merged and submitted to SVN.

On Mon, May 5, 2008 at 6:59 PM, Paul Martz <pmartz at skew-matrix.com> wrote:
>
>
> 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
> +1 303 859 9466
>
> _______________________________________________
>  osg-submissions mailing list
>  osg-submissions at lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list