HI Reed,

Vec3dArray's role is more for enabling loaders like the shapefile
loader to load there data in doubles, once it's loaded you can then
process it to get it into a local coordinate system with an Vec3fArray
that is appropriate for rendering and other operations.

FYI, OpenGL does accept doubles, but it converts them all to floats
before passing to the graphics card so performance really is appalling
compared to float arrays.  Performance is so bad is that it's not
worth considering trying to use Vec3dArray based geometries for
rendering.

Robert.

On Thu, Feb 5, 2009 at 7:20 PM, Reed McKenna <[email protected]> wrote:
> The Vec3dArray was introduced in OSG 2.6 (or 2.4, I forget). The reason, as
> I recall it, was to support creation of earth-size datasets. OpenGL does not
> accept doubles, IntersectVisitors don't seem to support doubles, etc. How
> are developers using Vec3dArrays effectively? I did not find any use of
> double arrays in the examples.
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to