Hi guys, I'm trying to figure out the point rendering example. I have written my own reader/writer class for my point files, and I would like to view them with point sprites (osgpoints example).
What I'm coming across is that the alpha blending from the spite happens in the order that I've added my points into the scenegraph. geometry->setUseDisplayList(true); geometry->setUseVertexBufferObjects(true); geometry->setVertexArray(vertices); geometry->setColorArray(colours); geometry->setColorBinding(osg::Geometry::BIND_PER_VERTEX); geometry->addPrimitiveSet(new osg::DrawArrays(GL_POINTS,0,vertices->size())); Vertices and colors are osg::Vec3 and osg::Vec4ub respectively. (set them to contain two points (0,0,0) (0,0,1) My question is, do I have to sort the points based on z-value every time my viewing direction changes? Or am I doing something wrong with loading the point data. I tried to load point data with a .osg file, but couldn't figure out the structure of the file. Thanks a lot, Sandy Patterson _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/