...
osg::Geometry* pointsGeom =
new osg::Geometry();osg::Vec3Array* verticesFromFile =
new osg::Vec3Array;verticesFromFile->push_back(osg::Vec3(x,y,z));
pointsGeom->setVertexArray(verticesFromFile);
geode->addDrawable(pointsGeom);On Tue, May 19, 2009 at 9:43 AM, jago jagoc <jag...@gmail.com> wrote:
> Dear All,
> i am trying to visualize a point cloud with Openscenegraph,there are about 1
> 707 708 points but it should be more,there are some problem when i zoom in
> or out, some hole appear on the cloud. You can see the effect in the picture
> ZoomIn.jpg in the other the normal view.
> I load the points from file and put toghether in a Geode
The way I've done large point clouds (10 million points +) is to use
VBO's and segmentation of the geometry so the points are stored in a
series of osg::Geometry each of which have a 10,000 vertices in them.
The 3dc plugin does this so have a look at how it's implemented.
The need to chunking up the geometry like this is that graphics
cards/OpenGL drivers work when you give them data is blocks that they
get easily download asynchronously and store locally on the graphics
card when required.
I can't explain the holes, sounds like a driver bug. Try the above it
might well just solve the problem.
Robert.
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org