Hi Omar,
Quoting Omar <[email protected]>:
works fine. But when I display it in osg I just see all the points
displayed across a line.
...
where Pt has three float and 3 unsigned integers for storing color ...
osg::Vec4Array* cloudVertices = new osg::Vec4Array;
...
cloudVertices->push_back( osg::Vec4d(m_list[i].fX, m_list[i].fY,
m_list[i].fZ, 1.0f) );
Have you tried to push_back osg::Vec4f instead of osg::Vec4d? I
believe Vec4Array is hard-coded to use floats.
Since your data is float and OpenGL internally is float as well it
doesn't make sense to use double at this point anyway.
HTH,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org