Thanks Paul, changes merged and submitted to SVN.
I had to do a small tweak to fix warnings:
/home/robert/OpenSceneGraph/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:
In member function 'void flt::FltExportVisitor::writeFace(const
osg::Geode&, const osg::Geometry&, GLenum)':
/home/robert/OpenSceneGraph/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:142:
warning: converting to 'flt::uint16' from 'double'
/home/robert/OpenSceneGraph/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:
In member function 'void flt::FltExportVisitor::writeMesh(const
osg::Geode&, const osg::Geometry&, GLenum)':
/home/robert/OpenSceneGraph/src/osgPlugins/OpenFlight/expGeometryRecords.cpp:340:
warning: converting to 'flt::uint16' from 'double'
The fix involved two places where I added a flt::uint16(..) cast, i.e.
transparency = flt::uint16((1. - packedColorRaw[3]) *
(double)0xffff);
I presume this is perfectly acceptable.
Cheers,
Robert.
On Mon, Mar 31, 2008 at 10:46 PM, Paul Martz <[EMAIL PROTECTED]> wrote:
>
>
> Hi Robert --
>
> Two changes:
> - Handle DrawArrays first/count correctly (fixes problem reported by Jason
> Daly)
> - Display warning if non-Geometry Drawable is encountered.
>
> Thanks,
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> +1 303 859 9466
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org