Hi all,

Agreed with Michael.

And do you think it could be nice to have the same for export too, in case some 
formats support both? Writers would convert to float if the flag is not set, or 
convert to double if set. I personnally don't think there are many formats 
supporting this, but at least this would be already in osgDB::Options.

Thoughts?

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Michael Platings" <[email protected]> a écrit :

> On 13 April 2010 10:21, Sukender < [email protected] > wrote:
> 
> 
> Just a question: will this only concern vertices? Or normals and
> texcoords too? I personnally only need double precison vertices, but
> having double precision for texcoords can make sense for a huge
> composite image (of the earth for instance).
> 
> Good point, do we need an option for each geometry attribute?:
> Vertex
> Normal
> Color
> SecondaryColor
> FogCoord
> TexCoord
> VertexAttrib
> 
> Instead of being a bool, the option could be a bitfield e.g.
> 
> if (options->getDoublePrecisionImport() &
> osgDB::Options::DOUBLE_PRECISION_COLOR)
> {
> //Import colours as doubles...
> }
> 
> 
> _______________________________________________
> 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

Reply via email to